Skip to content
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

[sharktank] Modernize setup.py based project #371

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

marbre
Copy link
Collaborator

@marbre marbre commented Oct 30, 2024

Progress on #294

Moves over the project metadata and most parts of the build configuration to the pyproject.toml, see [1, 2]. The setup.py is kept to allow handling version_info.json files in a similar manner across all our project.

[1] https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
[2] https://packaging.python.org/en/latest/guides/modernize-setup-py-project/

@marbre marbre requested a review from ScottTodd October 30, 2024 14:44
Comment on lines 39 to 40
[tool.setuptools.dynamic]
# version = {file = ["version_info"]}
dependencies = {file = ["requirements.txt"]}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is version commented out here? Could use a comment pointing to setup.py maybe?

Copy link
Member

@ScottTodd ScottTodd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as long as we still have the flexibility to append version suffixes based on dev/CI builds.

Moves over the project metadata and most parts of the build
configuration to the `pyproject.toml`, see [1, 2]. The `setup.py` is
kept to allow handling `version_info.json` files in a similar manner
across all our project.

[1] https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
[2] https://packaging.python.org/en/latest/guides/modernize-setup-py-project/
@marbre marbre force-pushed the sharktank-pyproject branch from a45ea10 to 908b6e5 Compare October 31, 2024 12:46
@marbre marbre merged commit 552791a into nod-ai:main Oct 31, 2024
3 of 6 checks passed
@marbre marbre deleted the sharktank-pyproject branch October 31, 2024 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants