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
Transition to pyproject.toml #443
Conversation
only change version in pyproject.toml
python 3.7 does not have importlib as a default library
Code still has to be moved to .src folder. |
make sure __version__ is available
get pastas version
77f62d6
to
bb1d216
Compare
If there is a new Pastas version released and all pull requests are merged in the dev branch we can update this branch. Then we can move the pastas scripts to the src/ folder and finish this PR. |
Is it really necessary to move the code to the |
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.
See comments.
Hi @martinvonk, now would be a good time to work on this PR ;-) I agree with @dbrakenhoff that if we can stick to the current folder structure and not use a src folder I would prefer that. |
Will continue working on this after #441 is merged. On the |
since python 3.7 is deprecated in pastas 0.23.0
fix __version__
put packages between ""
__version__ update
add black formatting optoins
add setuptools as requirement
just to make life easy and make use pyproject.toml is used
057ad28
to
55f24b8
Compare
update dependencies
At this point the method works. Now we want to replace the requirements.txt files with the optional dependencies. @dbrakenhoff is gonna give it a try because I don't understand the rtd setup process (yet) :). |
I was hoping to merge dev into this PR without all the changes showing up in this PR, but for some reason I didn't do that correctly...? Anyway, hopefully black linting passes now. If I messed up, I'll have to reset to an older commit and redo the merge. But let's see how it goes first. Last thing is that we should maybe document somewhere what the procedure now looks like to create a new Release.
|
Can we change these lines as well? Such that we can remove the requirements.txt files. pastas/.github/workflows/ci.yml Line 32 in 17c6fd4
pastas/doc/userguide/getting_started.rst Line 51 in efacd4e
Regarding @dbrakenhoff comment:
With this change the version is now updated only in the pyproject.toml file and no longer in version.py. The version update takes place only in one file so that's good. |
- update requirements in docs
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 think this is change going to work :)
So to list the changes:
- setup.py is removed in favor of pyproject.toml
- update the pastas version is now only done in the pyproject.toml file
- the version.py file now uses importlib to determine the used pastas version
- setup.cfg is added but empty (which makes maintenance easy). However we need an empty setup.cfg file, otherwise we can't do
pip install -e .
- remove requirements.txt files and get dependencies for readthedocs and ci from pyproject.toml
- add black formatting checks
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.
Couple of small changes as per the review comments. Particularly the Scipy version change. Then it should be good to go!
Short Description
See #442
Checklist before PR can be merged: