|
- #!/usr/bin/env python
-
- from setuptools import setup
-
- exec(open("version.py").read())
-
- def read_requirements(fps):
- reqs = []
- for fp in fps:
- with open(fp) as f:
- reqs.extend(f.readlines())
-
- return reqs
-
- setup(
- name="mindocr",
- author="MindSpore Ecosystem",
- author_email="mindspore-ecosystem@example.com",
- url="https://github.com/mindspore-lab/mindocr",
- project_urls={
- "Sources": "https://github.com/mindspore-lab/mindocr",
- "Issue Tracker": "https://github.com/mindspore-lab/mindocr/issues",
- },
- description="A toolbox of OCR models and algorithms based on MindSpore.",
- license="Apache Software License 2.0",
- include_package_data=True,
- package_dir={"mindocr": "mindocr", "mindocr.tools": "tools", "mindocr.deploy": "deploy"},
- entry_points={"console_scripts": ["mindocr=mindocr.deploy.mx_infer.infer_pipeline:main"]},
- install_requires=read_requirements(['requirements.txt']),
- python_requires=">=3.7",
- classifiers=[
- "Development Status :: 2 - Pre-Alpha",
- "Intended Audience :: Developers",
- "License :: OSI Approved :: Apache Software License",
- "Natural Language :: English",
- "Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.7",
- "Programming Language :: Python :: 3.8",
- "Programming Language :: Python :: 3.9",
- ],
- test_suite="tests",
- tests_require=[
- "pytest",
- ],
- version=__version__,
- zip_safe=False,
- )
|