-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
327 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=61", | ||
"setuptools_scm[toml]", | ||
"wheel", | ||
] # PEP 508 specifications. | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "ocrd" | ||
authors = [{name = "Konstantin Baierer", email = "[email protected]"}] | ||
license = {text = "Apache License 2.0"} | ||
description = "OCR-D framework" | ||
requires-python = ">=3.7" | ||
dynamic = ["version", "dependencies"] | ||
|
||
[project.readme] | ||
file = "README.md" | ||
content-type = "text/markdown" | ||
|
||
[tool.setuptools.dynamic.dependencies] | ||
file = ["requirements.txt"] | ||
|
||
[project.urls] | ||
Homepage = "https://ocr-d.de" | ||
Documentation = "https://ocr-d.de/core" | ||
Repository = "https://github.com/OCR-D/core" | ||
Issues = "https://github.com/OCR-D/core/issues" | ||
|
||
[project.scripts] | ||
ocrd = "ocrd.cli:cli" | ||
ocrd-dummy = "ocrd.processor.builtin.dummy_processor:cli" | ||
|
||
[tool.setuptools] | ||
include-package-data = true | ||
|
||
[tool.setuptools.packages.find] | ||
exclude = ["tests"] # docs | ||
namespaces = false | ||
|
||
[tool.setuptools_scm] | ||
root = ".." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,16 @@ | ||
# -*- coding: utf-8 -*- | ||
from setuptools import setup, find_packages | ||
from ocrd_utils import VERSION | ||
from setuptools import setup, Command | ||
from setuptools.command.build import build as orig_build | ||
|
||
install_requires = open('requirements.txt').read().split('\n') | ||
install_requires.append('ocrd_utils == %s' % VERSION) | ||
install_requires.append('ocrd_models == %s' % VERSION) | ||
install_requires.append('ocrd_modelfactory == %s' % VERSION) | ||
install_requires.append('ocrd_validators == %s' % VERSION) | ||
install_requires.append('ocrd_network == %s' % VERSION) | ||
class build(orig_build): | ||
def finalize_options(self): | ||
vers = ' == ' + self.distribution.metadata.version | ||
self.distribution.install_requires = [ | ||
req + vers if req.startswith('ocrd') and '==' not in req else req | ||
for req in self.distribution.install_requires | ||
] | ||
orig_build.finalize_options(self) | ||
|
||
setup( | ||
name='ocrd', | ||
version=VERSION, | ||
description='OCR-D framework', | ||
long_description=open('README.md').read(), | ||
long_description_content_type='text/markdown', | ||
author='Konstantin Baierer', | ||
author_email='[email protected]', | ||
url='https://github.com/OCR-D/core', | ||
license='Apache License 2.0', | ||
packages=find_packages(exclude=('tests', 'docs')), | ||
include_package_data=True, | ||
python_requires=">=3.7", | ||
install_requires=install_requires, | ||
entry_points={ | ||
'console_scripts': [ | ||
'ocrd=ocrd.cli:cli', | ||
'ocrd-dummy=ocrd.processor.builtin.dummy_processor:cli', | ||
] | ||
}, | ||
cmdclass={"build": build} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=61", | ||
"setuptools_scm[toml]", | ||
"wheel", | ||
] # PEP 508 specifications. | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "ocrd_modelfactory" | ||
authors = [{name = "Konstantin Baierer", email = "[email protected]"}] | ||
license = {text = "Apache License 2.0"} | ||
description = "OCR-D framework - wrappers to create ocrd_model instances" | ||
requires-python = ">=3.7" | ||
dynamic = ["version", "dependencies"] | ||
|
||
[project.readme] | ||
file = "README.md" | ||
content-type = "text/markdown" | ||
|
||
[tool.setuptools.dynamic.dependencies] | ||
file = ["requirements.txt"] | ||
|
||
[project.urls] | ||
Homepage = "https://ocr-d.de" | ||
Documentation = "https://ocr-d.de/core" | ||
Repository = "https://github.com/OCR-D/core" | ||
Issues = "https://github.com/OCR-D/core/issues" | ||
|
||
[tool.setuptools] | ||
include-package-data = true | ||
|
||
[tool.setuptools.package-data] | ||
"*" = ["*.json"] # *.yml; *.xml | ||
|
||
[tool.setuptools.packages.find] | ||
namespaces = false | ||
|
||
[tool.setuptools_scm] | ||
root = ".." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
lxml | ||
ocrd_utils | ||
ocrd_models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,16 @@ | ||
# -*- coding: utf-8 -*- | ||
from setuptools import setup | ||
from setuptools import setup, Command | ||
from setuptools.command.build import build as orig_build | ||
|
||
from ocrd_utils import VERSION | ||
|
||
install_requires = open('requirements.txt').read().split('\n') | ||
install_requires.append('ocrd_utils == %s' % VERSION) | ||
install_requires.append('ocrd_models == %s' % VERSION) | ||
class build(orig_build): | ||
def finalize_options(self): | ||
vers = ' == ' + self.distribution.metadata.version | ||
self.distribution.install_requires = [ | ||
req + vers if req.startswith('ocrd') and '==' not in req else req | ||
for req in self.distribution.install_requires | ||
] | ||
orig_build.finalize_options(self) | ||
|
||
setup( | ||
name='ocrd_modelfactory', | ||
version=VERSION, | ||
description='OCR-D framework - wrappers to create ocrd_model instances', | ||
long_description=open('README.md').read(), | ||
long_description_content_type='text/markdown', | ||
author='Konstantin Baierer', | ||
author_email='[email protected]', | ||
url='https://github.com/OCR-D/core', | ||
license='Apache License 2.0', | ||
python_requires=">=3.7", | ||
install_requires=install_requires, | ||
packages=['ocrd_modelfactory'], | ||
package_data={'': ['*.json', '*.yml', '*.xml']}, | ||
keywords=['OCR', 'OCR-D'] | ||
cmdclass={"build": build} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=61", | ||
"setuptools_scm[toml]", | ||
"wheel", | ||
] # PEP 508 specifications. | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "ocrd_models" | ||
authors = [{name = "Konstantin Baierer", email = "[email protected]"}] | ||
license = {text = "Apache License 2.0"} | ||
description = "OCR-D framework - file format APIs and schemas" | ||
requires-python = ">=3.7" | ||
dynamic = ["version", "dependencies"] | ||
|
||
[project.readme] | ||
file = "README.md" | ||
content-type = "text/markdown" | ||
|
||
[tool.setuptools.dynamic.dependencies] | ||
file = ["requirements.txt"] | ||
|
||
[project.urls] | ||
Homepage = "https://ocr-d.de" | ||
Documentation = "https://ocr-d.de/core" | ||
Repository = "https://github.com/OCR-D/core" | ||
Issues = "https://github.com/OCR-D/core/issues" | ||
|
||
[tool.setuptools] | ||
include-package-data = true | ||
|
||
[tool.setuptools.package-data] | ||
"*" = ["*.json"] # *.yml; *.xml | ||
|
||
[tool.setuptools.packages.find] | ||
namespaces = false | ||
|
||
[tool.setuptools_scm] | ||
root = ".." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
lxml | ||
ocrd_utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,16 @@ | ||
# -*- coding: utf-8 -*- | ||
from setuptools import setup | ||
from setuptools import setup, Command | ||
from setuptools.command.build import build as orig_build | ||
|
||
from ocrd_utils import VERSION | ||
|
||
install_requires = open('requirements.txt').read().split('\n') | ||
install_requires.append('ocrd_utils == %s' % VERSION) | ||
class build(orig_build): | ||
def finalize_options(self): | ||
vers = ' == ' + self.distribution.metadata.version | ||
self.distribution.install_requires = [ | ||
req + vers if req.startswith('ocrd') and '==' not in req else req | ||
for req in self.distribution.install_requires | ||
] | ||
orig_build.finalize_options(self) | ||
|
||
setup( | ||
name='ocrd_models', | ||
version=VERSION, | ||
description='OCR-D framework - file format APIs and schemas', | ||
long_description=open('README.md').read(), | ||
long_description_content_type='text/markdown', | ||
author='Konstantin Baierer', | ||
author_email='[email protected]', | ||
url='https://github.com/OCR-D/core', | ||
license='Apache License 2.0', | ||
python_requires=">=3.7", | ||
install_requires=install_requires, | ||
packages=['ocrd_models'], | ||
package_data={'': ['*.json', '*.yml', '*.xml']}, | ||
keywords=['OCR', 'OCR-D'] | ||
cmdclass={"build": build} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=61", | ||
"setuptools_scm[toml]", | ||
"wheel", | ||
] # PEP 508 specifications. | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "ocrd_network" | ||
authors = [{name = "Mehmed Mustafa", email = "[email protected]"}, {name = "Jonas Schrewe"}, {name = "Triet Doan"}] | ||
license = {text = "Apache License 2.0"} | ||
description = "OCR-D framework - network" | ||
requires-python = ">=3.7" | ||
dynamic = ["version", "dependencies"] | ||
|
||
[project.readme] | ||
file = "README.md" | ||
content-type = "text/markdown" | ||
|
||
[tool.setuptools.dynamic.dependencies] | ||
file = ["requirements.txt"] | ||
|
||
[project.urls] | ||
Homepage = "https://ocr-d.de" | ||
Documentation = "https://ocr-d.de/core" | ||
Repository = "https://github.com/OCR-D/core" | ||
Issues = "https://github.com/OCR-D/core/issues" | ||
|
||
[tool.setuptools] | ||
include-package-data = false | ||
|
||
[tool.setuptools.packages.find] | ||
namespaces = false | ||
|
||
[tool.setuptools_scm] | ||
root = ".." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.