rename the repo
This commit is contained in:
parent
2b06252dba
commit
9aaceb80a0
18
README.rst
18
README.rst
@ -42,7 +42,7 @@ include this repo in your project's requiremets.txt, or install it from the comm
|
|||||||
|
|
||||||
cd path/to/your/virtual/environment
|
cd path/to/your/virtual/environment
|
||||||
source path/to/venv/bin/activate
|
source path/to/venv/bin/activate
|
||||||
pip install https://github.com/lpm0073/wp-oauth-backend
|
pip install https://github.com/lpm0073/edx-oauth2-wordpress-backend
|
||||||
|
|
||||||
2. subclass WPOpenEdxOAuth2
|
2. subclass WPOpenEdxOAuth2
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
@ -104,26 +104,26 @@ 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:: https://raw.githubusercontent.com/lpm0073/wp-oauth-backend/main/doc/django-admin-1.png
|
.. image:: https://raw.githubusercontent.com/lpm0073/edx-oauth2-wordpress-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:: https://raw.githubusercontent.com/lpm0073/wp-oauth-backend/main/doc/django-admin-2.png
|
.. image:: https://raw.githubusercontent.com/lpm0073/edx-oauth2-wordpress-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)
|
||||||
|
|
||||||
|
|
||||||
5. Configure your devops
|
5. Optional: Configure your devops
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Cookiecutter openedx_devops build
|
Cookiecutter openedx_devops build
|
||||||
|
|
||||||
.. code-block:: shell
|
.. code-block:: shell
|
||||||
|
|
||||||
- name: Add the wp-oauth-backend
|
- name: Add the edx-oauth2-wordpress-backend
|
||||||
uses: openedx-actions/tutor-plugin-build-openedx-add-requirement@v1.0.0
|
uses: openedx-actions/tutor-plugin-build-openedx-add-requirement@v1.0.0
|
||||||
with:
|
with:
|
||||||
repository: wp-oauth-backend
|
repository: edx-oauth2-wordpress-backend
|
||||||
repository-organization: StepwiseMath
|
repository-organization: StepwiseMath
|
||||||
repository-ref: main
|
repository-ref: main
|
||||||
repository-token: ${{ secrets.PAT }}
|
repository-token: ${{ secrets.PAT }}
|
||||||
@ -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:: https://raw.githubusercontent.com/lpm0073/wp-oauth-backend/main/doc/wp-oauth-config.png
|
.. image:: https://raw.githubusercontent.com/lpm0073/edx-oauth2-wordpress-backend/main/doc/wp-oauth-config.png
|
||||||
:width: 100%
|
:width: 100%
|
||||||
:alt: WP Oauth configuration page
|
:alt: WP Oauth configuration page
|
||||||
|
|
||||||
@ -159,10 +159,10 @@ add a snippet of this form to openedx_devops/.github/workflows/build-openedx.yml
|
|||||||
# ... add your initialization and any preceding steps ...
|
# ... add your initialization and any preceding steps ...
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
|
|
||||||
- name: Add the wp-oauth-backend
|
- name: Add the edx-oauth2-wordpress-backend
|
||||||
uses: openedx-actions/tutor-plugin-build-openedx-add-requirement@v1.0.0
|
uses: openedx-actions/tutor-plugin-build-openedx-add-requirement@v1.0.0
|
||||||
with:
|
with:
|
||||||
repository: wp-oauth-backend
|
repository: edx-oauth2-wordpress-backend
|
||||||
repository-organization: lpm0073
|
repository-organization: lpm0073
|
||||||
repository-ref: v1.0.2
|
repository-ref: v1.0.2
|
||||||
|
|
||||||
|
@ -3,12 +3,12 @@ requires = ["setuptools", "wheel"]
|
|||||||
build-backend = "setuptools.build_meta:__legacy__"
|
build-backend = "setuptools.build_meta:__legacy__"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "wp-oauth-backend"
|
name = "edx-oauth2-wordpress-backend"
|
||||||
version = "1.0.2"
|
version = "1.0.2"
|
||||||
authors = [
|
authors = [
|
||||||
{ name="Lawrence McDaniel", email="lpm0073@gmail.com" },
|
{ name="Lawrence McDaniel", email="lpm0073@gmail.com" },
|
||||||
]
|
]
|
||||||
description = "A WP Oauth Python Social Auth backend for Open edX"
|
description = "An Open edX Python Social Auth backend for Wordpress"
|
||||||
readme = "README.rst"
|
readme = "README.rst"
|
||||||
requires-python = ">=3.7"
|
requires-python = ">=3.7"
|
||||||
classifiers = [
|
classifiers = [
|
||||||
@ -23,5 +23,5 @@ dependencies = [
|
|||||||
keywords = ["Wordpress", "OAuth", "Open edX"]
|
keywords = ["Wordpress", "OAuth", "Open edX"]
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
"Homepage" = "https://github.com/lpm0073/wp-oauth-backend"
|
"Homepage" = "https://github.com/lpm0073/edx-oauth2-wordpress-backend"
|
||||||
"Bug Tracker" = "https://github.com/lpm0073/wp-oauth-backend/issues"
|
"Bug Tracker" = "https://github.com/lpm0073/edx-oauth2-wordpress-backend/issues"
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
# 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/edx-oauth2-wordpress-backend/
|
||||||
# https://pypi.org/project/wp-oauth-backend-lpm0073/
|
# 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/
|
# see: https://www.freecodecamp.org/news/how-to-create-and-upload-your-first-python-package-to-pypi/
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -17,7 +17,6 @@ python -m pip install --upgrade build
|
|||||||
sudo rm -r build
|
sudo rm -r build
|
||||||
sudo rm -r dist
|
sudo rm -r dist
|
||||||
sudo rm -r wp_oauth_backend.egg-info
|
sudo rm -r wp_oauth_backend.egg-info
|
||||||
sudo rm -r wp_oauth_backend_lpm0073.egg-info
|
|
||||||
|
|
||||||
python3 -m build --sdist ./
|
python3 -m build --sdist ./
|
||||||
python3 -m build --wheel ./
|
python3 -m build --wheel ./
|
||||||
|
8
setup.py
8
setup.py
@ -65,7 +65,7 @@ ABOUT = load_about()
|
|||||||
VERSION = ABOUT["__version__"]
|
VERSION = ABOUT["__version__"]
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="wp-oauth-backend",
|
name="edx-oauth2-wordpress-backend",
|
||||||
version=VERSION,
|
version=VERSION,
|
||||||
description=(
|
description=(
|
||||||
"An OAuth backend for the WP OAuth Wordpress Plugin, "
|
"An OAuth backend for the WP OAuth Wordpress Plugin, "
|
||||||
@ -74,10 +74,10 @@ setup(
|
|||||||
long_description=README,
|
long_description=README,
|
||||||
author="Lawrence McDaniel, lpm0073@gmail.com",
|
author="Lawrence McDaniel, lpm0073@gmail.com",
|
||||||
author_email="lpm0073@gmail.com",
|
author_email="lpm0073@gmail.com",
|
||||||
url="https://github.com/StepwiseMath/wp-oauth-backend",
|
url="https://github.com/StepwiseMath/edx-oauth2-wordpress-backend",
|
||||||
project_urls={
|
project_urls={
|
||||||
"Code": "https://github.com/StepwiseMath/wp-oauth-backend",
|
"Code": "https://github.com/StepwiseMath/edx-oauth2-wordpress-backend",
|
||||||
"Issue tracker": "https://github.com/StepwiseMath/wp-oauth-backend/issues",
|
"Issue tracker": "https://github.com/StepwiseMath/edx-oauth2-wordpress-backend/issues",
|
||||||
"Community": "https://stepwisemath.ai",
|
"Community": "https://stepwisemath.ai",
|
||||||
},
|
},
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
|
Loading…
Reference in New Issue
Block a user