forked from mhagger/git-imerge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mhagger#143 from jdufresne/setuptools
Add setup.py script to build the package using setuptools
- Loading branch information
Showing
12 changed files
with
104 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
*.egg-info/ | ||
*.pyc | ||
*.pyo | ||
.tox/ | ||
/*.html | ||
build/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
include completions/git-imerge | ||
include COPYING | ||
include t/create-test-repo | ||
include t/test-conflicted | ||
include t/test-drop | ||
include t/test-unconflicted | ||
include tox.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import errno | ||
import subprocess | ||
|
||
from setuptools import setup | ||
|
||
data_files = [] | ||
try: | ||
completionsdir = subprocess.check_output( | ||
["pkg-config", "--variable=completionsdir", "bash-completion"] | ||
) | ||
except OSError as e: | ||
if e.errno != errno.ENOENT: | ||
raise | ||
else: | ||
completionsdir = completionsdir.strip().decode('utf-8') | ||
if completionsdir: | ||
data_files.append((completionsdir, ["completions/git-imerge"])) | ||
|
||
|
||
setup( | ||
name="gitimerge", | ||
description="Incremental merge for git", | ||
url="https://github.com/mhagger/git-imerge", | ||
author="Michael Haggerty", | ||
author_email="mhagger@alum.mit.edu", | ||
license="GPLv2+", | ||
version="1.1.0", | ||
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", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[tox] | ||
envlist = py | ||
|
||
[testenv] | ||
commands = | ||
/bin/sh t/create-test-repo | ||
/bin/sh t/test-unconflicted | ||
/bin/sh t/test-conflicted | ||
/bin/sh t/test-drop |