setup.py 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #!/usr/bin/env python3
  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. 'Programming Language :: Python :: 3',
  50. 'Programming Language :: Python :: 3 :: Only',
  51. 'Topic :: Software Development :: Version Control :: Git',
  52. ],
  53. python_requires='>=3.6',
  54. packages=['subcmds'],
  55. )