From 2ca4180da421c0a10acc7f1a0295c8edcfaf6c73 Mon Sep 17 00:00:00 2001 From: ds-cbo <82801887+ds-cbo@users.noreply.github.com> Date: Tue, 17 Sep 2024 14:31:20 +0200 Subject: [PATCH] update setup.py to pyproject.toml Signed-off-by: ds-cbo <82801887+ds-cbo@users.noreply.github.com> --- pyproject.toml | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++ setup.py | 62 ---------------------------------------------- 2 files changed, 67 insertions(+), 62 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..74f1f1b4 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,67 @@ +[project] +name = "valkey" +description = "Python client for Valkey forked from redis-py" +readme = "README.md" +keywords = ["Valkey", "key-value store", "database"] +license = { text = "MIT License" } +version = "6.0.2" + +authors = [ + { name = "valkey-py authors", email = "valkey-py@lists.valkey.io" } +] + +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Environment :: Console", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only", + "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 :: Implementation :: CPython", + "Programming Language :: Python :: Implementation :: PyPy", +] + +requires-python = ">=3.8" + +dependencies =[ + 'async-timeout>=4.0.3; python_version<"3.11.3"', +] + +[project.optional-dependencies] +libvalkey = ["libvalkey>=4.0.0"] +ocsp = ["cryptography>=36.0.1", "pyopenssl==23.2.1", "requests>=2.31.0"] + +[project.urls] +Homepage = "https://github.com/valkey-io/valkey-py" +Documentation = "https://valkey-py.readthedocs.io/en/latest/" +Changes = "https://github.com/valkey-io/valkey-py/releases" +Code = "https://github.com/valkey-io/valkey-py" +"Issue tracker" = "https://github.com/valkey-io/valkey-py/issues" + +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[tool.setuptools.packages.find] +include = [ + "valkey", + "valkey._parsers", + "valkey.asyncio", + "valkey.commands", + "valkey.commands.bf", + "valkey.commands.json", + "valkey.commands.search", + "valkey.commands.timeseries", + "valkey.commands.graph", + "valkey.parsers", +] + +[tool.setuptools.package-data] +valkey = ["py.typed"] diff --git a/setup.py b/setup.py deleted file mode 100644 index 500272c3..00000000 --- a/setup.py +++ /dev/null @@ -1,62 +0,0 @@ -#!/usr/bin/env python -from setuptools import find_packages, setup - -setup( - name="valkey", - description="Python client for Valkey forked from redis-py", - long_description=open("README.md").read().strip(), - long_description_content_type="text/markdown", - keywords=["Valkey", "key-value store", "database"], - license="MIT", - version="6.0.2", - packages=find_packages( - include=[ - "valkey", - "valkey._parsers", - "valkey.asyncio", - "valkey.commands", - "valkey.commands.bf", - "valkey.commands.json", - "valkey.commands.search", - "valkey.commands.timeseries", - "valkey.commands.graph", - "valkey.parsers", - ] - ), - package_data={"valkey": ["py.typed"]}, - include_package_data=True, - url="https://github.com/valkey-io/valkey-py", - project_urls={ - "Documentation": "https://valkey-py.readthedocs.io/en/latest/", - "Changes": "https://github.com/valkey-io/valkey-py/releases", - "Code": "https://github.com/valkey-io/valkey-py", - "Issue tracker": "https://github.com/valkey-io/valkey-py/issues", - }, - author="valkey-py authors", - author_email="valkey-py@lists.valkey.io", - python_requires=">=3.8", - install_requires=[ - 'async-timeout>=4.0.3; python_version<"3.11.3"', - ], - classifiers=[ - "Development Status :: 5 - Production/Stable", - "Environment :: Console", - "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3 :: Only", - "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 :: Implementation :: CPython", - "Programming Language :: Python :: Implementation :: PyPy", - ], - extras_require={ - "libvalkey": ["libvalkey>=4.0.0"], - "ocsp": ["cryptography>=36.0.1", "pyopenssl==23.2.1", "requests>=2.31.0"], - }, -)