-
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.
Merge pull request #39 from sundeep-co-in/master
backport: python 2.6 support
- Loading branch information
Showing
33 changed files
with
356 additions
and
308 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,8 @@ | ||
language: python | ||
python: | ||
- "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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
* Wed Jan 20 2016 Sundeep Anand <[email protected]> - 1.4.2 | ||
- Python 2.6 Support | ||
|
||
* Tue Jan 12 2016 Sundeep Anand <[email protected]> - 1.4.1 | ||
- Implemented zanata init (ZNTA-780) | ||
- Bug ZNTA-853 - Crash when pushing local translations | ||
|
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 |
---|---|---|
|
@@ -7,6 +7,11 @@ | |
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__)) | ||
|
@@ -40,15 +45,16 @@ def get_client_version(): | |
|
||
return number | ||
|
||
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]', | ||
|
@@ -77,5 +83,7 @@ def get_client_version(): | |
'License :: OSI Approved :: GNU Lesser General Public License (LGPL)', | ||
'Operating System :: Unix', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2.6', | ||
'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.