My short description for my project.
Project description
📦 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 :)
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
- What is setup.py? on Stack Overflow
- Official Python Packaging User Guide
- The Hitchhiker's Guide to Packaging
- Cookiecutter template for a Python package
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file mypackage-mja-0.1.0.tar.gz
.
File metadata
- Download URL: mypackage-mja-0.1.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bedb6f35551388f21c1f6a488bef41e38f8d28930217dc85ac9b9483091f4711 |
|
MD5 | 623eb69aa440ccee354085767f0dae38 |
|
BLAKE2b-256 | b9702ba2311c385f914cd8fbb38dc82930e9a3d4d2cd373b8c17547a57c51364 |
File details
Details for the file mypackage_mja-0.1.0-py3.9.egg
.
File metadata
- Download URL: mypackage_mja-0.1.0-py3.9.egg
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4223b294324b6f17ffd89dd7a87580744a5da0a34123ac225cda0a86ced90edd |
|
MD5 | d20680d60ee552ea15c436acd2fd9431 |
|
BLAKE2b-256 | 8815f614b62794518f3dbf22e810e6e5c09cf5b6967ed249f2ff01a956e1e0e5 |
File details
Details for the file mypackage_mja-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: mypackage_mja-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e19439fd4b33ecbdaef442ce422dc7449f1c6b7e2360e1ddc934f9edbed4082d |
|
MD5 | d75e86a0d64d8c8dc2c40f0fa519a457 |
|
BLAKE2b-256 | 8396cb60ed0988e88c8597413897cf98fca572bd38cbe1a71b2e93ded04ba19e |