Skip to main content

setup.py generator

Project description

Installation

$ pip install setuppy

How it works

  • environment variables SETUPPY_KEY
  • attrs
  • methods get_key
default methods
method value
get_install_requires requirements.txt lines
get_name os.path.basename(os.getcwd()).split('.')[0]
get_packages setuptools.find_packages()
get_scripts bin/ or scripts/ files

Examples

$ cd path/to/project
$ export SETUPPY_VERSION="42"
$ python -m setuppy > setup.py

setup.py

setup(
    name='project',
    version='42',
    install_requires=[
        ...
    ],
    packages=[
        ...
    ]
)

subclassing

from setuppy import SetupPy

class MySetupPy(SetupPy):
    def get_scripts(self):
        ...

print(MySetupPy(version="42"))

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

setuppy-2021.6.4.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file setuppy-2021.6.4.tar.gz.

File metadata

  • Download URL: setuppy-2021.6.4.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.5

File hashes

Hashes for setuppy-2021.6.4.tar.gz
Algorithm Hash digest
SHA256 6b7f12b62550a35041b54714cbfc09213e6aaa725701f33d727c02b0caf20d33
MD5 9c0d0b20a5167991313e6dbc4be03427
BLAKE2b-256 f2b03ad55622e0b43128bff6eb015011ecd25f31270fb1b4a80d4e43710fee7d

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