A console script that allows you to easily update multiple git repositories at once
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

47 líneas
1.4 KiB

  1. from setuptools import setup
  2. import os
  3. import sys
  4. if sys.hexversion < 0x02070000:
  5. exit("Please upgrade to Python 2.7 or greater: <http://python.org/>.")
  6. remove_py_extension = True # install script as "gitup" instead of "gitup.py"
  7. if os.path.exists("gitup"):
  8. remove_py_extension = False
  9. else:
  10. os.rename("gitup.py", "gitup")
  11. desc = "Easily pull to multiple git repositories at once."
  12. with open('README.md') as file:
  13. long_desc = file.read()
  14. try:
  15. setup(
  16. name = "gitup",
  17. version = "0.1",
  18. scripts = ['gitup'],
  19. author = "Ben Kurtovic",
  20. author_email = "ben.kurtovic@verizon.net",
  21. description = desc,
  22. long_description = long_desc,
  23. license = "MIT License",
  24. keywords = "git repository pull update",
  25. url = "http://github.com/earwig/git-repo-updater",
  26. classifiers = ["Environment :: Console",
  27. "Intended Audience :: Developers",
  28. "License :: OSI Approved :: MIT License",
  29. "Natural Language :: English",
  30. "Operating System :: MacOS :: MacOS X",
  31. "Operating System :: POSIX :: Linux",
  32. "Programming Language :: Python",
  33. "Programming Language :: Python :: 2.7",
  34. "Topic :: Software Development :: Version Control"
  35. ]
  36. )
  37. finally:
  38. if remove_py_extension:
  39. os.rename("gitup", "gitup.py") # restore file location