Mike Frysinger | 08eb63c | 2020-12-01 13:21:06 -0500 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
Mike Frysinger | 5b3a57c | 2019-12-01 21:56:07 -0500 | [diff] [blame] | 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 | |
| 16 | """Python packaging for repo.""" |
| 17 | |
Mike Frysinger | 5b3a57c | 2019-12-01 21:56:07 -0500 | [diff] [blame] | 18 | import os |
| 19 | import setuptools |
| 20 | |
| 21 | |
| 22 | TOPDIR = os.path.dirname(os.path.abspath(__file__)) |
| 23 | |
| 24 | |
| 25 | # Rip out the first intro paragraph. |
| 26 | with open(os.path.join(TOPDIR, 'README.md')) as fp: |
| 27 | lines = fp.read().splitlines()[2:] |
| 28 | end = lines.index('') |
| 29 | long_description = ' '.join(lines[0:end]) |
| 30 | |
| 31 | |
| 32 | # https://packaging.python.org/tutorials/packaging-projects/ |
| 33 | setuptools.setup( |
| 34 | name='repo', |
Mike Frysinger | 74317d3 | 2021-03-10 23:38:37 -0500 | [diff] [blame] | 35 | version='2', |
Mike Frysinger | 5b3a57c | 2019-12-01 21:56:07 -0500 | [diff] [blame] | 36 | maintainer='Various', |
| 37 | maintainer_email='repo-discuss@googlegroups.com', |
| 38 | description='Repo helps manage many Git repositories', |
| 39 | long_description=long_description, |
| 40 | long_description_content_type='text/plain', |
| 41 | url='https://gerrit.googlesource.com/git-repo/', |
| 42 | project_urls={ |
| 43 | 'Bug Tracker': 'https://bugs.chromium.org/p/gerrit/issues/list?q=component:repo', |
| 44 | }, |
| 45 | # https://pypi.org/classifiers/ |
| 46 | classifiers=[ |
| 47 | 'Development Status :: 6 - Mature', |
| 48 | 'Environment :: Console', |
| 49 | 'Intended Audience :: Developers', |
| 50 | 'License :: OSI Approved :: Apache Software License', |
| 51 | 'Natural Language :: English', |
| 52 | 'Operating System :: MacOS :: MacOS X', |
| 53 | 'Operating System :: Microsoft :: Windows :: Windows 10', |
| 54 | 'Operating System :: POSIX :: Linux', |
Mike Frysinger | 08eb63c | 2020-12-01 13:21:06 -0500 | [diff] [blame] | 55 | 'Programming Language :: Python :: 3', |
| 56 | 'Programming Language :: Python :: 3 :: Only', |
Mike Frysinger | 5b3a57c | 2019-12-01 21:56:07 -0500 | [diff] [blame] | 57 | 'Topic :: Software Development :: Version Control :: Git', |
| 58 | ], |
Peter Kjellerstedt | a3b2edf | 2021-04-15 01:32:40 +0200 | [diff] [blame] | 59 | python_requires='>=3.6', |
Mike Frysinger | 5b3a57c | 2019-12-01 21:56:07 -0500 | [diff] [blame] | 60 | packages=['subcmds'], |
| 61 | ) |