Questions tagged [pybuilder]

PyBuilder is a multi-purpose software build tool with a strong focus on Python.

PyBuilder provides a powerful and extensible way for building and testing software and mainly targets Python applications.

It allows you to use Python to write build files and is highly pluggable.

Some of the capabilities are:

  • execution of unit and integration tests
  • generation of distutils script setup.py
  • analysis of the code coverage
  • execution and result interpretation of analysis tools, such as flake8

PyBuilder is based on the concept of dependency based programming but also comes along with powerful plugin mechanism that allows the construction of build life cycles similar to those known from other famous build tools like Apache Maven.

48 questions
8
votes
1 answer

Unit test packages Maven style convention

I want to create a pybuilder project with unit tests and packages. As an example, modified simple python app example, with "helloworld" moved to package "hello". My first instinct was to match the package structure with "main" and "unittest"…
ketorin
  • 1,034
  • 2
  • 12
  • 21
4
votes
0 answers

What is the main difference betwen pybuilder and pygradle

I am recently learning python and figuring out a build tool to use. I stumbled upon pybuilder and pygradle. Could not find a difference between these tools in internet. Would like to know when to choose what , their individual strengths and…
T D
  • 1,080
  • 2
  • 13
  • 20
4
votes
1 answer

Alter default source location for pybuilder

In the documentation of pybuilder it says that The default location for main python sources is src/main/python This is a convention borrowed from Apache Maven. You can alter this location... But it is not mentioned anywhere how to change the code…
saloua
  • 2,433
  • 4
  • 27
  • 37
4
votes
1 answer

How do I configure pybuilder?

How can I change the configuration in pybuilder, and how does the configuration in pybuilder work?. How Do I find out the possible configuration values and their defaults, how do I override or change them per project / per module / on the…
mit
  • 11,083
  • 11
  • 50
  • 74
3
votes
0 answers

PyBuilder can't find src module when running from virtualenv?

Here's my build.py: import os import shutil import subprocess from pybuilder.core import use_plugin, init, task,…
CrizR
  • 688
  • 1
  • 6
  • 26
3
votes
0 answers

Currently unable to run unittests from Pybuilder without receiving an error?

I'm trying to use Pybuilder to build and then run my python project unittests. Everything goes well in the build process, but when it goes to run my unittests I receive the following error message: File…
CrizR
  • 688
  • 1
  • 6
  • 26
3
votes
0 answers

Python Coverage Warning - Module 'module_name' was not imported by the covered tests

I am getting an error promoting [WARN] Module 'module_name' was not imported by the covered tests in pybuild python coverage plugin. I can't see my scripts in coverage report and build got success with high coverage rate showing 100% coverage in…
tiroshanm
  • 123
  • 3
  • 13
3
votes
1 answer

PyBuilder "ModuleNotFoundError: No module named" when running

I'm playing around with PyBuilder and I must be either missing something, or misunderstanding how PyBuilder works. In my test application, I'm importing the pdfrw library. I had installed it via pip and everything was working fine. However, I…
Chris Slack
  • 265
  • 3
  • 12
3
votes
0 answers

How to configure pybuilder's and pytest's paths right

Objective I want to get PyBuilder to work with pytest to unittest my python scripts. I am working with PyCharm. I tried to go via pybuilder and pytest: cannot import source code when running tests but this did not work. Setup My project structure…
Make42
  • 12,236
  • 24
  • 79
  • 155
2
votes
1 answer

Package a Python library for Debian in a non standard directory using pybuild

I want to create a Debian package to be used in my company. The default policy for such custom packages is to install them in a non standard directory, ie not in /usr. I try to stick to Debian tools as much as I can, but I can't find a way to tell…
Frodon
  • 3,684
  • 1
  • 16
  • 33
2
votes
1 answer

How do I use source code methods in my pybuilder script?

I started a pybuilder project and I'm trying to get access to my methods defined in: ../projName/src/main/python/overUnder.py in a script I've written: ../projName/src/main/scripts/overUnder-runner.py The source code of overUnder.py has a method…
awwsmm
  • 1,353
  • 1
  • 18
  • 28
2
votes
0 answers

How to setup python project using pybuilder and behave

I'm new to python and I'm kind of lost here, I have a gherkins project in lettuce but I found i am creating a project using behave. I created these files and folders: features features > steps features > steps > example.py features >…
Ana Franco
  • 1,611
  • 3
  • 24
  • 43
2
votes
2 answers

PyBuilder: No unit tests executed

Suppose that this is the layout of the source directory of my PyBuilder project (empty __init__.py in myProject omitted): src ├── main │   └── python │      └── myProject │      └── usefulThing.py └── unittest └── python └──…
Andrey Tyukin
  • 43,673
  • 4
  • 57
  • 93
2
votes
1 answer

PyBuilder - how to continue when tests fail or coverage is too low?

Coming from maven it would be nice to have a configuration option in pybuilder that allows me to continue when tests are failing or test coverage is too low. I'm wondering if such an option exists - didn't find it in documentation: PyBuilder Plugins…
user1388903
  • 191
  • 2
  • 8
2
votes
0 answers

How to run PyBuilder unit tests in sub directories

Has anyone worked out how to run a pybuilder unit test, using the default configuration, whereby the _tests.py file is in a sub directory(s). I can get the test to run when in the default successfully. OK src/unittest/python/my_tests.py NOT…
JARC
  • 5,288
  • 8
  • 38
  • 43
1
2 3 4