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

Using a custom version_scheme outside setup.py #781

Closed
kasium opened this issue Nov 10, 2022 · 2 comments
Closed

Using a custom version_scheme outside setup.py #781

kasium opened this issue Nov 10, 2022 · 2 comments

Comments

@kasium
Copy link

kasium commented Nov 10, 2022

setuptools_scm allows to use a custom version_scheme function. When not using setup.py this needs to be an entry-point name. However, this doesn't work logically. When the project is installed (e.g. pip install -e .), setuptools asks setuptools_scm for the version tp install the project. But the project is not installed at that point and therefore the entry point is not accessible. Then, the install will fail due to assert main_version is not None.
Can you please check how to solve this chicken-egg issue?

One idea - Support qualified names: Instead of an entry-point give the qualified name to a function and setuptools_scm will execute it

@kasium
Copy link
Author

kasium commented Dec 15, 2022

@RonnyPfannschmidt had you some time to look into this? Is there anything I can support with?

@RonnyPfannschmidt
Copy link
Contributor

Haven't been able to look at it, I'm currently unable to give much time to setuptools_scm

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

No branches or pull requests

2 participants