Skip to content

Commit

Permalink
Move project metadata to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Oct 21, 2024
1 parent 78cc279 commit 6707d00
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 698 deletions.
87 changes: 82 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,52 @@ build-backend = "scikit_build_core.build"
[project]
name = "pyfastani"
version = "0.5.1"
description = "Cython bindings and Python interface to FastANI, a method for fast whole-genome similarity estimation."
readme = "README.md"
requires-python = ">=3.7"
license = { file = "COPYING" }
authors = [
{ name = "Martin Larralde", email = "[email protected]" },
]
keywords = ["bioinformatics", "genomics", "average", "nucleotide", "identity"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: C++",
"Programming Language :: Cython",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
"Typing :: Typed",
]
[project.urls]
"Documentation" = "https://pyfastani.readthedocs.io/en/stable/"
"Bug Tracker" = "https://github.com/althonos/pyfastani/issues"
"Changelog" = "https://github.com/althonos/pyfastani/blob/main/CHANGELOG.md"
"Coverage" = "https://codecov.io/gh/althonos/pyfastani/"
"Builds" = "https://github.com/althonos/pyfastani/actions"
"PyPI" = "https://pypi.org/project/pyfastani"

[tool.scikit-build]
build-dir = "build/{build_type}"
editable.rebuild = true
editable.verbose = false

# [[tool.scikit-build.generate]]
# path = "src/pyfastani/_version.py"
# template = '__version__ = "${version}"'
# location = 'source'
[[tool.scikit-build.generate]]
path = "src/pyfastani/_version.py"
template = '__version__ = "${version}"'
location = 'source'

[[tool.scikit-build.overrides]]
if.state = "editable"
Expand All @@ -27,4 +63,45 @@ cmake.define.CMAKE_CXX_COMPILER_LAUNCHER = "sccache"

[[tool.scikit-build-overrides]]
if.env.MOLD = true
cmake.define.CMAKE_LINKER_TYPE = "mold"
cmake.define.CMAKE_LINKER_TYPE = "mold"


[tool.coverage.run]
plugins = ["Cython.Coverage"]

[tool.coverage.report]
include = ["src/pytantan/*"]
omit = ["src/pyfastani/tests/*"]
show_missing = true
exclude_lines = [
"pragma: no cover",
"if typing.TYPE_CHECKING:",
"@abc.abstractmethod",
"@abc.abstractproperty",
"raise NotImplementedError",
"return NotImplemented",
"raise UnexpectedError",
"raise AllocationError",
]

[tool.coverage.paths]
source = [
"src/pyfastani/",
"build/Debug/src/pyfastani/",
"build/Release/src/pyfastani/",
]

[tool.mypy]
disallow_any_decorated = true
disallow_any_generics = true
disallow_any_unimported = false
disallow_subclassing_any = false
disallow_untyped_calls = true
disallow_untyped_defs = true
ignore_missing_imports = true
warn_unused_ignores = true
warn_return_any = true
exclude = ["tests/.*\\.py"]

["tool.mypy-pyfastani.tests.*"]
ignore_errors = true
91 changes: 0 additions & 91 deletions setup.cfg

This file was deleted.

Loading

0 comments on commit 6707d00

Please sign in to comment.