edx-oauth2-wordpress-backend/release.sh
2022-10-11 14:11:38 -05:00

27 lines
802 B
Bash
Executable File

#!/bin/sh
#------------------------------------------------------------------------------
# written by: Lawrence McDaniel
# https://lawrencemcdaniel.com
#
# date: oct-2022
#
# usage: a work in progress. build package and upload to PyPi.
# https://pypi.org/project/wp-oauth-backend/
# https://pypi.org/project/wp-oauth-backend-lpm0073/
#
# see: https://www.freecodecamp.org/news/how-to-create-and-upload-your-first-python-package-to-pypi/
#------------------------------------------------------------------------------
python -m pip install --upgrade build
python3 -m build --sdist ./
python3 -m build --wheel ./
python3 -m pip install --upgrade twine
twine check dist/*
# PyPi test
twine upload --repository testpypi dist/*
# PyPi
twine upload dist/*