-
Notifications
You must be signed in to change notification settings - Fork 61
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
Django 4.2/DjangoCMS 3.11 support #122
Comments
Would be best with updates based on django-cms/djangocms-audio#32 |
I have edited the top comment into a to do list (more or less a list). |
I managed to run |
Can someone help me fixing the ci? |
Because it's a script used to generate the test requirements and not a generic module I'm not sure it'd work as a separate tool. Although with the tweaks that @fsbraun made to it recently it could be made into something that could be packaged up. |
@marksweb Maybe it's a candidate for a manual github action. Would require a runner with multiple python versions installed and prevent contributors from drowning their hard drives with countless python versions. This might not even be difficult: https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#specifying-multiple-pythonpypy-version
|
@fsbraun yes, love this idea. That'd make it really easy to upgrade requirements as well. |
What tweaks? The problem with the same script in every repository, that they are drifting apart and it is hard to keep track of that. |
@mogoh I have tracked down the changes Fabian made to djangocms-alias: https://github.com/django-cms/djangocms-alias/blob/master/tests/requirements/compile.py Looks like you were thinking along the same lines with your changes. If we can develop this into an action, then that solves the issue of the script drifting between repos. |
@marksweb |
Here is another problem:
So we are both depending on each other.
|
I can't please the coverage ci. Here it runs with 99%: https://github.com/CERES-RUB/djangocms-picture/actions/runs/5669526899/job/15362500833 https://github.com/CERES-RUB/djangocms-picture/actions/runs/5669526899/job/15362423893 |
If I run
I get a coverage report of 100%. If I how ever run
I get a coverage report of 99%. This suggest to me, that our coverage report is misconfigured and only works for the latest run of tox. I think the reason, why coverage varies between python version might be the coverage of decorator functions. I don't know how to achieve 100% coverage and help would be appreciated. |
@mogoh Yeah I've never really liked configuring coverage and often found similar results. There is the So what happens if you run;
|
So, I learned that to combine, one needs to run But the problem did not went away. Here is what I did: coverage erase
tox run -f py311
tox run -f py38
coverage combine
coverage html
coverage report --fail-under=100 This leads to 100% coverage However this does not: coverage erase
tox run -f py38
coverage combine
coverage html
coverage report --fail-under=100 Only 99% coverage. |
If no one can find a solution, I suggest removing |
Did you look into the different coverage reports. I would assume that some code is only run by py11...? |
Hm, that seems more like differences between python versions counting lines..., Since it works with the newer versions, I'd leave the target. We all know that the 99% are ok. |
Sorry, for taking so long to answer. @fsbraun I am not sure if I understand you correctly. If we don't change the 100%-code-coverage-target, we are not able to merge the change into master branch, right?
What do you mean by that? Leave the target in place (do not change it)? Or leave the target behind and change it? Because the way I understand you is, that we should change it, but then the rest does not fit. |
@mogoh if the 100% thing is the problem, just remove that from the report command. |
If I ran
python manage.py makemigrations
after updating to Django 4.2/DjangoCMS 3.11, new migrations will be generated.Housekeeping
Support of Versions:
setup.py
for supported Versionsproject.toml
CHANGELOG.rst
.pre-commit-config.yaml
(Not sure how to use this)Testing
tests/requirements/*
withcompile.py
Pre commit linting
.github/workflows/lint.yml
Change testing from
flake8
&isort
toruff
.github/workflows/lint-pr.yml
for conventional commitsCode Coverage
.github/workflows/test.yml
.Pypi publishing pipeline
.github/workflows/publish-to-test-pypi.yml
.github/workflows/publish-to-live-pypi.yml
Add migrations
There are already two pull requests, for adding migrations.
We should pick one, might need to rebase it onto master and merge it.
The other pull request should be closed.
The text was updated successfully, but these errors were encountered: