-
Notifications
You must be signed in to change notification settings - Fork 27
update setup.py to pyproject.toml #96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
34b1c50
3c4169a
063138a
c2f282a
5effc39
fcb7b67
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
Please use | ||
python setup.py install | ||
pip install . | ||
|
||
and report errors to via https://github.com/valkey-io/valkey-py/issues/new | ||
and report errors to us via https://github.com/valkey-io/valkey-py/issues/new | ||
|
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,97 @@ | ||||||
[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"] | ||||||
dev = [ | ||||||
"black", | ||||||
"build", | ||||||
"cachetools", | ||||||
"click", | ||||||
"flake8-isort", | ||||||
"flake8", | ||||||
"flynt", | ||||||
"invoke", | ||||||
"mock", | ||||||
"packaging>=20.4", | ||||||
"pytest", | ||||||
"pytest-asyncio", | ||||||
"pytest-cov", | ||||||
"pytest-timeout", | ||||||
"ujson>=4.2.0", | ||||||
"uvloop", | ||||||
"vulture>=2.3.0", | ||||||
"wheel>=0.30.0", | ||||||
] | ||||||
docs = [ | ||||||
"sphinx>=5.0,<7.0", | ||||||
"docutils<0.18", | ||||||
"nbsphinx", | ||||||
"sphinx_gallery", | ||||||
"ipython", | ||||||
"sphinx-autodoc-typehints", | ||||||
"furo", | ||||||
"pandoc", | ||||||
] | ||||||
|
||||||
[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"] | ||||||
Comment on lines
+96
to
+97
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,3 @@ | ||
#!/usr/bin/env python | ||
from setuptools import find_packages, setup | ||
from setuptools import setup | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we also do not need this file if it just call |
||
|
||
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"], | ||
}, | ||
) | ||
setup() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we do not need this anymore after we migrate from setup.py to pyproject.toml