diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | LICENSE (renamed from COPYING) | 0 | ||||
-rw-r--r-- | MANIFEST.in | 6 | ||||
-rwxr-xr-x | setup.py | 63 |
4 files changed, 72 insertions, 0 deletions
@@ -1,3 +1,6 @@ | |||
1 | *.egg-info/ | ||
1 | *.pyc | 2 | *.pyc |
3 | __pycache__ | ||
4 | /dist | ||
2 | .repopickle_* | 5 | .repopickle_* |
3 | /repoc | 6 | /repoc |
diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 00000000..8be47dd2 --- /dev/null +++ b/MANIFEST.in | |||
@@ -0,0 +1,6 @@ | |||
1 | graft docs hooks tests | ||
2 | include *.py | ||
3 | include LICENSE | ||
4 | include git_ssh | ||
5 | include repo | ||
6 | include run_tests | ||
diff --git a/setup.py b/setup.py new file mode 100755 index 00000000..e48aa303 --- /dev/null +++ b/setup.py | |||
@@ -0,0 +1,63 @@ | |||
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 | |||
17 | """Python packaging for repo.""" | ||
18 | |||
19 | from __future__ import print_function | ||
20 | |||
21 | import os | ||
22 | import setuptools | ||
23 | |||
24 | |||
25 | TOPDIR = os.path.dirname(os.path.abspath(__file__)) | ||
26 | |||
27 | |||
28 | # Rip out the first intro paragraph. | ||
29 | with open(os.path.join(TOPDIR, 'README.md')) as fp: | ||
30 | lines = fp.read().splitlines()[2:] | ||
31 | end = lines.index('') | ||
32 | long_description = ' '.join(lines[0:end]) | ||
33 | |||
34 | |||
35 | # https://packaging.python.org/tutorials/packaging-projects/ | ||
36 | setuptools.setup( | ||
37 | name='repo', | ||
38 | version='1.13.8', | ||
39 | maintainer='Various', | ||
40 | maintainer_email='repo-discuss@googlegroups.com', | ||
41 | description='Repo helps manage many Git repositories', | ||
42 | long_description=long_description, | ||
43 | long_description_content_type='text/plain', | ||
44 | url='https://gerrit.googlesource.com/git-repo/', | ||
45 | project_urls={ | ||
46 | 'Bug Tracker': 'https://bugs.chromium.org/p/gerrit/issues/list?q=component:repo', | ||
47 | }, | ||
48 | # https://pypi.org/classifiers/ | ||
49 | classifiers=[ | ||
50 | 'Development Status :: 6 - Mature', | ||
51 | 'Environment :: Console', | ||
52 | 'Intended Audience :: Developers', | ||
53 | 'License :: OSI Approved :: Apache Software License', | ||
54 | 'Natural Language :: English', | ||
55 | 'Operating System :: MacOS :: MacOS X', | ||
56 | 'Operating System :: Microsoft :: Windows :: Windows 10', | ||
57 | 'Operating System :: POSIX :: Linux', | ||
58 | 'Topic :: Software Development :: Version Control :: Git', | ||
59 | ], | ||
60 | # We support Python 2.7 and Python 3.6+. | ||
61 | python_requires='>=2.7, ' + ', '.join('!=3.%i.*' % x for x in range(0, 6)), | ||
62 | packages=['subcmds'], | ||
63 | ) | ||