-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
executable file
·100 lines (93 loc) · 3.52 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#!/usr/bin/env python3
# Copyright 2019 The Android Open Source Project
#
# Copyright (C) 2020 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from setuptools import setup, find_packages
with open("README.md", "r") as fp:
lines = fp.read().splitlines()[2:]
end = lines.index('')
long_description = ' '.join(lines[0:end])
setup(
name="gitrepo",
version="2.32.2",
packages=find_packages(),
package_data={
# If any package contains *.txt or *.rst files, include them:
'repo': ['git_ssh'],
'repo.hooks': ['commit-msg', 'pre-auto-gc'],
},
# metadata for upload to PyPI
maintainer='Various',
maintainer_email='[email protected]',
description='Repo helps manage many Git repositories',
long_description=long_description,
long_description_content_type='text/plain',
license="Apache",
keywords="git repo android workflow",
url="https://gerrit.googlesource.com/git-repo/",
project_urls={
'Bug Tracker': 'https://bugs.chromium.org/p/gerrit/issues/list?q=component:Applications%3Erepo',
},
# https://pypi.org/classifiers/
classifiers=[
'Development Status :: 6 - Mature',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows :: Windows 10',
'Operating System :: POSIX :: Linux',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Software Development :: Version Control :: Git',
],
# We support Python 3.6+.
python_requires='>=3.6',
entry_points={
'console_scripts': [
'repo = repo.main:main',
],
'repo.subcmds': [
'abandon = repo.subcmds.abandon:Abandon',
'branches = repo.subcmds.branches:Branches',
'checkout = repo.subcmds.checkout:Checkout',
'cherry-pick = repo.subcmds.cherry_pick:CherryPick',
'diff = repo.subcmds.diff:Diff',
'diffmanifests = repo.subcmds.diffmanifests:Diffmanifests',
'download = repo.subcmds.download:Download',
'forall = repo.subcmds.forall:Forall',
'gitc-delete = repo.subcmds.gitc_delete:GitcDelete',
'gitc-init = repo.subcmds.gitc_init:GitcInit',
'grep = repo.subcmds.grep:Grep',
'help = repo.subcmds.help:Help',
'info = repo.subcmds.info:Info',
'init = repo.subcmds.init:Init',
'list = repo.subcmds.list:List',
'manifest = repo.subcmds.manifest:Manifest',
'overview = repo.subcmds.overview:Overview',
'prune = repo.subcmds.prune:Prune',
'rebase = repo.subcmds.rebase:Rebase',
'smartsync = repo.subcmds.smartsync:Smartsync',
'stage = repo.subcmds.stage:Stage',
'start = repo.subcmds.start:Start',
'status = repo.subcmds.status:Status',
'sync = repo.subcmds.sync:Sync',
'upload = repo.subcmds.upload:Upload',
'version = repo.subcmds.version:Version',
]
}
)