Skip to main content

Release pypi package to Pinrepo

Project description

pypi-release is created to publish pypi packages to Pinrepo, Pinterest Build Artifact Repository.

Use the following command to publish a python package:

pypi-release -b PYPIREPO_BUCKET -i AWS_ACCESS_KEY_ID -k AWS_SECRET_ACCESS_KEY -f sample-package-1.0.0.tar.gz


usage: [-h] [-f FILE_PATH] [-i AWS_ACCESS_KEY_ID]
                    [-k AWS_SECRET_ACCESS_KEY] -b BUCKET [-m MAX_ENTRY]
                    [--regenerate-index] [-p PACKAGE_NAME] [-d WORK_DIR]
                    [--force] [--dry-run]

Release python packages to Pypi Pinrepo.

optional arguments:
-h, --help            show this help message and exit
-f FILE_PATH, --file-path FILE_PATH
                        the full path of the package to be released
-i AWS_ACCESS_KEY_ID, --aws-access-key-id AWS_ACCESS_KEY_ID
                        AWS access key id; if not provided, will use
                        environment variable AWS_ACCESS_KEY_ID
                        AWS secret access key; if not provided, will use
                        environment variable AWS_SECRET_ACCESS_KEY
-b BUCKET, --bucket BUCKET
                        AWS bucket holding all the python packages.
-m MAX_ENTRY, --max-entry MAX_ENTRY
                        the max number of versions to keep in index.html,
                        default is unlimited.
--regenerate-index    [re]generate the index.html for a package,
                        package_name is needed.
-p PACKAGE_NAME, --package_name PACKAGE_NAME
                        the name of the package to regenerate index.html for
-d WORK_DIR, --work-dir WORK_DIR
                        the directory to save intermediate files, default is
--force               force to release the same version again, will
                        overwrite the existing one.
--dry-run             will not update anything, just a sanity test.

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

pypi-release-1.0.2.tar.gz (9.7 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page