-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate to pyproject.toml for world peace
- Loading branch information
Showing
7 changed files
with
92 additions
and
91 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 was deleted.
Oops, something went wrong.
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,3 +1,82 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "mindee" | ||
authors = [ | ||
{name = "Mindee", email = "[email protected]"}, | ||
] | ||
dynamic = ["version"] | ||
description = "Mindee API helper library for Python" | ||
readme = "README.md" | ||
license = {file = "LICENSE"} | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Operating System :: OS Independent", | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Topic :: Software Development :: Libraries", | ||
"License :: OSI Approved :: MIT License", | ||
] | ||
|
||
requires-python = ">=3.7" | ||
|
||
dependencies = [ | ||
"pypdfium2>=4.0,<5", | ||
"Pillow>=9.5.0", | ||
"pytz>=2023.3", | ||
"requests~=2.32.3", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://www.mindee.com" | ||
Documentation = "https://developers.mindee.com/docs/python-sdk" | ||
Repository = "https://github.com/publicMindee/mindee-api-python" | ||
Issues = "https://github.com/mindee/mindee-api-python/issues" | ||
Changelog = "https://github.com/mindee/mindee-api-python/blob/main/CHANGELOG.md" | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"pylint==2.17.7", | ||
"setuptools==51.3.3", | ||
"pre-commit~=3.5.0", | ||
"types-pytz>=2023.3", | ||
"types-requests~=2.31", | ||
"toml~=0.10.2", | ||
"pytest~=7.4", | ||
"pytest-cov~=4.1", | ||
] | ||
docs = [ | ||
"sphinx~=5.3", | ||
"sphinx_rtd_theme~=1.1", | ||
"sphinx-autodoc-typehints~=1.20", | ||
] | ||
build = [ | ||
"build", | ||
"twine", | ||
] | ||
|
||
[project.scripts] | ||
mindee = "mindee.cli:main" | ||
|
||
|
||
[tool.setuptools] | ||
packages = ["mindee", ] | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "mindee.versions.__version__"} | ||
|
||
[tool.setuptools.package-data] | ||
"mindee" = ["py.typed"] | ||
|
||
|
||
[tool.black] | ||
line-length = 88 | ||
target-version = [ | ||
|
@@ -26,6 +105,7 @@ warn_unreachable = true | |
module = "pypdfium2.*" | ||
ignore_missing_imports = true | ||
|
||
|
||
[tool.pylic] | ||
safe_licenses = [ | ||
"Apache Software License", | ||
|
@@ -36,6 +116,7 @@ safe_licenses = [ | |
"Historical Permission Notice and Disclaimer (HPND)" | ||
] | ||
|
||
|
||
[tool.pytest.ini_options] | ||
addopts = "--pyargs --cov mindee --cov-report term:skip-covered --cov-report term-missing -m 'not regression and not integration'" | ||
python_files = "test*.py" | ||
|
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