package for PyPi

This commit is contained in:
lpm0073 2022-10-11 14:11:38 -05:00
parent a530999814
commit bc7868a85b
7 changed files with 25 additions and 16 deletions

View File

@ -5,7 +5,3 @@ repos:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 21.12b0
hooks:
- id: black

View File

@ -104,11 +104,11 @@ add these settings to django.conf:
4. Configure a new Oauth2 client from the lms Django Admin console
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. image:: doc/django-admin-1.png
.. image:: https://raw.githubusercontent.com/lpm0073/wp-oauth-backend/main/doc/django-admin-1.png
:width: 100%
:alt: Open edX Django Admin Add Provider Configuration (OAuth)
.. image:: doc/django-admin-2.png
.. image:: https://raw.githubusercontent.com/lpm0073/wp-oauth-backend/main/doc/django-admin-2.png
:width: 100%
:alt: Open edX Django Admin Add Provider Configuration (OAuth)
@ -143,7 +143,7 @@ WP Oauth Plugin Configuration
This plugin enables your Open edX installation to authenticate against the WP Oauth plugin provider
in your Wordpress web site, configured as follows:
.. image:: doc/wp-oauth-config.png
.. image:: https://raw.githubusercontent.com/lpm0073/wp-oauth-backend/main/doc/wp-oauth-config.png
:width: 100%
:alt: WP Oauth configuration page
@ -164,7 +164,7 @@ add a snippet of this form to openedx_devops/.github/workflows/build-openedx.yml
with:
repository: wp-oauth-backend
repository-organization: lpm0073
repository-ref: v1.0.0
repository-ref: v1.0.1
Sample lms log output

View File

@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta:__legacy__"
[project]
name = "wp-oauth-backend_lpm0073"
version = "1.0.0"
version = "1.0.1"
authors = [
{ name="Lawrence McDaniel", email="lpm0073@gmail.com" },
]
@ -16,6 +16,11 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"social-auth-core==4.2.0",
"social-auth-app-django==5.0.0"
]
keywords = ["Wordpress", "OAuth", "Open edX"]
[project.urls]
"Homepage" = "https://github.com/lpm0073/wp-oauth-backend"

12
release.sh Normal file → Executable file
View File

@ -6,6 +6,10 @@
# 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
@ -13,4 +17,10 @@ python3 -m build --sdist ./
python3 -m build --wheel ./
python3 -m pip install --upgrade twine
python3 -m twine upload --repository testpypi dist/*
twine check dist/*
# PyPi test
twine upload --repository testpypi dist/*
# PyPi
twine upload dist/*

View File

@ -1,5 +1,3 @@
# Stable Python Social Auth, found in Open edX Nutmeg
social-auth-app-django==5.0.0
social-auth-core==4.2.0
twine
build

View File

@ -84,7 +84,7 @@ setup(
include_package_data=True,
package_data={"": ["*.html"]}, # include any templates found in this repo.
zip_safe=False,
keywords="WP OAuth",
keywords="Wordpress, oauth, Open edX",
python_requires=">=3.7",
install_requires=load_requirements("requirements/stable-psa.txt"),
classifiers=[

View File

@ -1 +1 @@
__version__ = "1.0.0"
__version__ = "1.0.1"