Skip to content

Commit bf94310

Browse files
committed
renew project
1 parent 121a481 commit bf94310

File tree

6 files changed

+10
-17
lines changed

6 files changed

+10
-17
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
__pycache__/
33
*.py[cod]
44
*$py.class
5+
upload.pypirc
56

67
# C extensions
78
*.so

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ As you can see, I create a core function to drive keyword sorting just by openin
8383
!pip install sortingx # in jupyter
8484
pip install sortingx # in cmd
8585
```
86+
sortingx can do whatever `list.sort()` do, and support more methods.
8687

8788
## LICENSE
8889

README_release.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
|edition|download|trait|check|
66
|--|--|--|--|
77
|1.0.0|`pip install sortingx==1.0.0`|Write in Python with Typing||
8+
|1.1.0|`pip install sortingx==1.1.0`|Write in Python with SupportRich||
89
|1.1.1|`pip install sortingx==1.1.1`|Rely on Cython||
910
|2.0.0|`pip install sortingx==2.0.0`|Restuct with C++||
1011
|2.2.2|`pip install sortingx==2.2.2`|Rust with PyO3||

package/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
import sys
1616

1717
from .sorting import bubble, insert, shell, heap, quick, merge
18-
from ._version import __version__
1918
from .typing import *
2019

21-
assert sys.version_info >= (3, 7)
20+
__version__ = '1.0.0'
21+
22+
assert sys.version_info >= (3, 7, 0)

package/_version.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import os
2+
import sys
23

34
from setuptools import setup
45

6+
if sys.version_info < (3, 7, 0):
7+
raise OSError(f'sortingx requires Python >=3.7, but yours is {sys.version}')
8+
59
try:
610
pkg_name = 'sortingx'
711
libinfo_py = os.path.join('package', '__init__.py')

0 commit comments

Comments
 (0)