-
Notifications
You must be signed in to change notification settings - Fork 167
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
move build configuration into pyproject.toml
#6847
move build configuration into pyproject.toml
#6847
Conversation
pyproject.toml
using poetry-core
pyproject.toml
5483667
to
1b99f2d
Compare
1b99f2d
to
7a31d53
Compare
7a31d53
to
b3a786c
Compare
b3a786c
to
b99844c
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6847 +/- ##
=======================================
Coverage 75.42% 75.42%
=======================================
Files 464 464
Lines 37938 37936 -2
=======================================
Hits 28615 28615
+ Misses 9323 9321 -2
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
there's an issue with the package data so I will convert this back to draft for now |
b0fb38e
to
6dd7e61
Compare
62309de
to
ebb3dd7
Compare
7b46d88
to
a021a70
Compare
9d33653
to
0d64e30
Compare
pyproject.toml
pyproject.toml
fef8992
to
6aca0c5
Compare
e17881d
to
a692a13
Compare
58cb8ab
to
87edcbd
Compare
87edcbd
to
a7c04d0
Compare
we can test the effect of this PR on the build after #7912 is merged |
a7c04d0
to
cd3f2e7
Compare
8c7a58a
to
a0e7841
Compare
95645bc
to
3cd395f
Compare
3cd395f
to
9a73e53
Compare
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.
Looks OK to me, I guess (but what do I know about build configuration?). I assume all the CI failures with devdeps are expected, because of numpy?
great! I'll merge this then, thanks! |
@@ -68,6 +68,7 @@ deps = | |||
xdist: pytest-xdist | |||
oldestdeps: minimum_dependencies | |||
package = | |||
# necessary so the C extensions are available for import; see https://github.com/spacetelescope/jwst/issues/7386#issuecomment-1344371482 |
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 do not think this is necessary. This can be avoided my a artful (as opposite to scientific, deterministic) use of various tox
directory names. That is, the path to where the commands must be run, the location of the configuration files, etc. can be adjusted in such a way that this may not be needed. See https://github.com/spacetelescope/stsci.imagestats on how this was done there.
One possible complication might be on RTD or pytest of docstrings if there are examples that use/import C code.
Description
setuptools
now supports the[project]
table, which is defined by PEP621.Additionally,
setuptools
now supports its own entry inpyproject.toml
called[tool.setuptools]
(pypa/setuptools#1688, https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#setuptools-specific-configuration); however, it comes with the following disclaimer:Reading
toml
is supported natively in Python 3.11 withtomllib
Given this, we can attempt to consolidate the build configuration into a single
pyproject.toml
file that can possibly be read by other build systems in the future.Checklist
DocumentationMilestone