# tg-hammer
[](https://travis-ci.org/thorgate/tg-hammer) [](https://badge.fury.io/py/tg-hammer)
Helpers for fabric based deployments.
## Quickstart
Install tg-hammer:
pip install tg-hammer
## Features
See the documentation for detailed information. https://tg-hammer.readthedocs.org
### VCS
Hammer provides unified helper api for both git and Mercurial based projects. It can automatically detect which version control system to use based on the current project (by inspecting project_root).
### Services
Hammer contains management helpers for the following unix service daemon utilities:
upstart
systemd
supervisor
## Testing
Hammer includes functional tests that are executed inside Docker containers. The file run-tests.sh executes three docker-compose commands that first brings up a slave server, then a master server which executes the tests during building, and brings both of these down after execution. The master acts as the developer machine and the slave as the server where deployments are run on.
To run the tests manually, first comment out the line:
py.test
and uncomment the line
# tail -f /dev/null
inside docker-entrypoint-master.sh. This will keep both the master and slave running when you execute
docker-compose up –build
Now you can enter a bash shell inside the master by executing:
docker exec -it tghammer_master_1 /bin/bash
At this point you can simply execute
py.test
to run the tests.
Either method of running the tests will print tons of output and will (hopefully) result in all tests passing. Sadly it is not possible to use py.test capturing to reduce the amount of spam because this program is not compatible with fabric’s internal capturing logic.
Metadata
Release files for tg-hammer 0.6.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| tg-hammer-0.6.8.tar.gz | 15.2 kB | Without provenance | Details |
Release files / tg-hammer-0.6.8.tar.gz
| Download URL | tg-hammer-0.6.8.tar.gz |
|---|---|
| Size | 15.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd6e6b0d3d19246a65bf7781b8438edbd2121108b374aac88adb7efb598c8f9b
|
|
BLAKE2b-256 checksum How to use checksums |
b7db62789014b3edfeeba04ae81205eb5a17436a9db17e8f3a3ded5bdf18255f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.3
|
Security for tg-hammer 0.6.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.