diff --git a/README.rst b/README.rst index e6366e0..e7c44bc 100644 --- a/README.rst +++ b/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 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -104,26 +104,26 @@ add these settings to django.conf: 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% :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% :alt: Open edX Django Admin Add Provider Configuration (OAuth) -5. Configure your devops +5. Optional: Configure your devops ~~~~~~~~~~~~~~~~~~~~~~~~ Cookiecutter openedx_devops build .. 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 with: - repository: wp-oauth-backend + repository: edx-oauth2-wordpress-backend repository-organization: StepwiseMath repository-ref: main 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 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% :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 ... #------------------------------------------------------------------------ - - 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 with: - repository: wp-oauth-backend + repository: edx-oauth2-wordpress-backend repository-organization: lpm0073 repository-ref: v1.0.2 diff --git a/pyproject.toml b/pyproject.toml index 9d0a66e..a8b0d2d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,12 +3,12 @@ requires = ["setuptools", "wheel"] build-backend = "setuptools.build_meta:__legacy__" [project] -name = "wp-oauth-backend" +name = "edx-oauth2-wordpress-backend" version = "1.0.2" authors = [ { 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" requires-python = ">=3.7" classifiers = [ @@ -23,5 +23,5 @@ dependencies = [ keywords = ["Wordpress", "OAuth", "Open edX"] [project.urls] -"Homepage" = "https://github.com/lpm0073/wp-oauth-backend" -"Bug Tracker" = "https://github.com/lpm0073/wp-oauth-backend/issues" +"Homepage" = "https://github.com/lpm0073/edx-oauth2-wordpress-backend" +"Bug Tracker" = "https://github.com/lpm0073/edx-oauth2-wordpress-backend/issues" diff --git a/release.sh b/release.sh index 0cf7cd5..ec2a050 100755 --- a/release.sh +++ b/release.sh @@ -6,8 +6,8 @@ # 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/ +# 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/ #------------------------------------------------------------------------------ @@ -17,7 +17,6 @@ python -m pip install --upgrade build sudo rm -r build sudo rm -r dist sudo rm -r wp_oauth_backend.egg-info -sudo rm -r wp_oauth_backend_lpm0073.egg-info python3 -m build --sdist ./ python3 -m build --wheel ./ diff --git a/setup.py b/setup.py index 1f19fa3..7ffab1c 100644 --- a/setup.py +++ b/setup.py @@ -65,7 +65,7 @@ ABOUT = load_about() VERSION = ABOUT["__version__"] setup( - name="wp-oauth-backend", + name="edx-oauth2-wordpress-backend", version=VERSION, description=( "An OAuth backend for the WP OAuth Wordpress Plugin, " @@ -74,10 +74,10 @@ setup( long_description=README, author="Lawrence McDaniel, 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={ - "Code": "https://github.com/StepwiseMath/wp-oauth-backend", - "Issue tracker": "https://github.com/StepwiseMath/wp-oauth-backend/issues", + "Code": "https://github.com/StepwiseMath/edx-oauth2-wordpress-backend", + "Issue tracker": "https://github.com/StepwiseMath/edx-oauth2-wordpress-backend/issues", "Community": "https://stepwisemath.ai", }, packages=find_packages(),