Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consolidate infrastructure into pyproject.tml #30

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .coveragerc

This file was deleted.

6 changes: 6 additions & 0 deletions fastpair/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,10 @@
# Copyright (c) 2002-2015, David Eppstein
# Licensed under the MIT Licence (http://opensource.org/licenses/MIT).

import contextlib
from importlib.metadata import PackageNotFoundError, version

from .base import FastPair

with contextlib.suppress(PackageNotFoundError):
carsonfarmer marked this conversation as resolved.
Show resolved Hide resolved
__version__ = version("fastpair")
72 changes: 72 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
[build-system]
requires = ["setuptools>=61.0", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]

[project]
name = "fastpair"
dynamic = ["version"]
authors = [
{ name = "Carson J. Q. Farmer", email = "[email protected]" },
]
maintainers = [
{ name = "James D. Gaboardi", email = "[email protected]" },
]
license = { text = "MIT" }
description = "FastPair: Data-structure for the dynamic closest-pair problem."
keywords = ["closest-pair points algorithm fastpair"]
readme = "README.md"
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: System :: Distributed Computing",
]

requires-python = ">=3.10"
carsonfarmer marked this conversation as resolved.
Show resolved Hide resolved
dependencies = [
"scipy>=1.10,<1.12",
]

[project.urls]
Home = "https://github.com/carsonfarmer/fastpair/"
Repository = "https://github.com/carsonfarmer/fastpair"

[project.optional-dependencies]
tests = [
"codecov",
"coverage",
"pytest",
"pytest-cov",
"setuptools_scm",
]

[tool.setuptools.packages.find]
include = ["fastpair", "fastpair.*"]


[tool.coverage.run]
source = ["./fastpair"]

[tool.coverage.report]
exclude_lines = [
"def __repr__",
"except ModuleNotFoundError:",
"except ImportError",
"if __name__ == .__main__.:",
"if self.debug:",
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
]

ignore_errors = true
omit = ["fastpair/test/*"]
4 changes: 0 additions & 4 deletions recommended.txt

This file was deleted.

5 changes: 0 additions & 5 deletions requirements.txt

This file was deleted.

44 changes: 0 additions & 44 deletions setup.py

This file was deleted.