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

Fix dynamic version specification. #477

Merged
merged 1 commit into from
Jul 3, 2023

Conversation

stefmolin
Copy link
Contributor

@stefmolin stefmolin commented Jul 3, 2023

I noticed a small bug coming from #474. In order to use the dynamic version, you have to specify where it is coming from otherwise it installs as numpydoc-0.0.0. I added the required logic to the tools/pyproject.toml.in file and ran the script to update the file.

Before change:

Successfully installed numpydoc-0.0.0

After change:

Successfully installed numpydoc-1.6.0rc1.dev0

@jarrodmillman jarrodmillman added this to the 1.6.0 milestone Jul 3, 2023
@stefanv
Copy link
Contributor

stefanv commented Jul 3, 2023

If we're compiling the toml anyway, why not inject a static version parsed from the code?

@jarrodmillman
Copy link
Member

We can make a follow-up PR if we decide to inject a static version parsed from the code.

@jarrodmillman jarrodmillman merged commit e5cee43 into numpy:main Jul 3, 2023
@larsoner
Copy link
Collaborator

larsoner commented Jul 3, 2023

In several projects I've started using setuptools_scm with good

@larsoner
Copy link
Collaborator

larsoner commented Jul 3, 2023

... results. But you need the git history so maybe not a good choice here

@stefmolin stefmolin deleted the fix-version-bug branch July 13, 2023 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants