Browse Source
Add a setup.cfg and setup.py and fill in those files so that gertty can be installed easily. Adjust gertty.py to have a main function that can be referenced as a console entrypoint during installation. Also adjusted a bunch of imports that were failing after installation occurred (but now they should not fail since they correctly reference the gertty module namespace). Change-Id: I532ced51583b26300ba9a2efb97f8e41bc69ec8dchanges/91/391991/1
8 changed files with 79 additions and 21 deletions
@ -0,0 +1,32 @@
|
||||
[metadata] |
||||
name = gertty |
||||
summary = Gertty is a console-based interface to the Gerrit Code Review system. |
||||
description-file = |
||||
README.rst |
||||
author = OpenStack |
||||
author-email = openstack-dev@lists.openstack.org |
||||
home-page = http://www.openstack.org/ |
||||
classifier = |
||||
Topic :: Utilities |
||||
Intended Audience :: Developers |
||||
Intended Audience :: Information Technology |
||||
Intended Audience :: System Administrators |
||||
License :: OSI Approved :: Apache Software License |
||||
Operating System :: POSIX :: Linux |
||||
Programming Language :: Python |
||||
Programming Language :: Python :: 2 |
||||
Programming Language :: Python :: 2.7 |
||||
Programming Language :: Python :: 2.6 |
||||
keywords = gerrit console urwid review |
||||
|
||||
[global] |
||||
setup-hooks = |
||||
pbr.hooks.setup_hook |
||||
|
||||
[files] |
||||
packages = |
||||
gertty |
||||
|
||||
[entry_points] |
||||
console_scripts = |
||||
gertty = gertty.app:main |
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env python |
||||
# |
||||
# 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. |
||||
|
||||
import setuptools |
||||
|
||||
setuptools.setup( |
||||
setup_requires=['pbr'], |
||||
pbr=True) |
Loading…
Reference in new issue