Add pyproject, cleanup python dependencies, deprecate python 3.9#1018
Add pyproject, cleanup python dependencies, deprecate python 3.9#1018DJ2LS merged 4 commits intoDJ2LS:developfrom
Conversation
|
any comment on the work done and the TODO above? |
|
Sorry for my late reply, i don't have much time at the moment. Could you do me the favour and changing the branch to "develop"? That's our endpoint before merging into main so the changes can be tested |
|
I will have a look at your suggestion and changes soon! |
rebase completed onto develop. |
|
Tested briefly. Currently running develop branch and copied my config.ini for testing. Appears to be issues with config processing and two things I've noticed straight away:
This PR: Also getting this stacktrace |
|
Thanks for your work on the project, @as3ii I really appreciate help! Could you do me the favor, separating linting changes from "normal" changes? This makes it much easier reviewing the PR as I'm checking changed lines by line. |
Thanks for reporting this, @Mashintime , I'm wondering if it is a general bug? Will try to reproduce it as well. |
|
@as3ii tbh, I'm not that happy with the linting stuff as its sometimes causing weird output. Maybe we can define linting in a developer / contributor manual? So we only respect some specific linting rules or adjust them. For example, sometimes it's making more sense in terms of readability, having slightly longer lines / more characters by line. Sure....pep rules are important. Looking forward to your opinion :-) |
I can confirm this issue, but its only occurring within this branch/PR |
|
I suggest reverting the linting commit and doing it step by step ( per linting rule, comments, line length, .... separated as PR) . This makes reviewing easier and more time efficient. It's also easier then finding issues. Sorry if I'm crashing your work, @as3ii there is no negative intension behind, just having problems with reviewing the changes while an issue occurred. I would appreciate if we can continue on the other topics you suggested. Specially regarding pytest vs unittest - it's a part which needs to be improved, maybe you have ideas. Also regarding contribution guidelines, maybe we can introduce some, specially regarding linting so everything becomes easier |
which of the 4 commits should I split?
one of my goals with this PR is exactly this: remove "old" tools like autopep8/black/isort and switch to ruff, which is a configurable (via pyproject.toml or its dedicated config file) linter and formatter that incorporates inside all the rules defined by various PEP, flake8, pyflake, pycodestyle, and others, in this way you just need to run |
|
IIRC ruff by default enables only |
|
Thanks, let's remove 04f0ca5 and d3976b4 - I'm open minded to usage of Regarding |
|
Regarding deprecation of 3.9, I waited until EOL which is reached by 10/25 - lets do it :-) |
In other words, I have to remove the commits regarding code formatting and linting from this PR (putting them in a different PR, dedicated to the switch to ruff and everything linked), and leave in this PR dependency/pyproject changes. Did I understand correctly? |
Yes, thats correctly. Only thing we have to check is the correct place for pyproject.toml - I think in projects root might make more sense - but thats something we could also adjust afterwards as a work in progress. |
|
removed the linting commits, removed references of python versions older then 3.10 (and added 3.13 where missing) |
| colorama | ||
| ordered-set | ||
| nuitka<=2.7.13 | ||
| nuitka<=2.7.16 |
There was a problem hiding this comment.
We have to test, if 2.7.16 is running fine, in past we had several issues with latest nuitka version.
There was a problem hiding this comment.
We also have a setup.py file in project root, maybe we can standardize everything and also fixing the pip package creation by this way. Deleting setup.py then. But I suggest a separated PR for this.
There was a problem hiding this comment.
I'm carefully with NSIS changes as it's a pain maintaining it. So in this case, this acts just as an escape character?
TODO:
Lint/cleanup (autopep8, isort)Switch to ruff for format+lint (add a CI workflow?)fix tests when executed withpytestinstead ofunittest(maybe better in another PR)