Skip to content

Commit 2fdbb1e

Browse files
authored
use hatch as build system (#24)
1 parent 79ef664 commit 2fdbb1e

File tree

6 files changed

+83
-82
lines changed

6 files changed

+83
-82
lines changed

.flake8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[flake8]
2+
ignore = E501

MANIFEST.in

Lines changed: 0 additions & 9 deletions
This file was deleted.

pyproject.toml

Lines changed: 80 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,94 @@
11
[build-system]
22
requires = [
3-
"setuptools>=45.0",
4-
"setuptools_scm[toml]>=6.3"
3+
"hatchling>=1.8.0",
54
]
6-
build-backend = "setuptools.build_meta"
5+
build-backend = "hatchling.build"
76

8-
[tool.setuptools_scm]
9-
write_to = "src/dask_histogram/_version.py"
7+
[project]
8+
name = "dask-histogram"
9+
description = "Histogramming with Dask."
10+
readme = "README.md"
11+
license = "BSD-3-Clause"
12+
requires-python = ">=3.8"
13+
authors = [
14+
{ name = "Doug Davis", email = "[email protected]" },
15+
]
16+
classifiers = [
17+
"Intended Audience :: Science/Research",
18+
"License :: OSI Approved :: BSD License",
19+
"Programming Language :: Python :: 3",
20+
"Programming Language :: Python :: 3 :: Only",
21+
"Programming Language :: Python :: 3.8",
22+
"Programming Language :: Python :: 3.9",
23+
"Programming Language :: Python :: 3.10",
24+
"Programming Language :: Python :: 3.11",
25+
"Topic :: Scientific/Engineering",
26+
"Topic :: Scientific/Engineering :: Information Analysis",
27+
"Topic :: Scientific/Engineering :: Mathematics",
28+
"Topic :: Scientific/Engineering :: Physics",
29+
]
30+
dependencies = [
31+
"boost-histogram>=1.2.0",
32+
"dask>=2021.03.0",
33+
]
34+
dynamic = [
35+
"version",
36+
]
37+
38+
[project.optional-dependencies]
39+
complete = [
40+
"autodocsumm",
41+
"dask-sphinx-theme >=3.0.2",
42+
"dask[dataframe]",
43+
"hist",
44+
"pytest",
45+
"sphinx >=4.0.0",
46+
]
47+
docs = [
48+
"autodocsumm",
49+
"dask-sphinx-theme >=3.0.2",
50+
"dask[dataframe]",
51+
"sphinx >=4.0.0",
52+
]
53+
test = [
54+
"dask[dataframe]",
55+
"hist",
56+
"pytest",
57+
]
58+
59+
[project.urls]
60+
Homepage = "https://github.com/dask-contrib/dask-histogram"
61+
Documentation = "https://dask-histogram.readthedocs.io/"
62+
"Bug Tracker" = "https://github.com/dask-contrib/dask-histogram/issues"
63+
64+
[tool.hatch.version]
65+
path = "src/dask_histogram/__init__.py"
66+
67+
[tool.hatch.build.targets.sdist]
68+
include = [
69+
"/src",
70+
]
1071

1172
[tool.pytest.ini_options]
1273
addopts = "-v"
13-
testpaths = ["tests"]
74+
testpaths = [
75+
"tests",
76+
]
1477

1578
[tool.isort]
1679
profile = "black"
1780
line_length = 88
18-
src_paths = ["src", "tests"]
81+
src_paths = [
82+
"src",
83+
"tests",
84+
]
1985

2086
[tool.mypy]
2187
python_version = "3.8"
22-
files = ["src", "tests"]
88+
files = [
89+
"src",
90+
"tests",
91+
]
2392
warn_unused_configs = true
2493
show_error_codes = true
2594
allow_incomplete_defs = false
@@ -31,7 +100,9 @@ warn_unused_ignores = true
31100
warn_unreachable = true
32101

33102
[[tool.mypy.overrides]]
34-
module = ["tlz.*"]
103+
module = [
104+
"tlz.*",
105+
]
35106
ignore_missing_imports = true
36107

37108
[tool.pydocstyle]

setup.cfg

Lines changed: 0 additions & 60 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/dask_histogram/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import boost_histogram.axis as _axis
44
import boost_histogram.storage as _storage
55

6-
from dask_histogram._version import version as __version__
76
from dask_histogram.core import AggHistogram, PartitionedHistogram, factory
87
from dask_histogram.routines import histogram, histogram2d, histogramdd
98

9+
__version__ = "2022.8.0"
1010
version_info = tuple(__version__.split("."))
1111

1212

0 commit comments

Comments
 (0)