Skip to content

Commit 6c96112

Browse files
author
Mathieu Dupuy
committed
migrate to pyproject.toml
1 parent 4808275 commit 6c96112

File tree

2 files changed

+85
-61
lines changed

2 files changed

+85
-61
lines changed

pyproject.toml

Lines changed: 85 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,81 @@
1+
[build-system]
2+
requires = ["setuptools>=61.2"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "vcrpy"
7+
version = "5.1.0"
8+
authors = [{ name = "Kevin McCarthy", email = "[email protected]" }]
9+
license = { text = "MIT" }
10+
description = "Automatically mock your HTTP interactions to simplify and speed up testing"
11+
classifiers = [
12+
"Development Status :: 5 - Production/Stable",
13+
"Environment :: Console",
14+
"Intended Audience :: Developers",
15+
"Programming Language :: Python",
16+
"Programming Language :: Python :: 3",
17+
"Programming Language :: Python :: 3.8",
18+
"Programming Language :: Python :: 3.9",
19+
"Programming Language :: Python :: 3.10",
20+
"Programming Language :: Python :: 3.11",
21+
"Programming Language :: Python :: 3 :: Only",
22+
"Programming Language :: Python :: Implementation :: CPython",
23+
"Programming Language :: Python :: Implementation :: PyPy",
24+
"Topic :: Software Development :: Testing",
25+
"Topic :: Internet :: WWW/HTTP",
26+
"License :: OSI Approved :: MIT License",
27+
]
28+
urls = { Homepage = "https://github.com/kevin1024/vcrpy" }
29+
requires-python = ">=3.8"
30+
dependencies = [
31+
"PyYAML",
32+
"wrapt",
33+
"yarl",
34+
# Support for urllib3 >=2 needs Python >=3.10
35+
# so we need to block urllib3 >=2 for Python <3.10 for now.
36+
# Note that vcrpy would work fine without any urllib3 around,
37+
# so this block and the dependency can be dropped at some point
38+
# in the future. For more Details:
39+
# https://github.com/kevin1024/vcrpy/pull/699#issuecomment-1551439663
40+
"urllib3 <2; python_version <'3.10'",
41+
]
42+
43+
[project.readme]
44+
file = "README.rst"
45+
content-type = "text/x-rst"
46+
47+
[project.optional-dependencies]
48+
testing = [
49+
"aiohttp",
50+
"boto3",
51+
"httplib2",
52+
"httpx",
53+
"pytest",
54+
"pytest-aiohttp",
55+
"pytest-httpbin",
56+
"requests>=2.16.2",
57+
"tornado",
58+
# Needed to un-break httpbin 0.7.0. For httpbin >=0.7.1 and after,
59+
# this pin and the dependency itself can be removed, provided
60+
# that the related bug in httpbin has been fixed:
61+
# https://github.com/kevin1024/vcrpy/issues/645#issuecomment-1562489489
62+
# https://github.com/postmanlabs/httpbin/issues/673
63+
# https://github.com/postmanlabs/httpbin/pull/674
64+
"Werkzeug==2.0.3",
65+
]
66+
67+
[tool.distutils.bdist_wheel]
68+
universal = 1
69+
70+
[tool.setuptools]
71+
include-package-data = false
72+
73+
[tool.setuptools.packages.find]
74+
exclude = ["tests*"]
75+
namespaces = false
76+
177
[tool.black]
2-
line-length=110
78+
line-length = 110
379

480
[tool.codespell]
581
skip = '.git,*.pdf,*.svg,.tox'
@@ -14,20 +90,20 @@ markers = [
1490

1591
[tool.ruff]
1692
select = [
17-
"B", # flake8-bugbear
18-
"C4", # flake8-comprehensions
93+
"B", # flake8-bugbear
94+
"C4", # flake8-comprehensions
1995
"COM", # flake8-commas
20-
"E", # pycodestyle error
21-
"F", # pyflakes
22-
"I", # isort
96+
"E", # pycodestyle error
97+
"F", # pyflakes
98+
"I", # isort
2399
"ISC", # flake8-implicit-str-concat
24100
"PIE", # flake8-pie
25101
"RUF", # Ruff-specific rules
26-
"UP", # pyupgrade
27-
"W", # pycodestyle warning
102+
"UP", # pyupgrade
103+
"W", # pycodestyle warning
28104
]
29105
line-length = 110
30106
target-version = "py38"
31107

32108
[tool.ruff.isort]
33-
known-first-party = [ "vcr" ]
109+
known-first-party = ["vcr"]

setup.cfg

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)