setup.py 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import os
  2. from io import open
  3. from typing import Any, Dict
  4. from setuptools import find_packages, setup
  5. _PARENT_DIRECTORY = os.path.abspath(os.path.dirname(__file__))
  6. _PACKAGE_NAME = "superpoint_superglue_deployment"
  7. _PACKAGE_VARS: Dict[str, Any] = {}
  8. exec(open(os.path.join(_PARENT_DIRECTORY, _PACKAGE_NAME, "version.py")).read(), _PACKAGE_VARS)
  9. _LONG_DESCRIPTION = open(os.path.join(_PARENT_DIRECTORY, "README.md"), encoding="utf-8").read()
  10. _INSTALL_REQUIRES = open(os.path.join(_PARENT_DIRECTORY, "requirements.txt")).read().splitlines()
  11. _INSTALL_REQUIRES = [line for line in _INSTALL_REQUIRES if line and not line.startswith("#")]
  12. def main():
  13. setup(
  14. name=_PACKAGE_NAME,
  15. version=_PACKAGE_VARS["__version__"],
  16. description="",
  17. long_description=_LONG_DESCRIPTION,
  18. long_description_content_type="text/markdown",
  19. author="Ba Tran",
  20. url="https://github.com/xmba15/superpoint_superglue_deployment",
  21. classifiers=[
  22. "Development Status :: 3 - Alpha",
  23. "Intended Audience :: Developers",
  24. "Programming Language :: Python :: 3",
  25. "Programming Language :: Python :: 3.6",
  26. "Programming Language :: Python :: 3.7",
  27. "Programming Language :: Python :: 3.8",
  28. "Programming Language :: Python :: 3.9",
  29. ],
  30. packages=find_packages(exclude=["tests"]),
  31. install_requires=_INSTALL_REQUIRES,
  32. )
  33. if __name__ == "__main__":
  34. main()