Skip to content

Commit

Permalink
set up pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
johenglisch committed Aug 27, 2024
1 parent 8af3af6 commit 51d31a8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 24 deletions.
22 changes: 22 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "cldfbench_nicholsdiversity"
dependencies = ["cldfbench[glottolog]"]
dynamic = ["version"]

[project.optional-dependencies]
test = ["pytest-cldf"]

[project.entry-points."cldfbench.dataset"]
nicholsdiversity = "cldfbench_nicholsdiversity:Dataset"

[tool.setuptools]
py-modules = ["cldfbench_nicholsdiversity"]
include-package-data = true

[tool.pytest.ini_options]
testpaths = ["test.py"]
addopts = "--cldf-metadata=cldf/cldf-metadata.json"
4 changes: 0 additions & 4 deletions setup.cfg

This file was deleted.

21 changes: 1 addition & 20 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
from setuptools import setup


setup(
name='cldfbench_nicholsdiversity',
py_modules=['cldfbench_nicholsdiversity'],
include_package_data=True,
zip_safe=False,
entry_points={
'cldfbench.dataset': [
'nicholsdiversity=cldfbench_nicholsdiversity:Dataset',
]
},
install_requires=[
'cldfbench[glottolog]',
],
extras_require={
'test': [
'pytest-cldf',
],
},
)
setup()

0 comments on commit 51d31a8

Please sign in to comment.