Skip to content

Commit

Permalink
repo: move to pyproject.toml only
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-- committed Nov 5, 2023
1 parent 8bea5a4 commit 679ea5a
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 99 deletions.
109 changes: 108 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,76 @@ requires = [
]
build-backend = "setuptools.build_meta"

[project]
name = "tiffslide"
description = "tifffile-based drop-in replacement for openslide-python"
license.file = "LICENSE"
authors = [
{name = "Andreas Poehlmann", email = "[email protected]"},
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"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",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Utilities",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
]
requires-python = ">=3.8"
dependencies = [
"imagecodecs",
"fsspec!=2022.11.0,!=2023.1.0",
"pillow",
"tifffile>=2021.6.14",
"zarr>=2.11.0",
"typing_extensions>=4.0",
]
dynamic = ["version"]

[project.readme]
file = "README.md"
content-type = "text/markdown"

[project.urls]
Homepage = "https://github.com/bayer-science-for-a-better-life/tiffslide"
Download = "https://github.com/bayer-science-for-a-better-life/tiffslide"

[project.optional-dependencies]
dev = [
"pre-commit",
"black",
"pytest>=6",
"pytest-benchmark",
"pytest-cov",
"mypy",
]

[tool.setuptools]
include-package-data = false

[tool.setuptools.packages.find]
exclude = ["tests/*"]
namespaces = false

[tool.setuptools.package-data]
tiffslide = ["py.typed"]

[tool.setuptools_scm]
write_to = "tiffslide/_version.py"
version_scheme = "post-release"


[tool.pytest.ini_options]
addopts = [
"-v",
Expand Down Expand Up @@ -39,3 +103,46 @@ exclude_lines = [
"if MYPY:",
"^\\s+[.][.][.]$",
]

[tool.mypy]
python_version = "3.8"
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
namespace_packages = true
no_implicit_optional = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = false
plugins = ["numpy.typing.mypy_plugin"]

[[tool.mypy.overrides]]
module = ["tiffslide.tests.*"]
disallow_untyped_defs = false
disallow_incomplete_defs = false

[[tool.mypy.overrides]]
module = ["PIL.*"]
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = ["fsspec.*"]
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = ["tifffile.*"]
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = ["openslide.*"]
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = ["zarr.*"]
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = ["imagecodecs.*"]
ignore_missing_imports = true
98 changes: 0 additions & 98 deletions setup.cfg

This file was deleted.

0 comments on commit 679ea5a

Please sign in to comment.