ci.py
A Python library for working with Continuous Integration services. For Python 2.7 and 3.5+.
Usage
First, pip install ci.py:
$ pip install ci-py
Available Methods
import ci
ci.is_ci() # True/False
ci.is_pr() # True/False
ci.name() # "Travis CI"
ci.pr() # "38"
ci.repo() # "grantmcconnaughey/ci.py"
ci.commit_sha() # "246249bab34e78a020efc67b626efd6052e754d9"
CI Services
ci.py works with the following CI services:
- Travis CI
- Circle CI
- GitHub Actions
- Drone CI
- AppVeyor
- Shippable
- Semaphore
- AWS CodeBuild
- Azure DevOps
Running Tests
To run tests, install tox and run it from the command line:
> tox
This will run tests against all of the Python versions defined in tox.ini. Note that all of these versions of Python will need to be installed. You can use pyenv to install these different versions.
Metadata
Release files for ci-py 1.0.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 | |
|---|---|---|---|
| ci-py-1.0.0.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ci_py-1.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 9.7 kB
Release files / ci-py-1.0.0.tar.gz
| Download URL | ci-py-1.0.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47fe9b2ec5ce286c62243654bef3aebcba77bac1217e0ebdf2abef80ec015d89
|
|
BLAKE2b-256 checksum How to use checksums |
45b190a082b7448ce7fa01e1cf631c6eb0387f675013e273180f0aa23d7c7b1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.2
|
Release files / ci_py-1.0.0-py2.py3-none-any.whl
| Download URL | ci_py-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
bc5d13c8dff8f402ac6340699083502115a2c55b96bf5b37204ac77bc81b605e
|
|
BLAKE2b-256 checksum How to use checksums |
98662db0c5a72990c0d7779ce3848246df442a4b2fd4bf123aacfd49601cc88a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.2
|