Skip to content

Conversation

@Rubo3
Copy link
Contributor

@Rubo3 Rubo3 commented Sep 6, 2023

This patch removes setup.py in favour of pyproject.toml, which follows the relatively new way of building Python packages specified by PEP-621.

Copy link
Collaborator

@Liam-DeVoe Liam-DeVoe left a comment

Choose a reason for hiding this comment

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

Thanks! I'm in favor of this in principle (been slowly converting all of my projects to pyproject.toml).

Copy link
Collaborator

@Liam-DeVoe Liam-DeVoe left a comment

Choose a reason for hiding this comment

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

It would be good if all the places the version is currently hardcoded in the codebase used from importlib import metadata; version = metadata.version(__package__) instead, to dynamically retrieve this value from pyproject.toml.

"requests",
"scipy",
]
scripts = {slider="slider.__main__:main"}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this correct? I believe this will cause a console_scripts entry point to be installed and add an executable named slider to the user's PATH. This is not what slider currently does: it's invoked with python -m slider, as on the docs.

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