Skip to main content

Release pypi package to Pinrepo

Project description

Publish Python packages
========================

The included pypi-release.py was created to upload package files to S3, as well as maintain
their index. Be aware that the script does not support concurrent release on the same package
at the same time. An external locking mechanism is needed in such case.

**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: pypi-release.py [-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
-k AWS_SECRET_ACCESS_KEY, --aws-secret-access-key AWS_SECRET_ACCESS_KEY
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
/tmp.
--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.0.tar.gz (9.5 kB view details)

Uploaded Source

File details

Details for the file pypi-release-1.0.0.tar.gz.

File metadata

  • Download URL: pypi-release-1.0.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pypi-release-1.0.0.tar.gz
Algorithm Hash digest
SHA256 014e95efe9ea9d5d5a8711a79c0673ac0697017d2aa3cc9167ff788830fddbb7
MD5 96ee80b5d3f7f82c2888815102e92412
BLAKE2b-256 d92a7800ea5a783c2d157c5a2c4e95e612bce797f26c020988f75411bbfc3947

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page