File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,10 @@ classifiers = [
28
28
]
29
29
30
30
[project .urls ]
31
- github = " https://github.com/MagicStack/asyncpg"
31
+ homepage = " https://github.com/MagicStack/asyncpg"
32
+ documentation = " https://magicstack.github.io/asyncpg/current/"
33
+ repository = " https://github.com/MagicStack/asyncpg"
34
+ changelog = " https://github.com/MagicStack/asyncpg/releases"
32
35
33
36
[project .optional-dependencies ]
34
37
test = [
@@ -43,14 +46,15 @@ docs = [
43
46
44
47
[build-system ]
45
48
requires = [
46
- " setuptools>=60 " ,
49
+ " setuptools>=61 " ,
47
50
" wheel" ,
48
51
49
52
" Cython(>=0.29.24,<0.30.0)"
50
53
]
51
54
build-backend = " setuptools.build_meta"
52
55
53
56
[tool .setuptools ]
57
+ platforms = [" macOS" , " POSIX" , " Windows" ]
54
58
zip-safe = false
55
59
56
60
[tool .setuptools .packages .find ]
Original file line number Diff line number Diff line change 17
17
import re
18
18
import subprocess
19
19
20
+ import setuptools
21
+ from distutils .version import StrictVersion
22
+
23
+ if StrictVersion (setuptools .__version__ ) < StrictVersion ('61.0.0' ):
24
+ raise RuntimeError (f'Your setuptools version ({ setuptools .__version__ } ) '
25
+ f'does not support PEP 621. '
26
+ 'Please upgrade it first.' )
27
+
20
28
# We use vanilla build_ext, to avoid importing Cython via
21
29
# the setuptools version.
22
- import setuptools
23
30
from setuptools .command import build_py as setuptools_build_py
24
31
from setuptools .command import sdist as setuptools_sdist
25
32
from setuptools .command import build_ext as setuptools_build_ext
37
44
_ROOT = pathlib .Path (__file__ ).parent
38
45
39
46
40
- with open (str (_ROOT / 'README.rst' )) as f :
41
- readme = f .read ()
42
-
43
-
44
47
with open (str (_ROOT / 'asyncpg' / '_version.py' )) as f :
45
48
for line in f :
46
49
if line .startswith ('__version__ =' ):
You can’t perform that action at this time.
0 commit comments