Skip to main content

📦 setup.py (for humans)

This repo exists to provide an example setup.py file, that can be used to bootstrap your next Python project. It includes some advanced patterns and best practices for setup.py, as well as some commented–out nice–to–haves.

For example, this setup.py provides a $ python setup.py upload command, which creates a universal wheel (and sdist) and uploads your package to PyPi using Twine, without the need for an annoying setup.cfg file. It also creates/uploads a new git tag, automatically.

In short, setup.py files can be daunting to approach, when first starting out — even Guido has been heard saying, "everyone cargo cults thems". It's true — so, I want this repo to be the best place to copy–paste from :)

If you're interested in financially supporting Kenneth Reitz open source, consider visiting this link. Your support helps tremendously with sustainability of motivation, as Open Source is no longer part of my day job.

Check out the example!

image

To Do

  • Tests via $ setup.py test (if it's concise).

Pull requests are encouraged!

More Resources

License

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

✨🍰✨

Metadata

Release files for test-travis-pypi 0.1.10

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

Source distribution (sdist)

Source distribution for test-travis-pypi 0.1.10
File Size Uploaded Provenance Actions
test_travis_pypi-0.1.10.tar.gz 4.6 kB Without provenance Details for test_travis_pypi-0.1.10.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for test-travis-pypi 0.1.10
File Actions
test_travis_pypi-0.1.10-py3.8.egg Legacy Egg format - - Details for test_travis_pypi-0.1.10-py3.8.egg
test_travis_pypi-0.1.10-py3.7.egg Legacy Egg format - - Details for test_travis_pypi-0.1.10-py3.7.egg
test_travis_pypi-0.1.10-py3.6.egg Legacy Egg format - - Details for test_travis_pypi-0.1.10-py3.6.egg
test_travis_pypi-0.1.10-py3.5.egg Legacy Egg format - - Details for test_travis_pypi-0.1.10-py3.5.egg

Total release size: 20.1 kB

Release files / test_travis_pypi-0.1.10.tar.gz

Download URL test_travis_pypi-0.1.10.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
01b3295427201424f477255c5805be9afef84b508b0a5a97446875beec557a2f
BLAKE2b-256 checksum
How to use checksums
3f73af5a5097c5fd4acae288929b24bb10c11c2e6c442045ea1e54a3435518b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Release files / test_travis_pypi-0.1.10-py3.8.egg

Download URL test_travis_pypi-0.1.10-py3.8.egg
Size 3.9 kB
Tags Egg
SHA-256 checksum
How to use checksums
5fc72835d0abe9598dd3d0b75c033c7c42a2e886e98c6860bbcdd5a8e211f6a1
BLAKE2b-256 checksum
How to use checksums
7fc7190c0e355862c5a892c941a9daeb151783b117529162ae8704cbb68cb760
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.8.0a2+

Release files / test_travis_pypi-0.1.10-py3.7.egg

Download URL test_travis_pypi-0.1.10-py3.7.egg
Size 3.9 kB
Tags Egg
SHA-256 checksum
How to use checksums
557ca4f08adcd803718ec37e620ec877e91d5ada3ac09d569f00ec37ac101ae4
BLAKE2b-256 checksum
How to use checksums
b73663622db693dd861bb5e7bd5bfde63501b40886ce4b126939a21b50500b04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

Release files / test_travis_pypi-0.1.10-py3.6.egg

Download URL test_travis_pypi-0.1.10-py3.6.egg
Size 3.9 kB
Tags Egg
SHA-256 checksum
How to use checksums
63d016f9d3e22b05710af394b6ef5715f0435f59c31e1511cbcff8f43e166313
BLAKE2b-256 checksum
How to use checksums
a2796b130107c7a8652714b16f571077fdf55cd861fcf8b5fa3f3df80721e1fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Release files / test_travis_pypi-0.1.10-py3.5.egg

Download URL test_travis_pypi-0.1.10-py3.5.egg
Size 3.9 kB
Tags Egg
SHA-256 checksum
How to use checksums
3d9a02bc8f75eca69f1dd3ed29defcf94a5c8524b5a7b14d2fc0c67870e7f2c1
BLAKE2b-256 checksum
How to use checksums
90af97c399ec9f2dacaf4bfd6215fdd40996e9c9adcba41fc6ac7b72c0fdab7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.6

Security for test-travis-pypi 0.1.10

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.10 This release

5 release files No provenance

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