package for PyPi
This commit is contained in:
parent
a530999814
commit
bc7868a85b
@ -5,7 +5,3 @@ repos:
|
|||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- repo: https://github.com/psf/black
|
|
||||||
rev: 21.12b0
|
|
||||||
hooks:
|
|
||||||
- id: black
|
|
||||||
|
@ -104,11 +104,11 @@ add these settings to django.conf:
|
|||||||
4. Configure a new Oauth2 client from the lms Django Admin console
|
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%
|
:width: 100%
|
||||||
:alt: Open edX Django Admin Add Provider Configuration (OAuth)
|
: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%
|
:width: 100%
|
||||||
:alt: Open edX Django Admin Add Provider Configuration (OAuth)
|
: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
|
This plugin enables your Open edX installation to authenticate against the WP Oauth plugin provider
|
||||||
in your Wordpress web site, configured as follows:
|
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%
|
:width: 100%
|
||||||
:alt: WP Oauth configuration page
|
:alt: WP Oauth configuration page
|
||||||
|
|
||||||
@ -164,7 +164,7 @@ add a snippet of this form to openedx_devops/.github/workflows/build-openedx.yml
|
|||||||
with:
|
with:
|
||||||
repository: wp-oauth-backend
|
repository: wp-oauth-backend
|
||||||
repository-organization: lpm0073
|
repository-organization: lpm0073
|
||||||
repository-ref: v1.0.0
|
repository-ref: v1.0.1
|
||||||
|
|
||||||
|
|
||||||
Sample lms log output
|
Sample lms log output
|
||||||
|
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta:__legacy__"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "wp-oauth-backend_lpm0073"
|
name = "wp-oauth-backend_lpm0073"
|
||||||
version = "1.0.0"
|
version = "1.0.1"
|
||||||
authors = [
|
authors = [
|
||||||
{ name="Lawrence McDaniel", email="lpm0073@gmail.com" },
|
{ name="Lawrence McDaniel", email="lpm0073@gmail.com" },
|
||||||
]
|
]
|
||||||
@ -16,6 +16,11 @@ classifiers = [
|
|||||||
"License :: OSI Approved :: MIT License",
|
"License :: OSI Approved :: MIT License",
|
||||||
"Operating System :: OS Independent",
|
"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]
|
[project.urls]
|
||||||
"Homepage" = "https://github.com/lpm0073/wp-oauth-backend"
|
"Homepage" = "https://github.com/lpm0073/wp-oauth-backend"
|
||||||
|
12
release.sh
Normal file → Executable file
12
release.sh
Normal file → Executable file
@ -6,6 +6,10 @@
|
|||||||
# date: oct-2022
|
# date: oct-2022
|
||||||
#
|
#
|
||||||
# usage: a work in progress. build package and upload to PyPi.
|
# 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
|
python -m pip install --upgrade build
|
||||||
@ -13,4 +17,10 @@ python3 -m build --sdist ./
|
|||||||
python3 -m build --wheel ./
|
python3 -m build --wheel ./
|
||||||
|
|
||||||
python3 -m pip install --upgrade twine
|
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/*
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
# Stable Python Social Auth, found in Open edX Nutmeg
|
# Stable Python Social Auth, found in Open edX Nutmeg
|
||||||
social-auth-app-django==5.0.0
|
social-auth-app-django==5.0.0
|
||||||
social-auth-core==4.2.0
|
social-auth-core==4.2.0
|
||||||
twine
|
|
||||||
build
|
|
||||||
|
2
setup.py
2
setup.py
@ -84,7 +84,7 @@ setup(
|
|||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
package_data={"": ["*.html"]}, # include any templates found in this repo.
|
package_data={"": ["*.html"]}, # include any templates found in this repo.
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
keywords="WP OAuth",
|
keywords="Wordpress, oauth, Open edX",
|
||||||
python_requires=">=3.7",
|
python_requires=">=3.7",
|
||||||
install_requires=load_requirements("requirements/stable-psa.txt"),
|
install_requires=load_requirements("requirements/stable-psa.txt"),
|
||||||
classifiers=[
|
classifiers=[
|
||||||
|
@ -1 +1 @@
|
|||||||
__version__ = "1.0.0"
|
__version__ = "1.0.1"
|
||||||
|
Loading…
Reference in New Issue
Block a user