diff --git a/.gitignore b/.gitignore index a02bde6..9e03041 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ /transifex-client-0.10.tar.gz /transifex-client-0.13.3.tar.gz /transifex-client-0.13.4.tar.gz +/transifex-client-0.13.5.tar.gz diff --git a/sources b/sources index 6e7ea94..396744a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (transifex-client-0.13.4.tar.gz) = 171ca5231f61f7d7b9bea803b6ee1fbfd4be0cf2889a1494844d8c8ed99f63c6ce2f4c7a1c89104121b9819c7904b61304b065a2286153c51122e1aa91ad5bd3 +SHA512 (transifex-client-0.13.5.tar.gz) = 40e5131e327c0daecc35cd818968e14648064923db0493bf0e42dcef2b6ab4a770766f66f1b2f66f9c5362d68291a47e9649b57340b032081781c0a0a67f6b41 diff --git a/transifex-client-0.9-use-system-wide-backports-ssl.patch b/transifex-client-0.9-use-system-wide-backports-ssl.patch deleted file mode 100644 index 101a650..0000000 --- a/transifex-client-0.9-use-system-wide-backports-ssl.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- transifex-client-0.9-orig/txclib/web.py 2013-10-24 17:28:48.868512283 -0430 -+++ transifex-client-0.9/txclib/web.py 2013-10-24 17:30:14.349529390 -0430 -@@ -10,7 +10,7 @@ - import platform - from pkg_resources import resource_filename, resource_string - from txclib import get_version --from txclib.packages.ssl_match_hostname import match_hostname -+from backports.ssl_match_hostname import match_hostname - - - # Helper class to enable urllib2 to handle PUT/DELETE requests as well diff --git a/transifex-client-resource-creation.patch b/transifex-client-resource-creation.patch deleted file mode 100644 index 3fbbc47..0000000 --- a/transifex-client-resource-creation.patch +++ /dev/null @@ -1,37 +0,0 @@ -diff --git a/txclib/project.py b/txclib/project.py -index b5c5049..08828c6 100644 ---- a/txclib/project.py -+++ b/txclib/project.py -@@ -23,6 +23,10 @@ class ProjectNotInit(Exception): - pass - - -+class HttpNotFound(Exception): -+ pass -+ -+ - class Project(object): - """ - Represents an association between the local and remote project instances. -@@ -825,7 +829,10 @@ def do_url_request(self, api_call, multipart=False, data=None, - - r.close() - if r.status < 200 or r.status >= 400: -- raise Exception(r.data) -+ if r.status == 404: -+ raise HttpNotFound(r.data) -+ else: -+ raise Exception(r.data) - return r.data - - def _should_update_translation(self, lang, stats, local_file, force=False, -@@ -1080,6 +1087,9 @@ def _get_stats_for_resource(self): - r = self.do_url_request('resource_stats') - logger.debug("Statistics response is %s" % r) - stats = parse_json(r) -+ except HttpNotFound: -+ logger.debug("Resource not found, creating...") -+ stats = {} - except ssl.SSLError: - logger.error("Invalid SSL certificate") - raise diff --git a/transifex-client.spec b/transifex-client.spec index f7374e1..96b5a22 100644 --- a/transifex-client.spec +++ b/transifex-client.spec @@ -1,21 +1,17 @@ %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} Name: transifex-client -Version: 0.13.4 -Release: 2%{?dist} +Version: 0.13.5 +Release: 1%{?dist} Summary: Command line tool for Transifex translation management Group: Development/Languages License: GPLv2 URL: http://transifex.org Source: http://pypi.python.org/packages/source/t/transifex-client/%{name}-%{version}.tar.gz -#Patch0: transifex-client-0.9-use-system-wide-backports-ssl.patch -#Patch1: transifex-client-resource-creation.patch BuildArch: noarch Requires: python3-setuptools -#Requires: python2-backports-ssl_match_hostname -#BZ 1592062 BuildRequires: python3-devel Requires: python3 Requires: python3-urllib3 @@ -33,14 +29,11 @@ need of an elaborate UI system. %prep %setup -q -#%patch0 -p1 -#%patch1 -p1 %build %py3_build %install -rm -rf $RPM_BUILD_ROOT %py3_install %files @@ -49,6 +42,9 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/* %changelog +* Wed Oct 17 2018 Luis Bazan - 0.13.5-1 +- New upstream version + * Sat Jul 14 2018 Fedora Release Engineering - 0.13.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild