Skip to content

Commit

Permalink
build: move all project metadata to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
henryborchers committed Nov 1, 2024
1 parent da7bc76 commit 8b6b405
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 51 deletions.
51 changes: 50 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,46 @@ requires = [
]
build-backend = "uiucprescon.build"

[project]
name = "uiucprescon.ocr"
version = "0.1.5.dev1"
classifiers = [
'Development Status :: 3 - Alpha',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
]
readme = "README.rst"
requires-python = ">=3.8"
license = { file="LICENSE"}
description = "Image to text processing using Google Tesseract"
maintainers = [
{ name="Henry Borchers", email="hborcher@illinois.edu" }
]
authors = [
{name="University Library at The University of Illinois at Urbana Champaign: Preservation Services", email="prescons@library.illinois.edu"}
]

[project.urls]
Documentation = "https://www.library.illinois.edu/dccdocs/ocr"
Download = "https://github.com/UIUCLibrary/ocr"

[tool.setuptools]
packages = [
"uiucprescon.ocr"
]
zip-safe = false

[tool.setuptools.package-data]
"uiucprescon.ocr" = ["py.typed"]

[tool.pytest.ini_options]
minversion = "6.0"
testpaths = [
"tests"
]
addopts = "--verbose"
markers =[
markers = [
"integration"
]
norecursedirs = [
Expand All @@ -25,6 +58,22 @@ junit_log_passing_tests = true
junit_family="xunit2"
bdd_features_base_dir = "tests/features/"

[tool.coverage.run]
relative_files = true
branch = true

[tool.coverage.paths]
source = "uiucprescon/"

[tool.coverage.report]
exclude_lines = [
'raise NotImplementedError'
]

[tool.coverage.html]
directory = "reports/coverage"


[tool.pylint.MASTER]
init-hook="sys.path.append('.')"

Expand Down
42 changes: 0 additions & 42 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,46 +1,4 @@
[metadata]
name = uiucprescon.ocr
version = 0.1.5.dev1
url = http://www.library.illinois.edu/dccdocs/ocr
download_url = https://github.com/UIUCLibrary/ocr
author = University Library at The University of Illinois at Urbana Champaign: Preservation Services
author_email = prescons@library.illinois.edu
description = Image to text processing using Google Tesseract
long_description = file: README.rst
long_description_content_type = text/x-rst
license = University of Illinois/NCSA Open Source License
license_files = LICENSE
maintainer = Henry Borchers
maintainer_email = hborcher@illinois.edu
classifiers =
Development Status :: 3 - Alpha
Programming Language :: Python
Programming Language :: Python :: 3
Topic :: Software Development :: Libraries :: Python Modules

[options]
python_requires = >= 3.8
zip_safe = False

[build_sphinx]
source_dir = docs/source
build_dir = build/docs
all_files = 1

[aliases]
test = pytest


[coverage:run]
relative_files = True
branch = True

[coverage:report]
exclude_lines =
raise NotImplementedError

[coverage:html]
directory = reports/coverage

[coverage:paths]
source = uiucprescon/
8 changes: 0 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,16 +177,8 @@ def locate(dep, location):
os.path.abspath(os.path.dirname(__file__))

setuptools.setup(
packages=['uiucprescon.ocr'],
install_requires=[],
test_suite='tests',
tests_require=[
'pytest',
'pytest-bdd'
],
ext_modules=[
tesseract_extension
],
package_data={"uiucprescon.ocr": ["py.typed"]},
cmdclass=cmd_class,
)

0 comments on commit 8b6b405

Please sign in to comment.