-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
121 lines (110 loc) · 2.73 KB
/
pyproject.toml
File metadata and controls
121 lines (110 loc) · 2.73 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
[build-system]
requires = ["setuptools>=45", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pycancensus"
version = "0.1.0"
description = "Access, retrieve, and work with Canadian Census data and geography"
readme = "README.md"
license = {text = "MIT"}
authors = [
{name = "Dmitry Shkolnik", email = "shkolnikd@gmail.com"}
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: GIS",
]
requires-python = ">=3.7"
dependencies = [
"requests>=2.25.0",
"pandas>=1.0.0",
"geopandas>=0.8.0",
]
[project.optional-dependencies]
dev = [
"pytest>=6.0",
"pytest-cov",
"black",
"flake8",
]
docs = [
"sphinx>=4.0",
"sphinx-rtd-theme",
"myst-nb>=0.17",
"sphinx-gallery>=0.11",
"sphinx-autosummary-accessors",
"sphinx-copybutton",
"matplotlib>=3.4.0",
"folium>=0.12.0",
]
cross-validation = [
"rpy2>=3.4.0",
"tqdm>=4.62.0",
"deepdiff>=5.6.0",
"tabulate>=0.8.9",
"matplotlib>=3.4.0",
"seaborn>=0.11.0",
]
[project.scripts]
pycancensus = "pycancensus.cli:main"
[project.urls]
Homepage = "https://github.com/dshkol/pycancensus"
Repository = "https://github.com/dshkol/pycancensus"
Documentation = "https://pycancensus.readthedocs.io"
"Bug Tracker" = "https://github.com/dshkol/pycancensus/issues"
[tool.setuptools]
packages = ["pycancensus"]
[tool.setuptools.package-data]
pycancensus = ["*.json", "*.yaml"]
# Exclude test directories from package builds
[tool.setuptools.exclude-package-data]
"*" = ["tests", "tests.*", "test", "test.*", "testing", "testing.*"]
[tool.black]
line-length = 88
target-version = ['py37']
extend-exclude = '''
/(
tests/cross_validation
| \.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.isort]
profile = "black"
multi_line_output = 3
extend_skip_glob = ["tests/cross_validation/*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
# Exclude cross-validation tests from normal test runs
addopts = "--ignore=tests/cross_validation"
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
[tool.coverage.run]
source = ["pycancensus"]
omit = [
"tests/*",
"test_*",
"*/tests/*",
"*/test_*",
"setup.py",
"*/site-packages/*",
]