Repository navigation
Build project with pyproject.toml - #8011
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8011 +/- ##
=======================================
Coverage 91.95% 91.95%
=======================================
Files 128 128
Lines 21275 21276 +1
=======================================
+ Hits 19563 19564 +1
Misses 1712 1712 🚀 New features to boost your workflow:
|
|
To which extent do we want to embrace Pixi here? Bambi's dev workflow is built on top of Pixi and I like how clean it looks like and I think I could help. But I guess here we don't want to force people to have Pixi installed in order to contribute to PyMC? |
|
Sorry, I'm really slammed at the moment, but I have a slightly different approach that I took in PyTensor in pymc-devs/pytensor#1542 |
4390b35 to
1e9ddea
Compare
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
I'm changing the scope of this PR to ignore the pixi stuff for now and focus on ditching |
1e9ddea to
6c3eccc
Compare
6c3eccc to
106e5fc
Compare
|
I checked that both the sdist and the wheel contain the same files before and after this change |
106e5fc to
6535cd7
Compare
| "bayesian-inference", | ||
| "science", | ||
| ] | ||
| dependencies = [ |
There was a problem hiding this comment.
one more place to update dependencies :)
There was a problem hiding this comment.
One different place rather, because this removes requirements.txt!
There was a problem hiding this comment.
I don't see it excluded? nor the -devs one? Happy if they can go
There was a problem hiding this comment.
Damn, sorry, bad rebase. Now it is.
The requirements-devs.txt is another problem because it is auto-generated from the conda env. I think it can be tackled in its own time
There was a problem hiding this comment.
seems to only be used for binder... would be nice to get rid of it next yeah
e6d747a to
34c5600
Compare
ricardoV94
left a comment
There was a problem hiding this comment.
@maresb anything we need to do on pypi or conda side after this?
maresb
left a comment
There was a problem hiding this comment.
This is so amazing, great work @Armavica!!! 🤩
This shouldn't require any changes on the conda-forge side apart from updating the setuptools and python constraints.
(BTW, any particular reason to pin python<3.15? Python is so stable that I question if it's actually necessary?)
It looks like versioneer is failing to set the version in the wheel/sdist, falling back to 0.0.0. In order to restore the correct version, I think we still need a mini setup.py with something like the following:
import versioneer
from setuptools import setup
setup(
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
)34c5600 to
12ddac2
Compare
|
Thank you @maresb !
I was thinking that if we don't explicitly test it in the CI, it might be wise to pin it?
Ah yes indeed, thank you. I am wondering if it might be worth at some point moving to |
maresb
left a comment
There was a problem hiding this comment.
Looks great now!
Ah yes indeed, thank you. I am wondering if it might be worth at some point moving to setuptools-scm, maintained by the PyPA and described as "the blessed package to manage your versions by scm tags"
Yes, I was thinking the exact same thing! I'd prefer to tackle setuptools-scm in a separate PR because that also changes which files get included in the sdist, and would require a careful audit of the wheel/sdist included files and metadata.
I was thinking that if we don't explicitly test it in the CI, it might be wise to pin it?
My thinking on the matter has changed drastically over the years. If you happen to have a day to spare for reading about version constraints, I find this argument quite compelling, but I wouldn't block this PR on it.
|
I'm cautiously marking this PR as "major" |
|
exciting! |
|
@ricardoV94, I think this is safe to tag as "maintenance" since I've validated the sdist and wheel artifacts. But the improvement itself is "major" 😉 |
Description
Related Issue
Checklist
Type of change