Skip to content

Commit

Permalink
chore: switch to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
tos-kamiya committed Apr 24, 2023
1 parent 7382749 commit 828ef70
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 60 deletions.
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.2"]
build-backend = "setuptools.build_meta"

[project]
name = "dendro_text"
description = "Draw dendrogram of similarity between text files"
authors = [{name = "Toshihiro Kamiya", email = "[email protected]"}]
license = {text = "BSD 2-Clause License"}
classifiers = [
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
]
requires-python = ">=3.8"
dependencies = [
"numpy>=1.16.1",
"scipy",
"pygments",
# matplotlib # for option -p
"tqdm",
"init-attrs-with-kwargs>=0.2.0",
"win-wildcard>=0.5.0",
]
dynamic = ["version"]

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

[project.urls]
Homepage = "https://github.com/tos-kamiya/dendro_text"

[project.optional-dependencies]
docopt-ng = ["docopt-ng"]
docopt = ["docopt"]

[project.scripts]
dendro_text = "dendro_text.main:main"

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

[tool.setuptools.package-data]
dendro_text = [
"VERSION",
"Blocks.txt",
]

[tool.setuptools.packages]
find = {namespaces = false}

[tool.setuptools.dynamic]
version = {file = ["dendro_text/VERSION"]}

[tool.tox.tox]
envlist = "py38, py39, py310"

[tool.gh-actions]
python = """
3.8: py38
3.9: py39
3.10: py310"""

[tool.testenv]
commands = """
python -m pip install docopt-ng
python -m unittest discover"""
57 changes: 0 additions & 57 deletions setup.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions setup.py

This file was deleted.

0 comments on commit 828ef70

Please sign in to comment.