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 :)

Check out the example!

Installation

cd your_project

# Download the setup.py file:
#  download with wget
wget https://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py -O setup.py

#  download with curl
curl -O https://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py

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.

Release files for timefcuk-concourse-ci-test 1.2.2006251931

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

Source distribution (sdist)

Source distribution for timefcuk-concourse-ci-test 1.2.2006251931
File Size Uploaded
timefcuk-concourse-ci-test-1.2.2006251931.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for timefcuk-concourse-ci-test 1.2.2006251931
File Interpreter ABI Platform
timefcuk_concourse_ci_test-1.2.2006251931-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size:8.8 kB

Release files / timefcuk-concourse-ci-test-1.2.2006251931.tar.gz

Download URL timefcuk-concourse-ci-test-1.2.2006251931.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2888cc6d05c66754ac673520ce944274b1c80f11a64e6891678684d40675f651
BLAKE2b-256 checksum
How to use checksums
71a97daf8c29fbf3780b0a91cca06d12a6159ec8a3ce46acd181b3f577ec671c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.8

Release files / timefcuk_concourse_ci_test-1.2.2006251931-py2.py3-none-any.whl

Download URL timefcuk_concourse_ci_test-1.2.2006251931-py2.py3-none-any.whl
Size 4.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
858e39dac9030f6fae6aa81a67260e44cc4be19f3f97a890614726793649fbbd
BLAKE2b-256 checksum
How to use checksums
c45df68b6d95db8962bccc1145881edeb8617b8344522cb70adc0146b857da00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.8
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