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
1
vote
0 answers

Bundle library to application using pybuilder

I'm new to python and writing an application which I want to package for debian. Therefore, I'd like to (and I have to) use pybuilder. My goal is to create a .deb package (currently using stdeb), which makes sure, that all required libraries are…
ITL
  • 422
  • 1
  • 5
  • 17
1
vote
1 answer

Retrieve source code from PyBuilder/.pyb

Is it possible to retrieve the source code from a PyBuilder/.pyb file, if so, how?
Jay
  • 203
  • 1
  • 7
1
vote
1 answer

How do you run doctests from pybuilder?

There are examples for unittests in the docs and much of this is already integrated into pybuilder. How do you run doctests in a target?
mit
  • 11,083
  • 11
  • 50
  • 74
0
votes
0 answers

BUILD FAILED - AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms' (site-packages/OpenSSL/crypto.py:3268)

I am running in the the below issue when I tried to install pip install -r build-requirments.txt I have the following environment setup: pybuilder==0.13.8 pip==22.1.2 pip-tools pip subprocess to install build dependencies did not run…
Rahman
  • 101
  • 1
  • 12
0
votes
1 answer

Cannot run command pyb from Pybuilder in Anaconda prompt

I wanted to reactivate an old python project I worked on two years ago. I wanted to recreate the same working conditions with one difference: when I developed at the time i worked on Ubuntu WSL (win10) with virtualenvs. Now I want to work directly…
VI6
  • 1
  • 4
0
votes
1 answer

ModuleNotFoundError: No module named 'src' when building python project using pyb -v

Hi I am working on a python project, and create the python project using pybuilder. The structure is like this: | --src | -- _init__.py | -- main | -- __init__.py | -- python …
Hongli Bu
  • 461
  • 12
  • 37
0
votes
1 answer

How to use the sphinx plugin of pybuilder?

I try to create a python package using pybuilder and wonder how to make use of the sphinx plugin. I already initiated a sphinx documentation scaffold via sphinx-quickstart and activated the sphinx plugin within the build.py file of pybuilder. The…
0
votes
1 answer

Python TypeError when executing unit tests

When running some tests as part of building an application using pybuilder (pyb) getting this exception: BUILD FAILED - TypeError: () takes 0 positional arguments but 1 was given (pybuilder/plugins/python/unittest_plugin.py:177) What could be…
0
votes
1 answer

run pyb command in bin bash script

I created a script that creates a virtual environment, installs pybuilder in it and then install some dependencies with a pybuilder command. However it seems the pybuilder command cannot be executed properly. This is my bash script: #!…
Fu De
  • 21
  • 2
0
votes
1 answer

windows: pip uninstallation fails with access denied

I am new to Python and trying to automate python build with Jenkinsfile, For that I am creating virtual environment and then installing pybuilder. But pybuilder installations fails with permission issues, commands: virtualenv venv source…
user1878934
0
votes
1 answer

Using pyspark with pybuilder

We are setting pybuilder on a new big data project. We have to tests that some classes build the correct distributed tables. As a consequence we built a few unitests that pass when running them on eclipse/pydev. I run independant unit tests…
user6106573
  • 193
  • 2
  • 11
0
votes
2 answers

How to run the script built with pybuilder? Is there `pyb run`?

Forgive me the possibly trivial question, but: How do I run the script published by pybuilder? I'm trying to follow the official Pybuilder Tutorial. I've walked through the steps and successfully generated a project that runs unit tests computes…
Andrey Tyukin
  • 43,673
  • 4
  • 57
  • 93
0
votes
0 answers

Mock patch decorators python

Hi I would like to mock my decorator since I don't want to be actually calling/executing this function. But I can't seem to find the solution for this below are my code # This is the decorator located in my project # This is located in…
MadzQuestioning
  • 3,341
  • 8
  • 45
  • 76
0
votes
1 answer

PyBuilder won't install Flask?

So I was trying to setup pybuilder for my flask application and for some reason, it does not install dependencies? It shows this when I run 'pyb install_dependencies' PyBuilder version 0.11.10 Build started at 2017-07-17…
AAlred
  • 85
  • 7
0
votes
1 answer

Excluding line of code from pybuilder coverage

While PyBuilder Coverage is great excluding files, I could not find a property to set or any other way to exclude specific function or line of code. For example I have a RESTFUL service that unittest tests, but i also have some functions outise of …
uzla
  • 515
  • 1
  • 4
  • 20