Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pyproject.toml file to be more universal and compatible with poetry 2.0 #1152

Merged
merged 6 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
python -m pip install "poetry>=2.0,<3.0"
poetry install --with test
- name: Run tests
run: poetry run python manage.py test --exclude-tag=canary
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
python -m pip install "poetry>=2.0,<3.0"
poetry config virtualenvs.create false # tell poetry not to create a new virtual environment
poetry self add "poetry-dynamic-versioning[plugin]"
- name: Build package with poetry
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-canary-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
python -m pip install "poetry>=2.0,<3.0"
poetry install --with test
- name: Run Canary Tests
run: poetry run python manage.py test --tag=canary
6 changes: 3 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
python -m pip install "poetry>=2.0,<3.0"
poetry install --with lint
- name: Style Checks
run: poetry run flake8 tom_* --exclude=*/migrations/* --max-line-length=120
Expand All @@ -32,7 +32,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
python -m pip install "poetry>=2.0,<3.0"
poetry env info # display poetry's env info for debugging
poetry install --with test,coverage,lint
- name: Run Tests
Expand All @@ -49,7 +49,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
python -m pip install "poetry>=2.0,<3.0"
poetry install --with test,coverage,lint
- name: Run Tests
run: poetry run coverage run --include=tom_* manage.py test --exclude-tag=canary
Expand Down
Loading
Loading