-
Notifications
You must be signed in to change notification settings - Fork 11
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
Installation does not work with 'src' package layout #30
Comments
Thanks for the report @kmpf! I agree that we need to add documentation for this. It seems support for 'src' layout was added in v0.7.0 (according to the changelog). This can certainly be made more ergonomic ( |
Shall I help out with something. Testing? Providing documentation? |
@kmpf thanks! Documentation would be the easiest place to start; we just need to add a section to the README. |
If you want to take a crack at implemention auto-detection of If so we can start a discussion in a separate "feature proposal" issue, or you can directly open a PR and we'll go from there. |
Used miniver as replacement for
versioneer
. Ran into problem:FileNotFoundError: [Errno 2] No such file or directory: '<package_name>/_version.py'
Fixed the issue by changing:
spec = spec_from_file_location('version', os.path.join(package_name, '_version.py'))
to:
spec = spec_from_file_location('version', os.path.join('src', package_name, '_version.py'))
adding
'src'
to path. This information should be included in the documentation. If I'll find time I'll provide a merge request.The text was updated successfully, but these errors were encountered: