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 Feb 5, 2025
1 parent 0e336ef commit d887397
Show file tree
Hide file tree
Showing 5 changed files with 480 additions and 376 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ jobs:
test:
runs-on: ubuntu-24.04
env:
NOXPYTHON: ${{ matrix.python-version }}
NOXFORCEPYTHON: ${{ matrix.python-version }}
NOXSESSION: tests
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1"
strategy:
fail-fast: false
max-parallel: 2
Expand All @@ -59,6 +60,7 @@ jobs:
- "3.11"
- "3.12"
- "3.13"
- "3.14"

steps:
- name: Checkout code
Expand Down Expand Up @@ -107,8 +109,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 @@ -119,15 +121,31 @@ jobs:
- name: Install Poetry
run: |
<<<<<<< HEAD
pipx install poetry==${{ env.POETRY_VERSION }}
pipx inject poetry poetry-plugin-export==${{ env.POETRY_PLUGIN_EXPORT_VERSION }}
||||||| parent of 2f4087d (packaging: Use PEP 621)
pipx install poetry
pipx inject poetry poetry-plugin-export
=======
pipx install poetry --python ${{ steps.setup-python.outputs.python-path }}
pipx inject poetry poetry-plugin-export
>>>>>>> 2f4087d (packaging: Use PEP 621)
poetry --version
poetry self show plugins

- name: Install Nox
run: |
<<<<<<< HEAD
pipx install nox==${{ env.NOX_VERSION }}
pipx inject nox nox-poetry==${{ env.NOX_POETRY_VERSION }}
||||||| parent of 2f4087d (packaging: Use PEP 621)
pipx install nox
pipx inject nox nox-poetry
=======
pipx install nox --python ${{ steps.setup-python.outputs.python-path }}
pipx inject nox nox-poetry
>>>>>>> 2f4087d (packaging: Use PEP 621)
nox --version

- name: Run typing checks
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 d887397

Please sign in to comment.