Skip to content

Commit

Permalink
packaging: Use PEP 621
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Jan 7, 2025
1 parent 9b3afb8 commit 4338212
Show file tree
Hide file tree
Showing 6 changed files with 402 additions and 313 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/constraints.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pip==24.3.1
nox==2024.10.9
nox-poetry==1.0.3
poetry==1.8.5
poetry-dynamic-versioning==1.4.1
poetry==2.0.0
poetry-dynamic-versioning==1.5.0
poetry-plugin-export==1.8.0
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ jobs:
test:
runs-on: ubuntu-latest
env:
NOXPYTHON: ${{ matrix.python-version }}
NOXFORCEPYTHON: ${{ matrix.python-version }}
NOXSESSION: tests
PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1"
strategy:
fail-fast: false
max-parallel: 2
Expand All @@ -50,6 +51,7 @@ jobs:
- "3.11"
- "3.12"
- "3.13"
- "3.14"

steps:
- name: Checkout code
Expand All @@ -71,6 +73,7 @@ jobs:
- name: Install Poetry
run: |
pipx install poetry
pipx inject poetry poetry-plugin-export
poetry --version
poetry self show plugins
Expand Down Expand Up @@ -98,8 +101,8 @@ jobs:

- name: Set up Python
uses: actions/setup-python@v5
id: setup-python
with:
python-version: "3.x"
cache: pip
cache-dependency-path: poetry.lock

Expand All @@ -110,13 +113,14 @@ jobs:
- name: Install Poetry
run: |
pipx install poetry
pipx install poetry --python ${{ steps.setup-python.outputs.python-path }}
pipx inject poetry poetry-plugin-export
poetry --version
poetry self show plugins
- name: Install Nox
run: |
pipx install nox
pipx install nox --python ${{ steps.setup-python.outputs.python-path }}
pipx inject nox nox-poetry
nox --version
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ target/
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.13
Loading

0 comments on commit 4338212

Please sign in to comment.