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 4, 2025
1 parent bf91100 commit 0e03174
Show file tree
Hide file tree
Showing 6 changed files with 430 additions and 343 deletions.
3 changes: 2 additions & 1 deletion .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 @ git+https://github.com/python-poetry/poetry.git@main
poetry-dynamic-versioning==1.4.1
poetry-plugin-export==1.8.0
9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ jobs:
test:
runs-on: ubuntu-latest
env:
FORCE_COLOR: "1"
NOXPYTHON: ${{ matrix.python-version }}
NOXSESSION: tests
PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt
Expand Down Expand Up @@ -72,6 +71,7 @@ jobs:
- name: Install Poetry
run: |
pipx install poetry
pipx inject poetry poetry-plugin-export
poetry --version
poetry self show plugins
Expand All @@ -90,14 +90,16 @@ jobs:
typing:
runs-on: ubuntu-latest
env:
NOXSESSION: mypy
PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt
steps:
- name: Checkout code
uses: actions/checkout@v4

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

Expand All @@ -109,6 +111,7 @@ jobs:
- name: Install Poetry
run: |
pipx install poetry
pipx inject poetry poetry-plugin-export
poetry --version
poetry self show plugins
Expand All @@ -120,4 +123,4 @@ jobs:
- name: Run typing checks
run: |
nox --verbose -s mypy
nox --verbose
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 0e03174

Please sign in to comment.