-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathpyproject.toml
79 lines (70 loc) · 1.93 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[build-system]
build-backend = "hatchling.build"
requires = [ "hatchling" ]
[project]
name = "pyfxa"
description = "Firefox Accounts client library for Python"
readme = "README.rst"
keywords = [
"accounts",
"authentication",
"firefox",
]
license = "MPL-2.0"
authors = [
{ name = "Mozilla Services", email = "[email protected]" },
]
requires-python = ">=3.8"
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Programming Language :: Python",
"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",
]
dynamic = [ "version" ]
dependencies = [
"cryptography",
"hawkauthlib",
"pybrowserid",
"pyjwt",
"requests>=2.4.2",
]
urls.Homepage = "https://github.com/mozilla/PyFxA"
scripts.fxa-client = "fxa.__main__:main"
entry-points."httpie.plugins.auth.v1".httpie_fxa-bearer = "fxa.plugins.requests:FxABearerTokenPlugin"
entry-points."httpie.plugins.auth.v1".httpie_fxa-browserid = "fxa.plugins.requests:FxABrowserIDPlugin"
[tool.hatch.version]
path = "fxa/__init__.py"
[tool.hatch.build.targets.sdist]
include = [
"fxa/",
"CHANGES.txt",
"CODE_OF_CONDUCT.md",
"LICENSE.txt",
"README.rst",
]
[tool.hatch.build.targets.wheel]
packages = [ "fxa" ]
[tool.hatch.envs.test]
dependencies = [
"coverage[toml]>=6.5",
"grequests",
"parameterized",
"pyotp",
"pytest",
"pytest-cov",
"responses",
]
[tool.hatch.envs.test.scripts]
test = "pytest {args:fxa/tests}"
cov = "pytest --cov-config=pyproject.toml --cov=fxa/ --cov-report term-missing {args:fxa/tests}"
[[tool.hatch.envs.test.matrix]]
# Note: When changing these, also update the .github/workflows/test.yml file.
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
[tool.flake8]
max-line-length = 99