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

Decouple django and python versions from other dependencies #459

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MarcoGlauser
Copy link
Collaborator

The main change is decoupling django and python versions from other libraries.
That way, when a new version of django comes out, we can add it without having to update the "latest", "previous" and "legacy" dependencies.
Same thought for new python versions. If a new version comes out or we deprecate an old version, we can add it without having to update other things.

At the same time, this PR updates the github actions versions to their latest version to avoid deprecation notices.

@MarcoGlauser MarcoGlauser self-assigned this Mar 27, 2024
with:
name: coverage-results
name: coverage-results-${{ matrix.python-version }}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The coverage results are supposed to be a single combined coverage report. I haven't actually checked if the outputs are being gathered correctly across all branches on github, but it is in tox.

Comment on lines +76 to +78
py312-django50-latest{-pyuca,-noi18n}
py311-django42-latest
py39-django32-latest
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These depends have to match the ones in envlist. A comment in envlist would be useful to ensure these are kept up to date when someone next updates them too.

@@ -50,7 +50,7 @@ commands =
rst2html.py --report=info --halt=warning README.rst /dev/null
rst2html.py --report=info --halt=warning CHANGES.rst /dev/null

[py311-latest-noi18n]
[py311-django50-latest-noi18n]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this section can be removed and just use a conditional setenv in the standard section:

    noi18n: DJANGO_SETTINGS_MODULE = django_countries.tests.settings_noi18n

@@ -28,26 +28,29 @@ jobs:
run: tox
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can probably speed things up with tox --parallel

@jrief
Copy link

jrief commented May 1, 2024

I came across this pull request because I was looking for a version of django-countries running on Python-3.12.

Just a question, why do you still use tox? I migrated all my projects to just use GitHub actions and their matrix, so that I can combine any Python- with any Django version. This imo is much easier to maintain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants