add URL property and class variables for PATH and endpoint values. switch to urljoin()
This commit is contained in:
40
Makefile
Normal file
40
Makefile
Normal file
@ -0,0 +1,40 @@
|
||||
# -------------------------------------------------------------------------
|
||||
# build a package for PyPi
|
||||
# -------------------------------------------------------------------------
|
||||
.PHONY: build
|
||||
.PHONY: requirements
|
||||
|
||||
report:
|
||||
cloc $(git ls-files)
|
||||
|
||||
build:
|
||||
python3 -m pip install --upgrade setuptools wheel twine
|
||||
python -m pip install --upgrade build
|
||||
|
||||
if [ -d "./build" ]; then sudo rm -r build; fi
|
||||
if [ -d "./dist" ]; then sudo rm -r dist; fi
|
||||
if [ -d "./edx_oauth2_wordpress_backend.egg-info" ]; then sudo rm -r edx_oauth2_wordpress_backend.egg-info; fi
|
||||
|
||||
python3 -m build --sdist ./
|
||||
python3 -m build --wheel ./
|
||||
|
||||
python3 -m pip install --upgrade twine
|
||||
twine check dist/*
|
||||
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# upload to PyPi Test
|
||||
# https:// ?????
|
||||
# -------------------------------------------------------------------------
|
||||
release-test:
|
||||
make build
|
||||
twine upload --skip-existing --repository testpypi dist/*
|
||||
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# upload to PyPi
|
||||
# https://pypi.org/project/django-memberpress-client/
|
||||
# -------------------------------------------------------------------------
|
||||
release-prod:
|
||||
make build
|
||||
twine upload --skip-existing dist/*
|
Reference in New Issue
Block a user