Skip to main content

stumptown-deployer

Ship a Stumptown static site for web hosting.

Don't tell anyone, but for now it's all AWS as the backend but that's an implementation detail.

Limitations and caveats

  • Redirects

  • GitHub integration

Getting started

You can install it globally or in a virtualen environment. Whatever floats float fancy.

pip install stumptown-deployer
stumptown-deployer --help

Please refer to the boto3 documentation with regards to configuring AWS access credentials.

Goal

To be dead-easy to use and powerful at the same time.

Contributing

Clone this repo then run:

pip install -e ".[dev]"

That should have installed the CLI stumptown-deployer

stumptown-deployer --help

If you wanna make a PR, make sure it's formatted with black and passes flake8.

You can check that all files are flake8 fine by running:

flake8 deployer

And to check that all files are formatted according to black run:

black --check deployer

All of the code style stuff can be simplified by installing therapist. It should get installed by default, but setting it up as a git pre-commit hook is optional. Here's how you set it up once:

therapist install

Now, next time you try to commit a .py file with a black or flake8 violation it will remind you and block the commit. You can override it like this:

git commit -a -m "I know what I'm doing"

To run all code style and lint checkers you can also use therapist with:

therapist run --use-tracked-files

Some things can't be automatically fixed, but black violations can for example:

therapist run --use-tracked-files --fix

Contributing and using

If you like to use the globally installed executable stumptown-deployer but don't want to depend on a new PyPI release for every change you want to try, use this:

# If you use a virtualenv, deactivate it first
deactive
# Use the global pip (or pip3) on your system
pip3 install -e .

If you do this, you can use this repo to install in your system.

Release files for stumptown-deployer 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stumptown-deployer 0.2.6
File Size Uploaded
stumptown-deployer-0.2.6.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stumptown-deployer 0.2.6
File Interpreter ABI Platform
stumptown_deployer-0.2.6-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 21.4 kB

Release files / stumptown-deployer-0.2.6.tar.gz

Download URL stumptown-deployer-0.2.6.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2f005a3b010bf347becc801114666179755bb1bf56242ce0849b71d0ea2e9afb
BLAKE2b-256 checksum
How to use checksums
f5b8c93021db3a9eb8727da0d101a6424034a7669658800c7b1bf6b1472c1318
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release files / stumptown_deployer-0.2.6-py2.py3-none-any.whl

Download URL stumptown_deployer-0.2.6-py2.py3-none-any.whl
Size 14.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
8ba759af79773e87ddd77b44b0c60069b385601e563cd73c49ce08ab76407cfd
BLAKE2b-256 checksum
How to use checksums
27a2557b82b972f0bc0cd74ce8b3a1e85708758341a279f7e6d6b6daef83f186
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.2.6 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page