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. _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. entry_points={
  33. "console_scripts": [
  34. "match_two_images=superpoint_superglue_deployment.__main__:main",
  35. ]
  36. },
  37. )
  38. if __name__ == "__main__":
  39. main()