edx-oauth2-wordpress-backend/release.sh

32 lines
931 B
Bash
Raw Normal View History

2022-10-07 04:00:15 +03:00
#!/bin/sh
#------------------------------------------------------------------------------
# written by: Lawrence McDaniel
# https://lawrencemcdaniel.com
#
# date: oct-2022
#
# usage: a work in progress. build package and upload to PyPi.
2022-10-11 22:53:44 +03:00
# https://pypi.org/project/edx-oauth2-wordpress-backend/
# https://pypi.org/project/edx-oauth2-wordpress-backend-lpm0073/
2022-10-11 22:11:38 +03:00
#
# see: https://www.freecodecamp.org/news/how-to-create-and-upload-your-first-python-package-to-pypi/
2022-10-07 04:00:15 +03:00
#------------------------------------------------------------------------------
python -m pip install --upgrade build
2022-10-11 22:27:11 +03:00
sudo rm -r build
sudo rm -r dist
2022-10-11 22:58:18 +03:00
sudo rm -r oauth2_wordpress.egg-info
2022-10-11 22:27:11 +03:00
2022-10-11 22:11:38 +03:00
python3 -m build --sdist ./
2022-10-07 04:00:15 +03:00
python3 -m build --wheel ./
python3 -m pip install --upgrade twine
2022-10-11 22:11:38 +03:00
twine check dist/*
# PyPi test
2022-10-11 22:27:11 +03:00
twine upload --skip-existing --repository testpypi dist/*
2022-10-11 22:11:38 +03:00
# PyPi
2022-10-11 22:27:11 +03:00
#twine upload --skip-existing dist/*