setup.py 2.1 KB

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