-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrelease.sh
executable file
·31 lines (25 loc) · 943 Bytes
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/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/edx-oauth2-wordpress-backend/
# https://pypi.org/project/edx-oauth2-wordpress-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
sudo rm -r build
sudo rm -r dist
sudo rm -r edx_oauth2_wordpress_backend.egg-info
python3 -m build --sdist ./
python3 -m build --wheel ./
python3 -m pip install --upgrade twine
twine check dist/*
# PyPi test
twine upload --skip-existing --repository testpypi dist/*
# PyPi
#twine upload --skip-existing dist/*