
Being a script, rebase-editor.py should be installed with the appropriate setuptools macro. Change-Id: If54772c0ee2891c5d72ffb2a636ebdf045f6dfc3
55 lines
1.8 KiB
Python
55 lines
1.8 KiB
Python
#!/usr/bin/env python
|
|
#
|
|
# Copyright (c) 2012, 2013 Hewlett-Packard Development Company, L.P.
|
|
#
|
|
# Confidential computer software. Valid license from HP required for
|
|
# possession, use or copying. Consistent with FAR 12.211 and 12.212,
|
|
# Commercial Computer Software, Computer Software Documentation, and
|
|
# Technical Data for Commercial Items are licensed to the U.S. Government
|
|
# under vendor's standard commercial license.
|
|
#
|
|
|
|
|
|
import os
|
|
from setuptools import setup, find_packages
|
|
from create_manpage import create_manpage
|
|
from ghp import version
|
|
|
|
|
|
# following function is taken from setuptools example.
|
|
# https://pypi.python.org/pypi/an_example_pypi_project (BSD)
|
|
def read(fname):
|
|
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
|
|
|
version.write_version_file()
|
|
|
|
setup(
|
|
name="hpgit",
|
|
version=version.version,
|
|
author="Darragh Bailey",
|
|
author_email="dbailey@hp.com",
|
|
description=("Tool supporting HPCloud git workflows."),
|
|
license="Proprietary",
|
|
keywords="git hpcloud workflow",
|
|
url="https://wiki.hpcloud.net/display/auto/hpgit",
|
|
scripts=['git-hp', os.path.join(os.path.dirname(__file__),
|
|
'ghp', 'scripts', 'rebase-editor.py')],
|
|
packages=find_packages(exclude=['test']),
|
|
install_requires=['GitPython'],
|
|
long_description=read('README'),
|
|
cmdclass={'create_manpage': create_manpage},
|
|
classifiers=[
|
|
"Development Status :: 2 - Pre-Alpha",
|
|
"Topic :: Utilities",
|
|
"License :: Other/Proprietary License",
|
|
],
|
|
)
|
|
|
|
try:
|
|
import argcomplete
|
|
print('Make sure to copy bash_completion/hpgit in appropriate location ' +
|
|
'(e.g. ~/.bash_completion)')
|
|
except ImportError:
|
|
print('Warning: argcomplete package is not installed, autocomplete will' +
|
|
' not work.')
|