-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
352 additions
and
312 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,7 +1,10 @@ | ||
language: python | ||
python: | ||
- "2.4" | ||
- "2.5" | ||
- "2.6" | ||
- "2.7" | ||
# command to install dependencies | ||
install: "pip install -r requirements.txt" | ||
install: "pip install -r requirements-dev.txt" | ||
# command to run tests | ||
script: make flake8 test |
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,13 @@ | ||
-r requirements.txt | ||
flake8==2.4.1 | ||
funcsigs==0.4 | ||
linecache2==1.0.0 | ||
mccabe==0.3.1 | ||
MiniMock==1.2.8 | ||
mock==1.3.0 | ||
pbr==1.8.1 | ||
pep8==1.5.7 | ||
pyflakes==0.8.1 | ||
six==1.10.0 | ||
traceback2==1.4.0 | ||
unittest2==1.1.0 |
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,12 +1,3 @@ | ||
flake8==2.4.1 | ||
funcsigs==0.4 | ||
httplib2==0.9.2 | ||
ipdb==0.8.1 | ||
mccabe==0.3.1 | ||
MiniMock==1.2.8 | ||
mock==1.3.0 | ||
pbr==1.8.1 | ||
pep8==1.5.7 | ||
polib==1.0.7 | ||
pyflakes==0.8.1 | ||
six==1.10.0 | ||
httplib2 | ||
polib | ||
ordereddict |
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 |
---|---|---|
|
@@ -3,11 +3,15 @@ | |
Build script for zanata-python-client | ||
""" | ||
from setuptools import setup, find_packages | ||
import sys | ||
import os | ||
import subprocess | ||
|
||
|
||
def read(fname): | ||
return (open(os.path.join(os.path.dirname(__file__), fname), 'rb') | ||
.read().decode('utf-8')) | ||
|
||
|
||
def get_client_version(): | ||
number = "" | ||
path = os.path.dirname(os.path.realpath(__file__)) | ||
|
@@ -41,18 +45,16 @@ def get_client_version(): | |
|
||
return number | ||
|
||
assert sys.version_info >= (2, 7), ( | ||
"Only Python 2.7 and later is supported by zanata-python-client.") | ||
requirements = read('requirements.txt').splitlines() + [ | ||
'setuptools', | ||
] | ||
|
||
setup( | ||
name="zanata-python-client", | ||
version=get_client_version(), | ||
packages=find_packages(), | ||
include_package_data=True, | ||
install_requires=[ | ||
'polib', | ||
'httplib2' | ||
], | ||
install_requires=requirements, | ||
description="Zanata Python Client.", | ||
author='Jian Ni, Ding-Yi Chen, Anish Patil', | ||
author_email='[email protected], [email protected], [email protected]', | ||
|
@@ -81,6 +83,5 @@ def get_client_version(): | |
'License :: OSI Approved :: GNU Lesser General Public License (LGPL)', | ||
'Operating System :: Unix', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2.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
Oops, something went wrong.