Skip to content

Commit 27b6531

Browse files
committed
Migrate away from setuptools
1 parent 4c41dd2 commit 27b6531

File tree

2 files changed

+49
-66
lines changed

2 files changed

+49
-66
lines changed

pyproject.toml

+49
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,52 @@
1+
[build-system]
2+
requires = ["hatchling", "hatch-vcs"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "snkit"
7+
dynamic = ["version"]
8+
description = "a spatial networks toolkit"
9+
readme = "README.md"
10+
license = "MIT"
11+
authors = [{ name = "Tom Russell", email = "[email protected]" }]
12+
keywords = []
13+
classifiers = [
14+
"Development Status :: 4 - Beta",
15+
"Intended Audience :: Developers",
16+
"License :: OSI Approved :: MIT License",
17+
"Programming Language :: Python",
18+
"Programming Language :: Python :: 3",
19+
"Topic :: Scientific/Engineering :: GIS",
20+
"Topic :: Utilities",
21+
]
22+
dependencies = ["geopandas>=1.0", "numpy", "pandas", "shapely>=2.0"]
23+
24+
[project.optional-dependencies]
25+
dev = [
26+
"black",
27+
"mypy",
28+
"nbstripout",
29+
"pre-commit",
30+
"pytest",
31+
"pytest-cov",
32+
"ruff",
33+
]
34+
docs = ["myst-parser", "sphinx"]
35+
networkx = ["networkx>=3.0"]
36+
37+
[project.urls]
38+
Homepage = "https://snkit.readthedocs.io/en/latest/"
39+
Source = "https://github.com/tomalrussell/snkit"
40+
41+
[tool.hatch.version]
42+
source = "vcs"
43+
44+
[tool.hatch.build.hooks.vcs]
45+
version-file = "src/snkit/_version.py"
46+
47+
[tool.hatch.build.targets.sdist]
48+
include = ["/src"]
49+
150
[tool.pytest.ini_options]
251
pythonpath = ["src"]
352

setup.py

-66
This file was deleted.

0 commit comments

Comments
 (0)