Fix uv sync / uv venv with pytest
uv sync source .venv/bin/activate cd test python -m pytest . - Update default bundled capnproto to 1.4.0 - Cleanup pyproject.toml - Remove Pipfile and requirements.txt
This commit is contained in:
15
Pipfile
15
Pipfile
@@ -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 = "*"
|
|
||||||
@@ -77,7 +77,7 @@ While not directly supported by pycapnp, a tool has been created to help generat
|
|||||||
|
|
||||||
## Python Versions
|
## Python Versions
|
||||||
|
|
||||||
Python 3.8+ is supported.
|
Python 3.9+ is supported.
|
||||||
|
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|||||||
@@ -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_name = "capnproto-c++-%i.%i.%i.tar.gz" % (bundled_version)
|
||||||
libcapnp_url = "https://capnproto.org/" + libcapnp_name
|
libcapnp_url = "https://capnproto.org/" + libcapnp_name
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,49 @@ requires = ["setuptools", "wheel", "pkgconfig", "cython>=3.0"]
|
|||||||
build-backend = "backend"
|
build-backend = "backend"
|
||||||
backend-path = ["_custom_build"]
|
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]
|
[tool.pytest.ini_options]
|
||||||
asyncio_mode = "auto"
|
asyncio_mode = "auto"
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
jinja2
|
|
||||||
cython>=3
|
|
||||||
ruff
|
|
||||||
setuptools
|
|
||||||
pkgconfig
|
|
||||||
pytest
|
|
||||||
sphinx
|
|
||||||
sphinx-multiversion
|
|
||||||
tox
|
|
||||||
wheel
|
|
||||||
10
setup.py
10
setup.py
@@ -10,6 +10,7 @@ import struct
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
import pkgconfig
|
import pkgconfig
|
||||||
|
import setuptools # noqa: F401
|
||||||
|
|
||||||
from distutils.command.clean import clean as _clean
|
from distutils.command.clean import clean as _clean
|
||||||
|
|
||||||
@@ -23,7 +24,7 @@ from buildutils.bundle import fetch_libcapnp
|
|||||||
|
|
||||||
MAJOR = 2
|
MAJOR = 2
|
||||||
MINOR = 2
|
MINOR = 2
|
||||||
MICRO = 3
|
MICRO = 4
|
||||||
TAG = ""
|
TAG = ""
|
||||||
VERSION = "%d.%d.%d%s" % (MAJOR, MINOR, MICRO, TAG)
|
VERSION = "%d.%d.%d%s" % (MAJOR, MINOR, MICRO, TAG)
|
||||||
|
|
||||||
@@ -204,7 +205,7 @@ extensions = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
python_requires=">=3.8",
|
python_requires=">=3.9",
|
||||||
name="pycapnp",
|
name="pycapnp",
|
||||||
packages=["capnp"],
|
packages=["capnp"],
|
||||||
version=VERSION,
|
version=VERSION,
|
||||||
@@ -237,7 +238,7 @@ setup(
|
|||||||
author="Jacob Alexander", # <- Current maintainer; Original author -> Jason Paryani
|
author="Jacob Alexander", # <- Current maintainer; Original author -> Jason Paryani
|
||||||
author_email="haata@kiibohd.com",
|
author_email="haata@kiibohd.com",
|
||||||
url="https://github.com/capnproto/pycapnp",
|
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"],
|
keywords=["capnp", "capnproto", "Cap'n Proto", "pycapnp"],
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Development Status :: 5 - Production/Stable",
|
"Development Status :: 5 - Production/Stable",
|
||||||
@@ -247,11 +248,12 @@ setup(
|
|||||||
"Operating System :: POSIX",
|
"Operating System :: POSIX",
|
||||||
"Programming Language :: C++",
|
"Programming Language :: C++",
|
||||||
"Programming Language :: Cython",
|
"Programming Language :: Cython",
|
||||||
"Programming Language :: Python :: 3.8",
|
|
||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
"Programming Language :: Python :: 3.11",
|
"Programming Language :: Python :: 3.11",
|
||||||
"Programming Language :: Python :: 3.12",
|
"Programming Language :: Python :: 3.12",
|
||||||
|
"Programming Language :: Python :: 3.13",
|
||||||
|
"Programming Language :: Python :: 3.14",
|
||||||
"Programming Language :: Python :: Implementation :: PyPy",
|
"Programming Language :: Python :: Implementation :: PyPy",
|
||||||
"Topic :: Communications",
|
"Topic :: Communications",
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user