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 framework-autotest 0.0.0

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

Source distribution (sdist)

Source distribution for framework-autotest 0.0.0
File Size Uploaded
framework-autotest-0.0.0.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for framework-autotest 0.0.0
File Interpreter ABI Platform
framework_autotest-0.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / framework-autotest-0.0.0.tar.gz

Download URL framework-autotest-0.0.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9dc51e277d05c83304984f4b34b9b6b73256f0dc78e0a439d6757a64f22f23a4
BLAKE2b-256 checksum
How to use checksums
0a4dd9b16d2686dd312bd70dfc1e29cb442e6f4c9b6784b2aefaf99acb818900
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.2

Release files / framework_autotest-0.0.0-py3-none-any.whl

Download URL framework_autotest-0.0.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d018133278898a0e0941791c1bc9c0425799b86c68cd67711480ef6cfd842d6
BLAKE2b-256 checksum
How to use checksums
d072a46483a03c3e817d63b1ad07cf9d8b78521e7ae5ac95d506036756c14835
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.2

Release history Release notifications | RSS feed

This release

0.0.0 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