Python 3 library and CLI application for SporeStack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.3 KiB

  1. #!/usr/bin/env python
  2. from setuptools import setup
  3. # Not sure how necessary this is. Would be nice to just
  4. # import .sporestackv2.__version__
  5. VERSION = None
  6. with open("sporestackv2/version.py") as f:
  7. for line in f:
  8. if line.startswith("__version__"):
  9. VERSION = line.replace('"', "").split("=")[1].strip()
  10. break
  11. if VERSION is None:
  12. raise ValueError("__version__ not found in __init__.py")
  13. DOWNLOAD_HOST = "https://git.sporestack.com"
  14. DOWNLOAD_URL = f"{DOWNLOAD_HOST}/SporeStack/sporestack-python/archive/{VERSION}.tar.gz"
  15. DESCRIPTION = "SporeStack.com library and client. Launch servers with Bitcoin."
  16. KEYWORDS = [
  17. "bitcoin",
  18. "bitcoincash",
  19. "bitcoinsv",
  20. "monero",
  21. "servers",
  22. "infrastructure",
  23. "vps",
  24. "virtual private server",
  25. ]
  26. setup(
  27. python_requires=">=3.6",
  28. name="sporestack",
  29. version=VERSION,
  30. author="SporeStack",
  31. author_email="admin@sporestack.com",
  32. description=DESCRIPTION,
  33. keywords=KEYWORDS,
  34. license="Unlicense",
  35. url="https://sporestack.com/",
  36. download_url=DOWNLOAD_URL,
  37. packages=["sporestackv2"],
  38. install_requires=[
  39. "pyqrcode",
  40. "requests[socks]>=2.22.0",
  41. "aaargh",
  42. "walkingliberty",
  43. "sshpubkeys",
  44. ],
  45. entry_points={"console_scripts": ["sporestackv2 = sporestackv2.client:main"]},
  46. )