Utilities for testing Python code
Project description
Utilities for testing Python code.
Documentation available at https://ddidier.gitlab.io/python-ndd-test4p/.
Requirements
Python 3.6 requires PyYAML >= 3.13
Python 3.7 requires PyYAML >= 5.1
Development
The Python package manager is PIP.
We strongly suggest that you use VirtualEnv. You could also use VirtualEnvWrapper.
On Ubuntu 18.04:
# install PIP and VirtualEnv
sudo apt install -y python3-pip python3-venv
# install VirtualEnvWrapper
pip3 install virtualenvwrapper
# you may put the following lines in your .bashrc
export PATH=$PATH:$HOME/.local/bin
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
source ~/.local/bin/virtualenvwrapper.sh
# clone the template repository
git clone https://gitlab.com/ddidier/python-ndd-test4p
# create and activate a VirtualEnv
mkvirtualenv --python=python3 python-ndd-test4p
workon python-ndd-test4p
# install all the required dependencies
pip install -e .
pip install -e .[testing]
pip install -e .[documenting]
Test the library within your current environment:
python setup.py test
Run the Python linters:
pylint src/
pylint --rcfile=.pylintrc-tests tests/
flake8 src/
flake8 --config=.flake8-tests tests/
Test the documentation examples:
python setup.py doctest
Generate the documentation:
python setup.py docs
Test the library within the supported environments:
tox --parallel auto
Generate the Wheels package:
python setup.py bdist_wheel
Notes
This project has been set up using PyScaffold 3.2.1. For details and usage information on PyScaffold see https://pyscaffold.org/.
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ndd-test4p-0.1.1.tar.gz
.
File metadata
- Download URL: ndd-test4p-0.1.1.tar.gz
- Upload date:
- Size: 28.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
7bc180fda95e7cb45c774ada5009effb8824cf708c1687c3ef9dff531f502891
|
|
MD5 |
a94ffc534b76843654912d69c693020f
|
|
BLAKE2b-256 |
58d7240c5d75fffd322da75fe9dfadc6b54ff829e53777b74c2c7ab312266ba5
|
File details
Details for the file ndd_test4p-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: ndd_test4p-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
25acb4308b80399222b2969643601894efe99f1ad893a369e64e1079278a8b62
|
|
MD5 |
54d4ebc8a1e7ebf284d518f5805d303c
|
|
BLAKE2b-256 |
8126721bd6d6d732ea5e95a016c745bc70d8fc91bb43c7b15632934de2a4c79d
|