forked from stravalib/stravalib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
106 lines (93 loc) · 2.96 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
package-dir = { "" = "src" }
[tool.setuptools_scm]
# Make sure setuptools uses version of last created tag - this allows us to specify bump
version_scheme = "post-release"
# Make sure scm doesn't use local scheme version for push to pypi
# (so there isn't a + in the version)
local_scheme = "no-local-version"
write_to = "src/stravalib/_version_generated.py"
write_to_template = '__version__ = "v{version}"'
[tool.setuptools.package-data]
"stravalib" = ["py.typed"]
[project]
name = "stravalib"
description = "A Python package that makes it easy to access and download data from the Strava V3 REST API."
keywords = ["strava", "running", "cycling", "athletes"]
readme = "README.md"
dynamic = ["version"]
license = { text = "Apache 2.0 License" }
authors = [{ name = "Hans Lellelid", email = "[email protected]" }]
maintainers = [
{ name = "Leah Wasser" },
{ name = "Hans Lellelid" },
{ name = "Jonatan Samoocha" },
{ name = "Yihong" },
{ name = "Émile Nadeau" },
]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
# Because license is listed below does it need to be here too?
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = ["pint", "pytz", "arrow", "requests", "pydantic==1.10.9"]
[project.urls]
homepage = "https://example.com"
documentation = "https://stravalib.readthedocs.io"
repository = "https://github.com/stravalib/stravalib"
changelog = "https://github.com/stravalib/stravalib/blob/main/changelog.md"
[tool.black]
line-length = 79
# When editing the config for black in this file, be sure to make
# the same edits in the repo stravalib/strava_swagger2pydantic
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
filterwarnings = [
"ignore::FutureWarning:stravalib.*",
"ignore::DeprecationWarning:stravalib.*",
]
[tool.mypy]
python_version = "3.9"
follow_imports = "silent"
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
warn_unreachable = true
disallow_untyped_defs = true
files = ["src/stravalib/"]
plugins = ["pydantic.mypy"]
exclude = ["src/stravalib/tests/"]
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true
[tool.codespell]
skip = './docs/_build, ./build'
[tool.ruff]
select = [
"F", # pyflakes
"I", # isort
]
ignore = [
"F841"
]
line-length = 79