diff --git a/.github/build.yml b/.github/workflows/build.yml similarity index 98% rename from .github/build.yml rename to .github/workflows/build.yml index 261f016..c5d3f56 100644 --- a/.github/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ jobs: release: name: Release runs-on: ubuntu-latest - #needs:[test] + #needs: [test] steps: - name: Checkout uses: actions/checkout@v2 diff --git a/README.md b/README.md index 16d8cc5..47af017 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,12 @@ Casdoor's SDK for Python will allow you to easily connect your application to th Casdoor SDK is simple to use. We will show you the steps below. +Casdoor-python-sdk is available on PyPI: + +```console +$ pip install casdoor +``` + ## Step1. Init Config Initialization requires 5 parameters, which are all str type: | Name (in order) | Must | Description | @@ -14,7 +20,7 @@ Initialization requires 5 parameters, which are all str type: | org_name | Yes |Organization name ```python -from oauth.main import CasdoorSDK +from casdoor import CasdoorSDK sdk = CasdoorSDK( endpoint, diff --git a/setup.cfg b/setup.cfg index 2439bd0..6dde88f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [metadata] -name = casdoor-python-sdk +name = casdoor version = 0.0.1 author = ffyuanda author_email = shaoxuan.yuan02@gmail.com @@ -24,7 +24,7 @@ classifiers = package_dir= =src packages = - oauth + casdoor setup_requires = setuptools install_requires = diff --git a/src/oauth/__init__.py b/src/casdoor/__init__.py similarity index 100% rename from src/oauth/__init__.py rename to src/casdoor/__init__.py diff --git a/src/oauth/main.py b/src/casdoor/main.py similarity index 100% rename from src/oauth/main.py rename to src/casdoor/main.py diff --git a/src/oauth/user.py b/src/casdoor/user.py similarity index 100% rename from src/oauth/user.py rename to src/casdoor/user.py