Skip to main content

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']
)

readme42.com

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

setup-prod-2020.7.2.tar.gz (1.6 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