Skip to content

Commit

Permalink
feat: fix init imports (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Verdgil authored Dec 4, 2022
1 parent ea4c6fb commit fbb2756
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Change import

* fix init imports

## [1.2.2](https://github.com/casdoor/casdoor-python-sdk/compare/v1.2.1...v1.2.2) (2022-12-02)

# Semantic Versioning Changelog

## [1.2.1](https://github.com/casdoor/casdoor-python-sdk/compare/v1.2.0...v1.2.1) (2022-08-19)
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = casdoor
version = 1.2.1
version = 1.2.2
author = ffyuanda
author_email = shaoxuan.yuan02@gmail.com
url = https://github.com/casdoor/casdoor-python-sdk
Expand Down
9 changes: 2 additions & 7 deletions src/casdoor/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
try:
from main import *
from user import *

except ModuleNotFoundError or ImportError:
from .main import *
from .user import *
from .main import CasdoorSDK
from .user import User
6 changes: 1 addition & 5 deletions src/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
try:
from test_oauth import *

except ModuleNotFoundError or ImportError:
from .test_oauth import *
from .test_oauth import TestOAuth

0 comments on commit fbb2756

Please # to comment.