-
Notifications
You must be signed in to change notification settings - Fork 247
-
Notifications
You must be signed in to change notification settings - Fork 247
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
list_packages not working correctly #110
Comments
Actually the override path properties are not supposed to have a trailing slash, that's why pybuilder is eating a character from the package. I guess it would be cleaner to check for the trailing slash case and handle it, so that's what I'll do. Thanks for the report! |
Thanks, I'll remove the trailing slashes. Mirko |
It's as I thought. You start out with the path to your package, say
so this leaves But if your source path is Both variants (trailing slash / no trailing slash) should work now. Thanks again for reporting! |
@aelgru do you want to review/release this? |
Thanks for the quick fix! |
I just released v0.10.35 which includes the fix to this issue. |
Hello,
I just started using pyb on an existing project. I ran into a weird issue where the first letter of all packages was missing in all the packages in setup.py. i.e. I have:
packages = ['oaders', 'awdata', 'onfig',..]
instead of
packages = ['loaders', r'awdata', 'config',..]
I fixed by redefining Project.list_packages in build.py, removing the [1:] splice (see core_plugin.py)
I may be doing something wrong with my configuration, but I didn't change many default values:
from pybuilder.core import use_plugin, init
use_plugin("python.core")
use_plugin("python.unittest")
use_plugin("python.flake8")
use_plugin("python.coverage")
use_plugin("python.distutils")
name = "loader"
default_task = ["publish"]
@init
def set_properties(project):
project.set_property('coverage_break_build', False)
project.set_property("dir_source_main_python", "src/")
project.set_property("dir_source_unittest_python", "test/")
project.set_property("dir_source_main_scripts", "src/scripts/")
project.set_property("dir_dist_scripts", 'scripts')
project.depends_on_requirements("requirements.txt")
project.depends_on("django-altauth", url = "git+https://github.com/MirkoRossini/django-altauth.git")
Thanks
Mirko
The text was updated successfully, but these errors were encountered: