About
This is a plugin for setuptools that integrates Twisted trial. Once installed, “python ./setup.py trial” will run the package’s unit tests using Twisted trial. The package can also optionally be configured so that “python ./setup.py test” will use Twisted trial instead of pyunit a.k.a. unittest.
Installation
With pip:
pip install setuptools_trial
or with easy_install:
easy_install setuptools_trial
Alternative manual installation:
tar -zxvf setuptools_trial-X.Y.Z.tar.gz
cd setuptools_trial-X.Y.Z
python setup.py install
Where X.Y.Z is a version number.
Alternative to make a specific package use setuptools_trial without installing setuptools_trial into the system:
Put setup_requires=['setuptools_trial'] in the call to setup() in the package’s setup.py file.
Usage
Once setuptools_trial is installed (either into the system or just for the current package), then python ./setup.py trial will run trial on the package.
You can then make python ./setup.py test use trial instead of pyunit (unittest) by adding the following stanza to your project’s setup.cfg:
[aliases]
test = trial
See also the output of python ./setup.py trial --help for usage options.
References
To learn more about Python modules packaging visit https://www.pypa.io/en/latest/.
Thanks to Yannick Gingras for providing the prototype for this README.rst.
Release files for setuptools_trial 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| setuptools_trial-0.6.0.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| setuptools_trial-0.6.0-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 12.8 kB
Release files / setuptools_trial-0.6.0.tar.gz
| Download URL | setuptools_trial-0.6.0.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14220f8f761c48ba1e2526f087195077cf54fad7098b382ce220422f0ff59b12
|
|
BLAKE2b-256 checksum How to use checksums |
6cd82ec30d50a37c90f8b48b22a50e96d4c50fec7e05ca1557bb814dc219ffc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / setuptools_trial-0.6.0-py2-none-any.whl
| Download URL | setuptools_trial-0.6.0-py2-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
92548702349b396067e60f9c5fbad73f320ed0e43e2dd0beca5ce4a9dd8774b8
|
|
BLAKE2b-256 checksum How to use checksums |
80d8cf839b2f576d4f2b12ca813d3f4a156f379c8e98c11b15739e38f77e893b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |