-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathpyproject.toml
108 lines (93 loc) · 2.29 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
107
108
[project]
name = "datacommons-client"
dynamic = ["version"]
description = "A library to access Data Commons Python API."
readme = "datacommons_client/README.md"
authors = [
{ name = "datacommons.org", email = "[email protected]" },
{ name = "one.org", email= "[email protected]"}
]
maintainers = [
{ name = "datacommons.org", email = "[email protected]" }
]
license = { file = "LICENSE" }
dependencies = [
"requests>=2.32",
"typing_extensions"
]
requires-python = ">=3.10"
keywords = ["data commons", "api", "data", "development"]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development"
]
urls = { "Homepage" = "https://github.com/datacommonsorg/api-python" }
[project.optional-dependencies]
pandas = ["pandas"]
dev = [
"pytest",
"isort",
"yapf",
"mock",
"hatch"
]
[tool.hatch.version]
path = "datacommons_client/__init__.py"
[tool.hatch.build.targets.sdist]
include = [
"datacommons_client",
"README.md",
"LICENSE",
"CHANGELOG.md"
]
[tool.hatch.build.targets.wheel]
include = [
"datacommons_client"
]
[tool.hatch.envs.default]
dependencies = [
"pytest",
"isort",
"yapf",
"hatch",
]
[tool.hatch.envs.test]
dependencies = [
"pytest",
"mock",
"pandas",
"isort",
"yapf"
]
[tool.hatch.envs.test.scripts]
setup = "./run_test.sh -s"
all = "./run_test.sh -a"
python = "./run_test.sh -p"
lint = "./run_test.sh -l"
[tool.hatch.envs.lint]
dependencies = [
"isort",
"yapf"
]
[tool.hatch.envs.lint.scripts]
check = "./run_test.sh -l"
format = "./run_test.sh -f"
[tool.hatch.envs.release]
dependencies = [
"twine"
]
[tool.hatch.envs.release.scripts]
localtest = "hatch build && twine check dist/*"
testpypi = "hatch build && twine upload --repository testpypi dist/*"
pypi = "hatch build && twine upload dist/*"
tag = "git commit -am 'Bump version to {version}' && git tag v{version}"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"