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 hashes)

Uploaded Source

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