setup.py 1.6 KB

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