-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to PEP 517 packaging using hatchling
Refs #1316 Refs #1649 Remake of #2388 Co-authored-by: Ofek Lev <[email protected]>
- Loading branch information
Showing
10 changed files
with
70 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: pypa/[email protected] | ||
with: | ||
inputs: requirements.txt dev_requirements.txt | ||
inputs: . | ||
ignore-vulns: | | ||
GHSA-w596-4wvx-j9j6 # subversion related git pull, dependency for pytest. There is no impact here. | ||
|
@@ -79,9 +79,7 @@ jobs: | |
|
||
- name: Run tests | ||
run: | | ||
pip install -U setuptools wheel | ||
pip install -r requirements.txt | ||
pip install -r dev_requirements.txt | ||
pip install -e . -r dev_requirements.txt | ||
if [ "${{matrix.connection-type}}" == "hiredis" ]; then | ||
pip install hiredis | ||
fi | ||
|
@@ -146,9 +144,7 @@ jobs: | |
|
||
- name: Run tests | ||
run: | | ||
pip install -U setuptools wheel | ||
pip install -r requirements.txt | ||
pip install -r dev_requirements.txt | ||
pip install -e . -r dev_requirements.txt | ||
if [ "${{matrix.connection-type}}" == "hiredis" ]; then | ||
pip install hiredis | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "redis" | ||
version = "5.1.0b7" | ||
description = "Python client for Redis database and key-value store" | ||
readme = "README.md" | ||
license = "MIT" | ||
requires-python = ">=3.8" | ||
authors = [ | ||
{ name = "Redis Inc.", email = "[email protected]" }, | ||
] | ||
keywords = [ | ||
"Redis", | ||
"database", | ||
"key-value-store", | ||
] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Console", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9",x | ||
"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", | ||
"Programming Language :: Python", | ||
] | ||
dependencies = [ | ||
'async-timeout>=4.0.3; python_full_version<"3.11.3"', | ||
] | ||
|
||
[project.optional-dependencies] | ||
hiredis = [ | ||
"hiredis>=3.0.0", | ||
] | ||
ocsp = [ | ||
"cryptography>=36.0.1", | ||
"pyopenssl==20.0.1", | ||
"requests>=2.31.0", | ||
] | ||
|
||
[project.urls] | ||
Changes = "https://github.com/redis/redis-py/releases" | ||
Code = "https://github.com/redis/redis-py" | ||
Documentation = "https://redis.readthedocs.io/en/latest/" | ||
Homepage = "https://github.com/redis/redis-py" | ||
"Issue tracker" = "https://github.com/redis/redis-py/issues" | ||
|
||
[tool.hatch.build.targets.sdist] | ||
include = [ | ||
"/redis", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters