-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move setup.py to pyproject.toml * move dev tool config to pyproject.toml * update integration.yml to use hatch commands * update main.yml to use hatch commands * update scripts for pyproject.toml and hatch.toml references * update release workflow to use hatch --------- Co-authored-by: Colin Rogers <[email protected]>
- Loading branch information
1 parent
827fc78
commit e1b6e74
Showing
21 changed files
with
657 additions
and
444 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Under the Hood | ||
body: Move from setup.py to pyproject.toml and to hatch as a dev tool | ||
time: 2024-11-17T19:47:46.341-05:00 | ||
custom: | ||
Author: mikealfare | ||
Issue: "1407" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,15 +52,8 @@ jobs: | |
with: | ||
python-version: '3.9' | ||
|
||
- name: Install python dependencies | ||
run: | | ||
python -m pip install --user --upgrade pip | ||
python -m pip install -r dev-requirements.txt | ||
python -m pip --version | ||
pre-commit --version | ||
dbt --version | ||
- name: Run pre-comit hooks | ||
run: pre-commit run --all-files --show-diff-on-failure | ||
- name: Run pre-commit hooks | ||
uses: pre-commit/[email protected] | ||
|
||
unit: | ||
name: unit test / python ${{ matrix.python-version }} | ||
|
@@ -72,10 +65,6 @@ jobs: | |
matrix: | ||
python-version: ['3.9', '3.10', '3.11', '3.12'] | ||
|
||
env: | ||
TOXENV: "unit" | ||
PYTEST_ADDOPTS: "-v --color=yes --csv unit_results.csv" | ||
|
||
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v4 | ||
|
@@ -88,27 +77,9 @@ jobs: | |
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install python dependencies | ||
run: | | ||
python -m pip install --user --upgrade pip | ||
python -m pip install tox | ||
python -m pip --version | ||
tox --version | ||
- name: Run tox | ||
run: tox | ||
uses: pypa/hatch@install | ||
|
||
- name: Get current date | ||
if: always() | ||
id: date | ||
run: | | ||
echo "date=$(date +'%Y-%m-%dT%H_%M_%S')" >> $GITHUB_OUTPUT #no colons allowed for artifacts | ||
- uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: unit_results_${{ matrix.python-version }}-${{ steps.date.outputs.date }}.csv | ||
path: unit_results.csv | ||
overwrite: true | ||
- run: hatch run unit-tests | ||
|
||
build: | ||
name: build packages | ||
|
@@ -129,25 +100,16 @@ jobs: | |
with: | ||
python-version: '3.9' | ||
|
||
- name: Install python dependencies | ||
run: | | ||
python -m pip install --user --upgrade pip | ||
python -m pip install --upgrade setuptools wheel twine check-wheel-contents | ||
python -m pip --version | ||
- uses: pypa/hatch@install | ||
|
||
- name: Build distributions | ||
run: ./scripts/build-dist.sh | ||
run: hatch build | ||
|
||
- name: Show distributions | ||
run: ls -lh dist/ | ||
|
||
- name: Check distribution descriptions | ||
run: | | ||
twine check dist/* | ||
- name: Check wheel contents | ||
run: | | ||
check-wheel-contents dist/*.whl --ignore W007,W008 | ||
run: hatch run build:check-all | ||
|
||
- name: Check if this is an alpha version | ||
id: check-is-alpha | ||
|
@@ -174,7 +136,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-14, windows-latest] | ||
os: [ubuntu-22.04, macos-14, windows-2022] | ||
python-version: ['3.9', '3.10', '3.11', '3.12'] | ||
dist-type: ["whl", "gz"] | ||
|
||
|
@@ -184,12 +146,6 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install python dependencies | ||
run: | | ||
python -m pip install --user --upgrade pip | ||
python -m pip install --upgrade wheel | ||
python -m pip --version | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: dist | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.