Skip to content

Commit 8ee36de

Browse files
authored
fix: simplify build (#438)
1 parent b5a7b18 commit 8ee36de

File tree

3 files changed

+3
-37
lines changed

3 files changed

+3
-37
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -56,37 +56,3 @@ jobs:
5656
with:
5757
coverage: ${{ matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest' }}
5858
python-version: ${{ matrix.python-version }}
59-
60-
run-container-matrix:
61-
name: Container matrix on Linux
62-
runs-on: ubuntu-latest
63-
64-
steps:
65-
- uses: actions/checkout@v4
66-
67-
- if: ${{ runner.os == 'Linux' }}
68-
name: Install Microsoft ODBC Drivers & Free additional space
69-
run: |
70-
sudo ACCEPT_EULA=Y apt-get install msodbcsql18 -y || true
71-
sudo docker rmi $(docker image ls -aq) >/dev/null 2>&1 || true
72-
sudo rm -rf \
73-
/usr/share/dotnet /usr/local/lib/android /opt/ghc \
74-
/usr/local/share/powershell /usr/share/swift /usr/local/.ghcup \
75-
/usr/lib/jvm || true
76-
sudo apt-get autoremove -y \
77-
&& sudo apt-get clean -y \
78-
&& sudo rm -rf /root/.cache \
79-
&& sudo rm -rf /var/apt/lists/* \
80-
&& sudo rm -rf /var/cache/apt/* \
81-
&& sudo apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
82-
83-
- name: Set up Python 3.12
84-
uses: actions/setup-python@v5
85-
with:
86-
python-version: '3.12'
87-
88-
- name: Install Hatch
89-
run: pip install --upgrade hatch hatch-containers hatch-pip-compile
90-
91-
- name: Run tests in container matrix
92-
run: hatch run test:no-cov

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
CARGO_BUILD_TARGET: ${{ matrix.job.target }}
114114
PYAPP_REPO: pyapp
115115
PYAPP_VERSION: v0.21.1
116-
PYAPP_PYTHON_VERSION: "3.11"
116+
PYAPP_PYTHON_VERSION: "3.12"
117117
PYAPP_PROJECT_FEATURES: oracle,postgres,mssql,mysql,server,remote
118118
PYAPP_DISTRIBUTION_EMBED: "1"
119119
PYAPP_UV_ENABLED: "1"
@@ -171,7 +171,7 @@ jobs:
171171
working-directory: ${{ github.workspace }}
172172
run: |-
173173
current_version=$(hatch version)
174-
PYAPP_PYTHON_VERSION="3.11" PYAPP_DISTRIBUTION_EMBED="1" PYAPP_FULL_ISOLATION="1" PYAPP_UV_ENABLED="1" PYAPP_PROJECT_PATH="${{ github.workspace }}/dist/dma-${current_version}-py3-none-any.whl" PYAPP_PROJECT_FEATURES="oracle,postgres,mssql,mysql,server,remote" hatch -v build -t app
174+
PYAPP_PROJECT_PATH="${{ github.workspace }}/dist/dma-${current_version}-py3-none-any.whl" hatch -v build -t binary
175175
176176
- name: Rename
177177
working-directory: ${{ github.workspace }}

scripts/build-binary-package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ hatch build
55
PYAPP_PYTHON_VERSION="3.12" PYAPP_DISTRIBUTION_VARIANT="v1" PYAPP_UV_ENABLED="1" PYAPP_FULL_ISOLATION="1" PYAPP_DISTRIBUTION_EMBED="1" \
66
PYAPP_PROJECT_PATH="$(ls ${PWD}/dist/dma-${current_version}-py3-none-any.whl)" \
77
PYAPP_PROJECT_FEATURES="oracle,postgres,mssql,mysql,server,remote" \
8-
hatch build -t app
8+
hatch build -t binary

0 commit comments

Comments
 (0)