From 6ac9e5d3324227b31fae1132eb1c621191e0e40f Mon Sep 17 00:00:00 2001 From: Robert Sachunsky Date: Thu, 7 Dec 2023 13:36:06 +0100 Subject: [PATCH] switch from setup.cfg to pyproject.toml-only --- pyproject.toml | 36 +++++++++++++++++++++++++++++++++++- setup.cfg | 39 --------------------------------------- 2 files changed, 35 insertions(+), 40 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a153092..1a491b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,41 @@ build-backend = "setuptools.build_meta" [project] name = "textract2page" -dynamic = ["version"] +description = "Convert AWS Textract JSON to PRImA PAGE XML" +readme = "README.md" +authors = [ + {name = "Arne Rümmler"}, + {email = "arne.ruemmler@gmail.com"} +] +license = {text = "Apache Software License"} +keywords = ["OCR", "METS", "PAGE-XML", "AWS"] +classifiers = [ + "Programming Language :: Python :: 3", + "Operating System :: OS Independent", + "License :: OSI Approved :: Apache Software License", + "Development Status :: 3 - Alpha", + "Environment :: Console", + "Intended Audience :: Developers", + "Intended Audience :: Education", + "Intended Audience :: Science/Research", + "Topic :: File Formats", + "Topic :: Software Development :: Libraries :: Python Modules", +] +dynamic = ["version", "dependencies"] +requires-python = ">=3.7" + +[project.urls] +homepage = "https://github.com/slub/textract2page" + +[project.scripts] +textract2page = "textract2page.cli:cli" + +[tool.setuptools.dynamic] +dependencies = {file = ["requirements.txt"]} [tool.setuptools_scm] write_to = "textract2page/_version.py" + +[[tool.mypy.overrides]] +module = "PIL.*,ocrd_models.*,ocrd_utils.*,ocrd_modelfactory" +ignore_missing_imports = true diff --git a/setup.cfg b/setup.cfg index 9078345..101ad7b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,46 +1,7 @@ -[metadata] -description = Convert AWS Textract JSON to PRImA PAGE XML -author = Arne Rümmler -author_email = arne.ruemmler@gmail.com -url = https://github.com/slub/textract2page -long_description = file: README.md -long_description_content_type = text/markdown -keywords = OCR,METS,PAGE-XML,AWS -license = Apache Software License -classifiers = - Programming Language :: Python :: 3 - Operating System :: OS Independent - License :: OSI Approved :: Apache Software License - Development Status :: 3 - Alpha - Environment :: Console - Intended Audience :: Developers - Intended Audience :: Education - Intended Audience :: Science/Research - Topic :: File Formats - Topic :: Software Development :: Libraries :: Python Modules - -[options] -python_requires = >=3.7 -install_requires = file:requirements.txt -setup_requires = wheel -packages = find: -include_package_data = False - -[options.packages.find] -include = textract2page* - -[options.entry_points] -console_scripts = - textract2page = textract2page.cli:cli - - [flake8] ignore=E501 exclude=tests/*.py -[PIL.*,ocrd_models.*,ocrd_utils.*,ocrd_modelfactory] -ignore_missing_imports = True - [codespell] skip = ./tests,./venv*,repo,build,.git,*.egg-info count =