Skip to content

Commit

Permalink
consolidate infrastructure into pyproject.tml (#30)
Browse files Browse the repository at this point in the history
* consolidate infra

* Update pyproject.toml

Co-authored-by: Carson Farmer <[email protected]>

* add me as maintainer

---------

Co-authored-by: Carson Farmer <[email protected]>
  • Loading branch information
jGaboardi and carsonfarmer authored May 31, 2024
1 parent 4ec960e commit 3d082b4
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 60 deletions.
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):
__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"
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.

0 comments on commit 3d082b4

Please sign in to comment.