-
Notifications
You must be signed in to change notification settings - Fork 71
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
Replace setup.py by pyproject.toml #195
Conversation
We could probably move the version information into the top level |
Putting the version into |
Okay, 1st of all: sorry for the mess. I just wanted to include the pytest config, but that was a bit more tricky than expected. But now everything works, including building the package (locally and in our CI/CD pipeline). This means it's also PyPi compatabible. My formatter did a lot of changes in sequence.py, so that I manually selected the important lines for the commit. That worked fine, but for some reason GitHub shows that the whole file was changed. It was not. Here is my local diff of sequence.py before / after my changes: Regarding the version number: defining it in the pyproject toml and than using this info everywhere else in the package employing for example EDIT: In the last commit I forgot to manually select the relevant lines. This is why some formatting is included as well. Sorry for that. But maybe this is a good example why we should define formatting standards as soon as possible. I will create an Issue for that and create a PR when we agree on something. Spoiler: I am a big fan of RUFF |
@schuenke Looks good, but two concerns:
|
I will check both points tomorrow again. |
Regarding point 1:
Regarding point 2:
The advantage is, that the license is defined in a single position only, which helps to prevent inconsistencies when changing something. But I don't have a super strong opinion here and would be fine with adding it in the classifiers as well. |
Sounds good. Should be ready for merging if there are no other concerns. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I double-checked yesterday that the *.mat file is included in the package data without the MANIFEST.ini
👍
This PR aims to replace deprecated setup.py with a "pyproject.toml", hopefully without breaking anything. Relevant discussion #124. Luckily, setup.py was simple enough to easily replace. Alas, PR requires some input in regard to the following points:
I could not figure out how to use "version.py" file to fetch current version dynamically. There are of course ways to dynamically do it: https://setuptools.pypa.io/en/stable/userguide/pyproject_config.html, but our directory structure is not standard, and version file does not follow module attr, so I do not know how to set dynamic version
attr
.I need help testing this plays well with uploading to
PyPI
.