setup.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #!/usr/bin/env python
  2. # -*- encoding: utf-8 -*-
  3. from setuptools import setup, find_packages
  4. import os
  5. # 获取版本号
  6. version = {}
  7. with open(os.path.join("repo_sync", "version.py")) as f:
  8. exec(f.read(), version)
  9. setup(
  10. name="repo_sync",
  11. version=version.get("__version__", "0.0.1"),
  12. description="Repository synchronization tool",
  13. author="liuyuqi",
  14. author_email="liuyuqi.gov@msn.cn",
  15. url="https://github.com/jianboy/repo_sync",
  16. packages=find_packages(),
  17. install_requires=[
  18. "PyYAML",
  19. "PyQt5",
  20. "pywin32;platform_system=='Windows'",
  21. ],
  22. entry_points={
  23. "console_scripts": [
  24. "repo_sync=repo_sync:main",
  25. ],
  26. "gui_scripts": [
  27. "repo_sync_gui=main_gui:main",
  28. ],
  29. },
  30. classifiers=[
  31. "Development Status :: 4 - Beta",
  32. "Intended Audience :: Developers",
  33. "License :: OSI Approved :: MIT License",
  34. "Programming Language :: Python :: 3",
  35. "Programming Language :: Python :: 3.6",
  36. "Programming Language :: Python :: 3.7",
  37. "Programming Language :: Python :: 3.8",
  38. "Programming Language :: Python :: 3.9",
  39. ],
  40. python_requires=">=3.6",
  41. )