Skip to main content
https://travis-ci.org/msabramo/setuppycheck.svg?branch=master https://img.shields.io/pypi/v/setuppycheck.svg https://img.shields.io/pypi/wheel/setuppycheck.svg

Checks for questionable practices in setup.py files.

Install

$ pip install setuppycheck

Use

[marca@marca-mac2 setuppycheck]$ setuppycheck examples/exact_pins/setup.py
WARNING: exact pin: 'requests==2.7.0'
[marca@marca-mac2 setuppycheck]$ echo $?
1

[marca@marca-mac2 setuppycheck]$ setuppycheck examples/reads_requirements_text/setup.py
WARNING: reads '/Users/marca/dev/git-repos/setuppycheck/examples/reads_requirements_text/requirements.txt' - looks like a requirements file?
  You might want to look at https://caremad.io/2013/07/setup-vs-requirement/
[marca@marca-mac2 setuppycheck]$ echo $?
1

Checks

  • Checks that you are not using exact pins in your setup.py file – Exact pins in setup.py get baked into the packages you build and limit flexibility. Folks using your package will have to have that same exact version. If you want to update it, you have to build a new package.

  • Checks that you are not reading a requirements.txt file and using it to populate install_requires in setup.py. I think that people mostly do this because they don’t understand the differences between setup.py and requirements.txt so I would advise reading https://caremad.io/2013/07/setup-vs-requirement/

Release files for setuppycheck 0.0.1

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

Source distribution (sdist)

Source distribution for setuppycheck 0.0.1
File Size Uploaded
setuppycheck-0.0.1.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for setuppycheck 0.0.1
File Interpreter ABI Platform
setuppycheck-0.0.1-py2-none-any.whl Python 2 none any Details

Total release size: 6.7 kB

Release files / setuppycheck-0.0.1.tar.gz

Download URL setuppycheck-0.0.1.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
74c3c91aebde8fdfacd6f128f3901f8342b398fc7190b0c5934daeebe03d6ecf
BLAKE2b-256 checksum
How to use checksums
f241f8c356aa9a81a73d6260bd5441469ce9786d8b35b7e0aceaedab0d8cbe55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / setuppycheck-0.0.1-py2-none-any.whl

Download URL setuppycheck-0.0.1-py2-none-any.whl
Size 4.3 kB
Tags Python 2
SHA-256 checksum
How to use checksums
603e54f45b59a0ce7b1f6c4e19c421b1f55573ad99f472336299f26a535ed963
BLAKE2b-256 checksum
How to use checksums
05e3c51718b4b58f162ec44258e9ea893c376e1b472ca9d7d2de52647f135a5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

0.0.0

1 release file

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