Incomplete support for packages_root field in setup.cfg
Bug #1686111 reported by
Simon Ruggier
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PBR |
Confirmed
|
Medium
|
Unassigned |
Bug Description
I recently tried to get pbr to work with a source tree layout where the code is under a src/ subdirectory, but despite my best efforts, I was unsuccessful. In the [files] section of my setup.cfg, I set packages_root = src, and then tried various different values for packages, such as <packagename>, src.<packagename>, src/<packagename>, and just src, and none of those resulted in the successful creation of packages. I've attached a simple repro tarball to illustrate what I mean. One can extract the tarball, run git init to keep pbr's automatic versioning happy, and then play with setup.py commands in there.
Changed in pbr: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
To post a comment you must log in.
Indeed, it does not seems to work out of the box.
I tried:
[files]
packages_root = src
files = src # or src/mypackage
It does not work. Would be cool to allow packages to be put into a subdirectory "src", without changing the name of the package and the way to access to it
also, it allows more easily package transitions:
In my package, I have a src/mypackage package. Now, let's say I have some method I want to move to another lib "anotherlib". I can temporarily create an src/anotherlib", time until pypi receive my new lib 'anotherlib', and I do not have code to change in python files.