diff --git a/Pipfile b/Pipfile deleted file mode 100644 index 5bb5345..0000000 --- a/Pipfile +++ /dev/null @@ -1,15 +0,0 @@ -[[source]] -name = "pypi" -url = "https://pypi.org/simple" -verify_ssl = true - -[packages] -Cython = "<3" -Jinja2 = "*" -ruff = "*" -pkgconfig = "*" -pytest = "*" -sphinx = "*" -sphinx-multiversion = "*" -tox = "*" -wheel = "*" diff --git a/README.md b/README.md index 3deec4a..44839f1 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ While not directly supported by pycapnp, a tool has been created to help generat ## Python Versions -Python 3.8+ is supported. +Python 3.9+ is supported. ## Development diff --git a/buildutils/bundle.py b/buildutils/bundle.py index f6c28ee..b0c2e44 100644 --- a/buildutils/bundle.py +++ b/buildutils/bundle.py @@ -25,7 +25,7 @@ pjoin = os.path.join # -bundled_version = (1, 0, 1) +bundled_version = (1, 4, 0) libcapnp_name = "capnproto-c++-%i.%i.%i.tar.gz" % (bundled_version) libcapnp_url = "https://capnproto.org/" + libcapnp_name diff --git a/pyproject.toml b/pyproject.toml index 925cc22..74827ec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,6 +3,49 @@ requires = ["setuptools", "wheel", "pkgconfig", "cython>=3.0"] build-backend = "backend" backend-path = ["_custom_build"] +[project] +name = "pycapnp" +requires-python = ">=3.9" +dynamic = [ + "authors", + "classifiers", + "description", + "keywords", + "license", + "readme", + "scripts", + "version", +] +dependencies = [ + "jinja2", +] + +[dependency-groups] +dev = [ + "ruff", + "tox", + "pkgconfig", + "cython>=3.0", + "setuptools", + {include-group = "test"}, + {include-group = "docs"}, +] + +test = [ + "pytest", + "anyio", + "pytest-asyncio", + "pytest-tornasync", + "pytest-trio", + "pytest-twisted", + "twisted", +] + +docs = [ + "sphinx", + "sphinx-multiversion", +] + [tool.pytest.ini_options] asyncio_mode = "auto" diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index c9dfcc8..0000000 --- a/requirements.txt +++ /dev/null @@ -1,10 +0,0 @@ -jinja2 -cython>=3 -ruff -setuptools -pkgconfig -pytest -sphinx -sphinx-multiversion -tox -wheel diff --git a/setup.py b/setup.py index 4ec9c47..3852123 100644 --- a/setup.py +++ b/setup.py @@ -10,6 +10,7 @@ import struct import sys import pkgconfig +import setuptools # noqa: F401 from distutils.command.clean import clean as _clean @@ -23,7 +24,7 @@ from buildutils.bundle import fetch_libcapnp MAJOR = 2 MINOR = 2 -MICRO = 3 +MICRO = 4 TAG = "" VERSION = "%d.%d.%d%s" % (MAJOR, MINOR, MICRO, TAG) @@ -204,7 +205,7 @@ extensions = [ ] setup( - python_requires=">=3.8", + python_requires=">=3.9", name="pycapnp", packages=["capnp"], version=VERSION, @@ -237,7 +238,7 @@ setup( author="Jacob Alexander", # <- Current maintainer; Original author -> Jason Paryani author_email="haata@kiibohd.com", url="https://github.com/capnproto/pycapnp", - download_url="https://github.com/haata/pycapnp/archive/v%s.zip" % VERSION, + download_url="https://github.com/capnproto/pycapnp/archive/v%s.zip" % VERSION, keywords=["capnp", "capnproto", "Cap'n Proto", "pycapnp"], classifiers=[ "Development Status :: 5 - Production/Stable", @@ -247,11 +248,12 @@ setup( "Operating System :: POSIX", "Programming Language :: C++", "Programming Language :: Cython", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Communications", ],