data.gov icon indicating copy to clipboard operation
data.gov copied to clipboard

Update Repos to use pyproject.toml

Open btylerburton opened this issue 1 year ago • 3 comments

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 AND setup.py and setup.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 and setup.cfg with a pyproject.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

btylerburton avatar Sep 05 '23 19:09 btylerburton

Will discuss with @btylerburton on whether this makes sense for as-is (CKAN) or whether this should be for going forward only

hkdctol avatar Sep 07 '23 20:09 hkdctol

This is for going forward only

btylerburton avatar Sep 13 '23 21:09 btylerburton

Todo: resolve the question of Poetry compatibility with Cloud.gov

btylerburton avatar Mar 28 '24 15:03 btylerburton