Skip to content

Commit 8d38adb

Browse files
committed
renew project
1 parent 05946f7 commit 8d38adb

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

setup.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import sys
33

4-
from setuptools import setup
4+
from setuptools import find_packages, setup
55

66
if sys.version_info < (3, 7, 0):
77
raise OSError(f'sortingx requires Python >=3.7, but yours is {sys.version}')
@@ -37,9 +37,7 @@
3737

3838
setup(
3939
name=pkg_name,
40-
packages=[
41-
"sortingx"
42-
],
40+
packages=find_packages,
4341
version=__version__,
4442
description='The powerful package designed for sorting.',
4543
author='林景',
@@ -52,7 +50,7 @@
5250
zip_safe=False,
5351
setup_requires=['setuptools>=18.0', 'wheel'],
5452
project_urls={
55-
'Source': 'https://github.com/linjing-lab/sorting-algorithms/package/',
53+
'Source': 'https://github.com/linjing-lab/sorting-algorithms/sortingx/',
5654
'Tracker': 'https://github.com/linjing-lab/sorting-algorithms/issues',
5755
},
5856
classifiers=[

sortingx/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import sys
1616

1717
from .sorting import bubble, insert, shell, heap, quick, merge
18-
from .typing import *
18+
from ._typing import *
1919

2020
__version__ = '1.0.1'
2121

File renamed without changes.

sortingx/utils.py renamed to sortingx/_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from .typing import Iterable, Callable
15+
from ._typing import Iterable, Callable
1616

1717
def generate(array: Iterable, key: Callable=None) -> list:
1818
compare = list(map(key, array)) if key != None else array

sortingx/sorting.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
__all__ = ['bubble', 'insert', 'shell', 'heap', 'quick', 'merge']
1616

1717
from utils import core, generate
18-
from .typing import Iterable, Callable
18+
from ._typing import Iterable, Callable
1919

2020
def bubble(array: Iterable, key: Callable=None, reverse: bool=False) -> None:
2121
'''

0 commit comments

Comments
 (0)