-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from lemma-osu/pyproject
Replace `setup.py` with `pyproject.toml` and `setuptools` with `hatch` As a side effect, this allows us to remove a lot of dependency and versioning cruft that now gets handled by `hatch`, and lets us add a second author.
- Loading branch information
Showing
6 changed files
with
104 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "scikit-learn-knn" | ||
dynamic = ["version"] | ||
description = "Scikit-learn estimators for kNN methods" | ||
readme = "README.md" | ||
license = "" | ||
requires-python = ">=3.8" | ||
authors = [ | ||
{ name = "Matt Gregory", email = "matt.gregory@oregonstate.edu" }, | ||
{ name = "Aaron Zuspan", email = "aaron.zuspan@oregonstate.edu" } | ||
] | ||
dependencies = [ | ||
"numpy", | ||
"scikit-learn", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/lemma-osu/scikit-learn-knn" | ||
Source = "https://github.com/lemma-osu/scikit-learn-knn" | ||
|
||
[tool.hatch.version] | ||
path = "src/sklearn_knn/__about__.py" | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["src/sklearn_knn"] | ||
|
||
[tool.hatch.build.targets.sdist] | ||
include = [ | ||
"/src", | ||
] | ||
|
||
[tool.hatch.envs.default] | ||
dependencies = [ | ||
"pre-commit", | ||
"sourcery", | ||
] | ||
|
||
[tool.hatch.envs.test] | ||
dependencies = [ | ||
"pytest", | ||
"pytest-cov", | ||
"pandas" | ||
] | ||
|
||
[tool.hatch.envs.test.scripts] | ||
all = "pytest {args}" | ||
coverage = "pytest --cov=src/sklearn_knn {args}" | ||
|
||
[tool.pytest.ini_options] | ||
pythonpath = "src/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__ = "0.1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters