diff --git a/pyproject.toml b/pyproject.toml index c9e4bdd9..85927480 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,10 @@ classifiers = [ ] [project.urls] -github = "https://github.com/MagicStack/asyncpg" +homepage = "https://github.com/MagicStack/asyncpg" +documentation = "https://magicstack.github.io/asyncpg/current/" +repository = "https://github.com/MagicStack/asyncpg" +changelog = "https://github.com/MagicStack/asyncpg/releases" [project.optional-dependencies] test = [ @@ -43,7 +46,7 @@ docs = [ [build-system] requires = [ - "setuptools>=60", + "setuptools>=61", "wheel", "Cython(>=0.29.24,<0.30.0)" @@ -51,6 +54,7 @@ requires = [ build-backend = "setuptools.build_meta" [tool.setuptools] +platforms = ["macOS", "POSIX", "Windows"] zip-safe = false [tool.setuptools.packages.find] diff --git a/setup.py b/setup.py index c4d42d82..181c113c 100644 --- a/setup.py +++ b/setup.py @@ -17,9 +17,10 @@ import re import subprocess +import setuptools + # We use vanilla build_ext, to avoid importing Cython via # the setuptools version. -import setuptools from setuptools.command import build_py as setuptools_build_py from setuptools.command import sdist as setuptools_sdist from setuptools.command import build_ext as setuptools_build_ext @@ -37,10 +38,6 @@ _ROOT = pathlib.Path(__file__).parent -with open(str(_ROOT / 'README.rst')) as f: - readme = f.read() - - with open(str(_ROOT / 'asyncpg' / '_version.py')) as f: for line in f: if line.startswith('__version__ ='):