forked from swar/nba_api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
130 lines (115 loc) · 3.54 KB
/
pyproject.toml
File metadata and controls
130 lines (115 loc) · 3.54 KB
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
[project]
name = "nba_api"
version = "1.11.3"
description = "An API Client package to access the APIs for NBA.com"
requires-python = ">=3.10"
license = "MIT"
authors = [ {name = "Swar Patel", email = "<swar.m.patel@gmail.com>"}]
maintainers = [
{name = "Swar Patel", email = "<swar.m.patel@gmail.com>"},
{name = "Randy Forbes", email="Randy Forbes <randy.forbes@gmail.com>"},
]
keywords = [
"api",
"basketball",
"data",
"nba",
"sports",
"stats"
]
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development",
'Programming Language :: Python',
'Programming Language :: Python :: 3',
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"numpy >=1.26.0 ; python_version < '3.13'",
"numpy >=2.1.0 ; python_version >= '3.13'",
"pandas >=2.1.0; python_version < '3.12'",
"pandas >=2.2.0 ; python_version >= '3.12'",
"requests (>=2.32.3,<3.0.0)"
]
readme = "README.md"
[project.urls]
repository = "https://github.com/swar/nba_api"
"Bug Tracker" = "https://github.com/swar/nba_api/issues"
documentation = "https://github.com/swar/nba_api/blob/master/README.md"
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.3"
pytest-cov = "^4.0"
flake8 = "^7.1.1"
python-semantic-release = "^9.0.0"
pandas = [
{version = ">=2.2.0", python = ">=3.12"},
{version = "<2.2.0", python = "<3.12"}
]
isort = "^7.0.0"
pylint = "^4.0.2"
[tool.pytest.ini_options]
testpaths = "./tests/unit/"
[tool.isort]
profile = "black"
line_length = 88
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
[tool.black]
line-length = 88
target-version = ['py310', 'py311', 'py312', 'py313']
[tool.semantic_release]
version_toml = ["pyproject.toml:project.version"]
build_command = "poetry build"
dist_path = "dist/"
upload_to_pypi = true
upload_to_release = true
commit_subject = "chore: release v{version}"
commit_message = "chore: release v{version}\n\n{changelog}"
tag_format = "v{version}"
changelog_placeholder = "# NBA API Change Log"
[tool.semantic_release.remote]
type = "github"
token = { env = "GITHUB_TOKEN" }
[tool.semantic_release.branches.master]
match = "(master|main)"
prerelease = false
[tool.semantic_release.branches.release]
match = "(release|release/.*)"
prerelease = false
[tool.semantic_release.branches.test]
match = "test-release"
prerelease = true
prerelease_token = "rc"
[tool.semantic_release.commit_parser_options]
allowed_tags = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "style", "refactor", "test"]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]
[tool.semantic_release.changelog]
exclude_commit_patterns = [
"^Bump .*",
"^Update .*",
"^Merge pull request.*"
]
changelog_file = "CHANGELOG.MD"
[tool.semantic_release.changelog.environment]
block_start_string = "{%"
block_end_string = "%}"
variable_start_string = "{{"
variable_end_string = "}}"
comment_start_string = "{#"
comment_end_string = "#}"
trim_blocks = false
lstrip_blocks = false