Skip to main content

An opinionated linter for python packaging

Project description

Opine

Most people either hand-write a setup.py, or crib one from someone else. Either way, this usually results in not using the most recent features that can make the job of a distro easier, such as putting the static parts in setup.cfg.

This is a kind of linter for packaging, that can suggest changes to your configuration in {setup.py, setup.cfg, pyproject.toml} for easier consumption by others.

A related project is honesty, whose job it is to make sure that your bdists appear built from the same revision with the same contents as your sdists are.

Usage

opine [-a] /path/to/root

This will run all suggestions and print a sequence of diffs. If you want to apply the changes use -a.

Suggestions

  • Move tox.ini to setup.cfg
  • Move coverage.ini to setup.cfg
  • Move static config from setup.py to setup.cfg
  • Move setup_requires to pyproject.toml

Status

Beta

License

opine is copyright Tim Hatch, and licensed under the MIT license. I am providing code in this repository to you under an open source license. This is my personal repository; the license you receive to my code is from me and not from my employer. See the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opine-0.5.0.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

opine-0.5.0-py2.py3-none-any.whl (21.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file opine-0.5.0.tar.gz.

File metadata

  • Download URL: opine-0.5.0.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for opine-0.5.0.tar.gz
Algorithm Hash digest
SHA256 3c5aa147d47b9a23f35e39cf05a1dda7531055f76e7f32b5ddfeaac8718ef464
MD5 16da6dd483db9b7fb884d11557f5c58a
BLAKE2b-256 f1ea3387c7ebbd6b67107068d02d4054e8320fd7a867b0c13baec8702cab44ba

See more details on using hashes here.

File details

Details for the file opine-0.5.0-py2.py3-none-any.whl.

File metadata

  • Download URL: opine-0.5.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for opine-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d22abb37706754e4c6b19703dbd2ae939ec71b72563d5cdd9824a34a6a3f0469
MD5 beb0f6d1a9d741b5a8f01c900b82d616
BLAKE2b-256 78424aa119cb06ce0a7fea76aefaab9de3d21f4043675057e71b9b80fb7463bc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page