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

missing pyproject.toml #211

Open
ymahlich opened this issue Sep 26, 2024 · 2 comments · May be fixed by #273
Open

missing pyproject.toml #211

ymahlich opened this issue Sep 26, 2024 · 2 comments · May be fixed by #273
Assignees
Labels
'build' update enhancement New feature or request

Comments

@ymahlich
Copy link
Collaborator

When installing a python package locally via pip that I actively develop on I prefer doing so via pip install -e/--editable <path-to-local-git-repo>. This allows me to being able to import the package from anywhere without having to reinstall it after every change.

setuptools / setup.py is being deprecated. pip recommends switching to a pyproject.toml.

I don't think this is necessarily urgent, but maybe something to keep in the back of our heads.

@ymahlich
Copy link
Collaborator Author

Putting together another package and making it ready for distribution I came across this: https://hatch.pypa.io/1.8/
Might be useful for creating the pyproject.toml (see more details here: https://hatch.pypa.io/1.8/intro/#existing-project).
As far as I understand it it should be able to just use a preexisting setup.py and essentially translates that into a pyproject.toml which will be the way pip will be installing software in the future.

@sgosline sgosline assigned ymahlich and unassigned jjacobson95 Nov 13, 2024
@jjacobson95
Copy link
Collaborator

We will have to update scripts/push_to_pypi.py.py as well. This is where the package is built before pushing it to pypy in the build_all.py script

@sgosline sgosline moved this to Ready in CoderData Nov 22, 2024
@ymahlich ymahlich moved this from Ready to In progress in CoderData Dec 18, 2024
@ymahlich ymahlich linked a pull request Dec 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
'build' update enhancement New feature or request
Projects
Status: In progress
Development

Successfully merging a pull request may close this issue.

2 participants