Skip to content

Commit ed04579

Browse files
committed
convert to pyproject.toml
1 parent 8e2f2d3 commit ed04579

File tree

12 files changed

+78
-103
lines changed

12 files changed

+78
-103
lines changed

Diff for: .github/workflows/pypi-publish.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ jobs:
2525
2626
- name: Build package
2727
run: |
28-
python setup.py build
29-
python setup.py sdist bdist_wheel
28+
python -m build
3029
3130
- name: Basic package test prior to upload
3231
run: |

Diff for: CONTRIBUTING.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,11 @@ Here's how to get started with your code contribution:
3333
1. Create your own fork of redis-py
3434
2. Do the changes in your fork
3535
3.
36-
*Create a virtualenv and install the development dependencies from the dev_requirements.txt file:*
36+
*Create a virtualenv and install the project with dependencies:*
3737

3838
a. python -m venv .venv
3939
b. source .venv/bin/activate
40-
c. pip install -r dev_requirements.txt
41-
c. pip install -r requirements.txt
40+
c. pip install -e .
4241

4342
4. If you need a development environment, run `invoke devenv`. Note: this relies on docker-compose to build environments, and assumes that you have a version supporting [docker profiles](https://docs.docker.com/compose/profiles/).
4443
5. While developing, make sure the tests pass by running `invoke tests`

Diff for: INSTALL

-6
This file was deleted.

Diff for: MANIFEST.in

-6
This file was deleted.

Diff for: dev_requirements.txt

-19
This file was deleted.

Diff for: pyproject.toml

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
[build-system]
2+
requires = ["setuptools>=42"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "redis"
7+
version = "5.3.0b4"
8+
description = "Python client for Redis database and key-value store"
9+
readme = "README.md"
10+
keywords = ["Redis", "key-value store", "database"]
11+
license = {text = "MIT"}
12+
authors = [
13+
{name = "Redis Inc.", email = "[email protected]"}
14+
]
15+
requires-python = ">=3.8"
16+
dependencies = [
17+
"async-timeout>=4.0.3; python_full_version < \"3.11.3\"",
18+
"PyJWT~=2.9.0"
19+
]
20+
classifiers = [
21+
"Development Status :: 5 - Production/Stable",
22+
"Environment :: Console",
23+
"Intended Audience :: Developers",
24+
"License :: OSI Approved :: MIT License",
25+
"Operating System :: OS Independent",
26+
"Programming Language :: Python",
27+
"Programming Language :: Python :: 3",
28+
"Programming Language :: Python :: 3 :: Only",
29+
"Programming Language :: Python :: 3.8",
30+
"Programming Language :: Python :: 3.9",
31+
"Programming Language :: Python :: 3.10",
32+
"Programming Language :: Python :: 3.11",
33+
"Programming Language :: Python :: 3.12",
34+
"Programming Language :: Python :: Implementation :: CPython",
35+
"Programming Language :: Python :: Implementation :: PyPy"
36+
]
37+
38+
[project.urls]
39+
Homepage = "https://github.com/redis/redis-py"
40+
Documentation = "https://redis.readthedocs.io/en/latest/"
41+
Repository = "https://github.com/redis/redis-py"
42+
Issues = "https://github.com/redis/redis-py/issues"
43+
Changes = "https://github.com/redis/redis-py/releases"
44+
45+
[project.optional-dependencies]
46+
hiredis = ["hiredis>=3.0.0"]
47+
ocsp = ["cryptography>=36.0.1", "pyopenssl==23.2.1", "requests>=2.31.0"]
48+
dev = [
49+
"black==24.3.0",
50+
"click==8.0.4",
51+
"flake8-isort",
52+
"flake8",
53+
"flynt~=0.69.0",
54+
"invoke==2.2.0",
55+
"mock",
56+
"packaging>=20.4",
57+
"pytest",
58+
"pytest-asyncio>=0.23.0,<0.24.0",
59+
"pytest-cov",
60+
"pytest-profiling==1.7.0",
61+
"pytest-timeout",
62+
"ujson>=4.2.0",
63+
"uvloop",
64+
"vulture>=2.3.0",
65+
"wheel>=0.30.0",
66+
"numpy>=1.24.0",
67+
"redis-entraid>=0.1.0b1"
68+
]
69+
70+
[tool.setuptools.packages.find]
71+
where = ["redis", "tests"]
72+
73+
[tool.setuptools.package-data]
74+
redis = ["py.typed"]

Diff for: requirements.txt

-2
This file was deleted.

Diff for: setup.py

-64
This file was deleted.

Diff for: tasks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ def clean(c):
9797
@task
9898
def package(c):
9999
"""Create the python packages"""
100-
run("python setup.py sdist bdist_wheel")
100+
run("python -m build")

Diff for: tests/test_asyncio/testdata/__init__.py

Whitespace-only changes.

Diff for: tests/test_parsers/__init__.py

Whitespace-only changes.

Diff for: tests/testdata/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)