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

Version in conda metadata wrong #154

Open
BenediktBurger opened this issue May 13, 2024 · 2 comments
Open

Version in conda metadata wrong #154

BenediktBurger opened this issue May 13, 2024 · 2 comments

Comments

@BenediktBurger
Copy link

I'm trying to publish another package on conda-forge (PyLECO, issue: conda-forge/staged-recipes#26052) which depends on your package.

The build pipeline failed as the metadata of your package showed the version "0.0.0.dev0", which is obviously below any reasonable version limit.

Culprit seems to be the following code, as conda-forge does not have the github environment while creating the package:

uuid6-python/setup.py

Lines 15 to 19 in 4f87984

if GITHUB_REF and GITHUB_REF.startswith(PREFIX):
prefix_len = len(PREFIX)
VERSION = GITHUB_REF[prefix_len:]
else:
VERSION = "0.0.0.dev0"

@oittaa
Copy link
Owner

oittaa commented Jul 10, 2024

I haven't checked if there are some new Python packaging instructions nowadays. Are there some "official" or simple ways to keep these version variables up to date in setup.py without editing the file every time?

@BenediktBurger
Copy link
Author

The python packaging works (for pypi), but it does not work for conda.
There you have to state the version manually in the project file 🤷 .

I in my package (pyleco) use an additional branch for conda release with a hardcoded version.

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