-
Notifications
You must be signed in to change notification settings - Fork 125
/
setup.py
57 lines (52 loc) · 1.9 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
import errno
import subprocess
from setuptools import setup
with open("README.md", "r") as fh:
long_description = fh.read()
data_files = []
try:
completionsdir = subprocess.check_output(
["pkg-config", "--variable=completionsdir", "bash-completion"]
)
except OSError as e:
if e.errno != errno.ENOENT:
raise
except subprocess.CalledProcessError:
# `bash-completion` is probably not installed. Just skip it.
pass
else:
completionsdir = completionsdir.strip().decode('utf-8')
if completionsdir:
data_files.append((completionsdir, ["completions/git-imerge"]))
setup(
name="git-imerge",
description="Incremental merge and rebase for Git",
url="https://github.com/mhagger/git-imerge",
version="1.2.0",
author="Michael Haggerty",
author_email="[email protected]",
long_description=long_description,
long_description_content_type="text/markdown",
license="GPLv2+",
py_modules=["gitimerge"],
data_files=data_files,
entry_points={"console_scripts": ["git-imerge = gitimerge:climain"]},
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Environment :: Console",
"Intended Audience :: Developers",
"Topic :: Software Development :: Version Control :: Git",
],
)