Skip to content

Commit 50cbc2a

Browse files
committed
setup → pyproject (including ocrd-tool.json versioning)
1 parent 40dfad8 commit 50cbc2a

File tree

3 files changed

+59
-46
lines changed

3 files changed

+59
-46
lines changed

.dockerignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
test
2+
repo
3+
dist
4+
build
5+
*.egg-info
6+
*.h5
7+
venv*
8+
env*

pyproject.toml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0.0", "wheel", "setuptools-ocrd"]
3+
4+
[project]
5+
name = "ocrd_keraslm"
6+
authors = [
7+
{name = "Robert Sachunsky", email = "[email protected]"},
8+
{name = "Konstantin Baierer", email = "[email protected]"},
9+
{name = "Kay-Michael Würzner", email = "[email protected]"},
10+
]
11+
description = "character-level language modelling in Keras for OCR-D"
12+
readme = "README.md"
13+
license.text = "Apache-2.0"
14+
requires-python = ">=3.8"
15+
16+
dynamic = ["version", "dependencies"]
17+
18+
# https://pypi.org/classifiers/
19+
classifiers = [
20+
"Development Status :: 5 - Production/Stable",
21+
"Environment :: Console",
22+
"Intended Audience :: Science/Research",
23+
"Intended Audience :: Other Audience",
24+
"License :: OSI Approved :: Apache Software License",
25+
"Programming Language :: Python :: 3",
26+
"Programming Language :: Python :: 3 :: Only",
27+
"Topic :: Text Processing",
28+
]
29+
30+
[project.scripts]
31+
keraslm-rate = "ocrd_keraslm.scripts.run:cli"
32+
ocrd-keraslm-rate = "ocrd_keraslm.wrapper.cli:ocrd_keraslm_rate"
33+
34+
[project.urls]
35+
Homepage = "https://github.com/OCR-D/ocrd_keraslm"
36+
Repository = "https://github.com/OCR-D/ocrd_keraslm.git"
37+
38+
[project.optional-dependencies]
39+
plotting = ["sklearn", "matplotlib", "adjusttext"]
40+
41+
[tool.setuptools.dynamic]
42+
dependencies = {file = ["requirements.txt"]}
43+
optional-dependencies.test = {file = ["requirements_test.txt"]}
44+
45+
[tool.setuptools]
46+
packages = ["ocrd_keraslm", "ocrd_keraslm.lib", "ocrd_keraslm.scripts", "ocrd_keraslm.wrapper"]
47+
package-data = {"*" = ["ocrd-tool.json"]}
48+
49+
[tool.coverage.run]
50+
branch = true
51+
source = ["ocrd_keraslm"]

setup.py

-46
This file was deleted.

0 commit comments

Comments
 (0)