setup.py production
Project description
Installation
$ [sudo] pip install setup-prod
Concept
pypi/prod setup.py
without unnecessary metadata
Features
MANIFEST.in
include requirements.txt
exclude MANIFEST.in
Examples
name=$(IFS=.;set ${PWD##*/};echo $1)
version="..."
setup-prod "$name" "$version" > setup.py
import setuptools
setuptools.setup(
name='NAME',
version='VERSION',
install_requires=open('requirements.txt').read().splitlines(),
packages=setuptools.find_packages()
)
environment variables
name=$(IFS=.;set ${PWD##*/};echo $1)
version="..."
scripts="$(find scripts -type f)"
export SETUP_SCRIPTS="$scripts"
setup-prod "$name" "$version" > setup.py
import setuptools
setuptools.setup(
name='NAME',
version='VERSION',
install_requires=open('requirements.txt').read().splitlines(),
packages=setuptools.find_packages(),
scripts=['scripts/file1','scripts/file2']
)
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
setup-prod-2020.7.2.tar.gz
(1.6 kB
view hashes)