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
Release history Release notifications | RSS feed
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)