8000 'versioneer install' doesn't respect versionfile_source's filename when modifying __init__.py · Issue #240 · python-versioneer/python-versioneer · GitHub
[go: up one dir, main page]

Skip to content

'versioneer install' doesn't respect versionfile_source's filename when modifying __init__.py #240

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

Closed
staticintlucas opened this issue Dec 20, 2020 · 2 comments

Comments

@staticintlucas
Copy link
Contributor

I want to use a different filename for my _version.py, so in my setup.cfg I set:

versionfile_source = src/someotherfile.py

When I run versioneer install this correctly generates that file and adds it to my MANIFEST.in.

However in my init.py it adds:

from ._version import get_versions

instead of:

from .someotherfile import get_versions

If I manually modify this line everything else seems to work as expected.

@effigies
Copy link
Contributor

Thanks for the report. Yes, this is a known issue (#123), and it appears that #138 was a first pass at resolving it.

Would you be interested in taking a shot at fixing it?

@staticintlucas
Copy link
Contributor Author

Oops, I hadn't seen the original bug report. Feel free to close this as duplicate.

I can have a look at fixing it in the next week or two.

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
0