setup.py 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #!/usr/bin/env python3
  2. # Copyright 2019 The Android Open Source Project
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the 'License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. """Python packaging for repo."""
  16. import os
  17. import setuptools
  18. TOPDIR = os.path.dirname(os.path.abspath(__file__))
  19. # Rip out the first intro paragraph.
  20. with open(os.path.join(TOPDIR, 'README.md')) as fp:
  21. lines = fp.read().splitlines()[2:]
  22. end = lines.index('')
  23. long_description = ' '.join(lines[0:end])
  24. # https://packaging.python.org/tutorials/packaging-projects/
  25. setuptools.setup(
  26. name='repo',
  27. version='1.13.8',
  28. maintainer='Various',
  29. maintainer_email='repo-discuss@googlegroups.com',
  30. description='Repo helps manage many Git repositories',
  31. long_description=long_description,
  32. long_description_content_type='text/plain',
  33. url='https://gerrit.googlesource.com/git-repo/',
  34. project_urls={
  35. 'Bug Tracker': 'https://bugs.chromium.org/p/gerrit/issues/list?q=component:repo',
  36. },
  37. # https://pypi.org/classifiers/
  38. classifiers=[
  39. 'Development Status :: 6 - Mature',
  40. 'Environment :: Console',
  41. 'Intended Audience :: Developers',
  42. 'License :: OSI Approved :: Apache Software License',
  43. 'Natural Language :: English',
  44. 'Operating System :: MacOS :: MacOS X',
  45. 'Operating System :: Microsoft :: Windows :: Windows 10',
  46. 'Operating System :: POSIX :: Linux',
  47. 'Programming Language :: Python :: 3',
  48. 'Programming Language :: Python :: 3 :: Only',
  49. 'Topic :: Software Development :: Version Control :: Git',
  50. ],
  51. python_requires='>=3.6',
  52. packages=['subcmds'],
  53. )