From 9f349131a6c05d90431d8c51b7272d5a6cf48fd1 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 21 Oct 2021 14:03:27 -0700 Subject: basic setup.py python package stuff --- pyproject.toml | 8 ++++++++ setup.py | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 pyproject.toml create mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..dc65b2d --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,8 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta:__legacy__" + +#[tool.pytest.ini_options] +#python_files = tests/*.py grobid_tei_xml/*.py +#log_level = INFO + diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..88783ed --- /dev/null +++ b/setup.py @@ -0,0 +1,33 @@ +import setuptools + +from grobid_tei_xml import __version__ + +with open("README.md", "r") as fh: + long_description = fh.read() + + setuptools.setup( + name="grobid_tei_xml", + version=__version__, + author="Bryan Newbold", + author_email="bnewbold@archive.org", + description="parser and transforms for GROBID-flavor TEI-XML", + long_description=long_description, + long_description_content_type="text/markdown", + url="https://gitlab.com/internetarchive/grobid_tei_xml", + packages=setuptools.find_packages(), + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + ], + python_requires=">=3.8", + install_requires=[], + extras_require={"dev": [ + #"isort", + "mypy", + "pylint", + "pytest", + "pytest-cov", + "yapf", + ],}, + ) -- cgit v1.2.3