data.gov
data.gov copied to clipboard
Update Repos to use pyproject.toml
User Story
In order to be future-facing, datagovteam wants to update our repo configuration to support pyproject.toml. As stated in this article, the .toml
file convention is mature enough to be supported by the official Python packaging guide (here), so datagovteam should upgrade repos to support this standard as well.
Acceptance Criteria
[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using BDD.]
- [ ] GIVEN a python repository
THEN it can be transitioned to use
pyproject.toml
ANDsetup.py
andsetup.cfg
should be removed.
Background
[Any helpful contextual notes or links to artifacts/evidence, if needed]
Security Considerations (required)
none
Sketch
- [ ] Collect all the repos and cycle through them
- [ ] Replace
setup.py
andsetup.cfg
with apyproject.toml
- [ ] Confirm tests and actions are working
- [ ] Determine best approach to writing requirements.txt file from pyproject.toml, as we will still need this for python buildpak
- [ ] Ensure SYNK & Dependabot configurations are still working
Will discuss with @btylerburton on whether this makes sense for as-is (CKAN) or whether this should be for going forward only
This is for going forward only
Todo: resolve the question of Poetry compatibility with Cloud.gov