Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch from setup.cfg to pyproject.toml-only #14

Merged
merged 1 commit into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 35 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]"}
]
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
39 changes: 0 additions & 39 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,46 +1,7 @@
[metadata]
description = Convert AWS Textract JSON to PRImA PAGE XML
author = Arne Rümmler
author_email = [email protected]
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 =
Expand Down