intuit / intuit/auto

Support for publishing auto-versioned Python3 libraries to PYPI

Open
#2,085 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
2.5k
Forks
221
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**

Just like other package managers like Maven, Cocoapods, etc - we need out-of-the-box support for auto to publish auto-versioned releases to PYPI registry. Add PYPI to the below list.

![image](https://user-images.githubusercontent.com/17109060/135469603-709cea9d-d4b0-4840-a7f4-3c0a710201a7.png)

**Describe the solution you'd like**

Add support for `PYPI_URL`, `PYPI_USER` and `PYPI_TOKEN` environment variables, and have the package manager integration work seamlessly by doing these internally:

- Auto-updating the version (output of `auto version`) in `setup.py`
- Create the `dist/` directory: `python3 setup.py bdist_wheel sdist`
- Push to PYPI: `python3 -m twine upload --repository-url ${PYPI_URL} dist/* --username ${PYPI_USER} --password ${PYPI_TOKEN} --verbose`

**Describe alternatives you've considered**

We can also take a pipconf configuration file as an input in the CICD.

**Additional context**

-

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.