GithubHelp home page GithubHelp logo

setuppycheck's Introduction

setuppycheck: A setup.py checker

https://travis-ci.org/msabramo/setuppycheck.svg?branch=master

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/

setuppycheck's People

Contributors

msabramo avatar

Stargazers

Jonathan Barratt avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

pombredanne

setuppycheck's Issues

Add usage message

Currently it responds with nothing if you run it with no arguments. And --help gives an error:

[marca@marca-mac2 setuppycheck]$ setuppycheck
[marca@marca-mac2 setuppycheck]$ setuppycheck --help
Traceback (most recent call last):
  File "/Users/marca/python/virtualenvs/setuppycheck/bin/setuppycheck", line 9, in <module>
    load_entry_point('setuppycheck==0.0.0', 'console_scripts', 'setuppycheck')()
  File "/Users/marca/dev/git-repos/setuppycheck/setuppycheck.py", line 76, in setuppycheck
    execfile(setuppy, execfile_globals)
IOError: [Errno 2] No such file or directory: '/Users/marca/dev/git-repos/setuppycheck/--help'
[marca@marca-mac2 setuppycheck]$

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.