From e43a336c9df630b94a3e0745133405790035fab4 Mon Sep 17 00:00:00 2001 From: lpm0073 Date: Mon, 3 Oct 2022 12:15:26 -0500 Subject: [PATCH] rename package --- README.rst | 4 ++-- setup.py | 12 ++++++------ .../__about__.py | 0 .../__init__.py | 0 .../wp_oauth.py => wp_oauth_backend/oauth.py | 0 5 files changed, 8 insertions(+), 8 deletions(-) rename {stepwisemath_oauth_backend => wp_oauth_backend}/__about__.py (100%) rename {stepwisemath_oauth_backend => wp_oauth_backend}/__init__.py (100%) rename stepwisemath_oauth_backend/wp_oauth.py => wp_oauth_backend/oauth.py (100%) diff --git a/README.rst b/README.rst index 7242194..7c4431f 100644 --- a/README.rst +++ b/README.rst @@ -22,14 +22,14 @@ include this repo in your project's requiremets.txt, or install it from the comm :caption: Python/Django installation cd path/to/your/project source path/to/venv/bin/activate - pip install https://github.com/StepwiseMath/stepwisemath-oauth-backend + pip install https://github.com/StepwiseMath/wp-oauth-backend .. code-block:: yaml :caption: lms.envs.tutor.production.py ADDL_INSTALLED_APPS: - "wp_oauth_backend" THIRD_PARTY_AUTH_BACKENDS: - - "stepwisemath_oauth_backend.wp_oauth.WPOAuth2" + - "wp_oauth_backend.oauth.WPOAuth2" ENABLE_REQUIRE_THIRD_PARTY_AUTH: true add these settings to django.conf: diff --git a/setup.py b/setup.py index fb125c5..8812a70 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ def load_readme(): def load_about(): about = {} with io.open( - os.path.join(HERE, "stepwisemath_oauth_backend", "__about__.py"), + os.path.join(HERE, "wp_oauth_backend", "__about__.py"), "rt", encoding="utf-8", ) as f: @@ -66,18 +66,18 @@ setup( long_description=README, author='Lawrence McDaniel, lpm0073@gmail.com', author_email='lpm0073@gmail.com', - url='https://github.com/StepwiseMath/stepwisemath-oauth-backend', + url='https://github.com/StepwiseMath/wp-oauth-backend', project_urls={ - "Code": "https://github.com/StepwiseMath/stepwisemath-oauth-backend", - "Issue tracker": "https://github.com/StepwiseMath/stepwisemath-oauth-backend/issues", + "Code": "https://github.com/StepwiseMath/wp-oauth-backend", + "Issue tracker": "https://github.com/StepwiseMath/wp-oauth-backend/issues", "Community": "https://stepwisemath.ai", }, packages=[ - 'stepwisemath_oauth_backend', + 'wp_oauth_backend', ], packages=find_packages(), include_package_data=True, - package_data={"": ["*.html"]}, # include any Mako templates found in this repo. + package_data={"": ["*.html"]}, # include any templates found in this repo. zip_safe=False, keywords='WP OAuth', python_requires=">=3.7", diff --git a/stepwisemath_oauth_backend/__about__.py b/wp_oauth_backend/__about__.py similarity index 100% rename from stepwisemath_oauth_backend/__about__.py rename to wp_oauth_backend/__about__.py diff --git a/stepwisemath_oauth_backend/__init__.py b/wp_oauth_backend/__init__.py similarity index 100% rename from stepwisemath_oauth_backend/__init__.py rename to wp_oauth_backend/__init__.py diff --git a/stepwisemath_oauth_backend/wp_oauth.py b/wp_oauth_backend/oauth.py similarity index 100% rename from stepwisemath_oauth_backend/wp_oauth.py rename to wp_oauth_backend/oauth.py