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 pyenv.
On Ubuntu 18.04:
# install PIP and VirtualEnv
sudo apt install -y python3-pip python3-venv
# install pyenv
curl https://pyenv.run | bash
# clone the template repository
git clone https://gitlab.com/ddidier/python-ndd-test4p
# create and activate the environments as given in the '.python-version' file
pyenv virtualenv 3.6.9 ndd-test4p_3.6.9
pyenv virtualenv 3.7.4 ndd-test4p_3.7.4
# install all the required dependencies from the project directory
pip install -e .
pip install -e .[testing]
pip install -e .[documenting]
pip install -e .[distributing]
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
Similar and/or complementary projects:
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.2.2.tar.gz
.
File metadata
- Download URL: ndd-test4p-0.2.2.tar.gz
- Upload date:
- Size: 35.4 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.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
f2a2d29863fab2174755ebcc1a99dc2e813bc0036d14fd914640a74793f9eb33
|
|
MD5 |
0ef3a8ac24c6cad53f4746e75fcc7b00
|
|
BLAKE2b-256 |
4e53d6f62276cccadf7f6fbc49c715e3fccc7b1b408bd36dfca2f1efcd3412fd
|
File details
Details for the file ndd_test4p-0.2.2-py2.py3-none-any.whl
.
File metadata
- Download URL: ndd_test4p-0.2.2-py2.py3-none-any.whl
- Upload date:
- Size: 12.8 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.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
f2c9c0b80dfd7e12106ef14e0b7f893e08a45126a877fb7b0650842473f96c71
|
|
MD5 |
9b7c090190db1d091c172a6aec4e3cb2
|
|
BLAKE2b-256 |
4be3cc7c8312f89b240e5efa538beb960e1bf93adea3343592e396fe9f03b12e
|