From 187da054b0aea6c53022728ab54ec22bddaaea63 Mon Sep 17 00:00:00 2001 From: Mike Gerber Date: Thu, 25 Jul 2024 12:45:22 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=20Migrate=20to=20pyproject.toml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ setup.py | 29 ----------------------------- 2 files changed, 47 insertions(+), 29 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..d760c73 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,47 @@ +[build-system] +requires = ["setuptools>=61.0.0", "wheel"] + +[project] +name = "mods4pandas" +version = "0.0.0" +authors = [ + {name = "Mike Gerber", email = "mike.gerber@sbb.spk-berlin.de"}, + {name = "The QURATOR SPK Team", email = "qurator@sbb.spk-berlin.de"}, +] +description = "Convert MODS metadata to a pandas DataFrame" +readme = "README.md" +license.file = "LICENSE" +requires-python = ">=3.8" +keywords = ["qurator", "mets", "mods", "metadata", "library"] + +dynamic = ["dependencies", "optional-dependencies"] + +# https://pypi.org/classifiers/ +classifiers = [ + "Development Status :: 4 - Beta", + "Environment :: Console", + "Intended Audience :: Science/Research", + "Intended Audience :: Other Audience", + "License :: OSI Approved :: Apache Software License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only", + "Topic :: Scientific/Engineering :: Information Analysis", +] + +[project.scripts] +mods4pandas="qurator.mods4pandas.mods4pandas:main" +alto4pandas="qurator.mods4pandas.alto4pandas:main" + + +[project.urls] +Homepage = "https://github.com/qurator-spk/mods4pandas" +Repository = "https://github.com/qurator-spk/mods4pandas.git" + + +[tool.setuptools.dynamic] +dependencies = {file = ["requirements.txt"]} +optional-dependencies.dev = {file = ["requirements-dev.txt"]} + +[tool.setuptools.packages.find] +where = ["."] +include = ["qurator"] diff --git a/setup.py b/setup.py deleted file mode 100644 index 1d93db6..0000000 --- a/setup.py +++ /dev/null @@ -1,29 +0,0 @@ -from io import open -from setuptools import find_packages, setup - -with open('requirements.txt') as fp: - install_requires = fp.read() -with open('requirements-test.txt') as fp: - tests_requires = fp.read() - -setup( - name='mods4pandas', - author='Mike Gerber, The QURATOR SPK Team', - author_email='mike.gerber@sbb.spk-berlin.de, qurator@sbb.spk-berlin.de', - description='Convert MODS metadata to a pandas DataFrame', - long_description=open('README.md', 'r', encoding='utf-8').read(), - long_description_content_type='text/markdown', - keywords='qurator mets mods library', - license='Apache', - namespace_packages=['qurator'], - packages=find_packages(exclude=['*.tests', '*.tests.*', 'tests.*', 'tests']), - install_requires=install_requires, - entry_points={ - 'console_scripts': [ - 'mods4pandas=qurator.mods4pandas.mods4pandas:main', - 'alto4pandas=qurator.mods4pandas.alto4pandas:main', - ] - }, - python_requires='>=3.0.0', - tests_requires=tests_requires, -)