openSUSE Commits
Threads by month
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
November 2015
- 1 participants
- 1310 discussions
Hello community,
here is the log from the commit of package python3-SPARQLWrapper for openSUSE:Factory checked in at 2015-11-02 12:55:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-SPARQLWrapper (Old)
and /work/SRC/openSUSE:Factory/.python3-SPARQLWrapper.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-SPARQLWrapper"
Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-SPARQLWrapper/python3-SPARQLWrapper.changes 2015-01-25 21:14:57.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python3-SPARQLWrapper.new/python3-SPARQLWrapper.changes 2015-11-02 12:55:45.000000000 +0100
@@ -1,0 +2,12 @@
+Sun Nov 1 19:50:24 UTC 2015 - arun(a)gmx.de
+
+- update to version 1.7.1:
+ * Fixed build in Python 3.x (issue #57)
+
+- changes from version 1.7.0:
+ * Added support to HTTP Digest Auth Support (issue #45)
+ * Improved print_results showing language tag (xml:lang) and
+ datatype
+ * Updated to RDFLib 4.x
+
+-------------------------------------------------------------------
Old:
----
SPARQLWrapper-1.6.4.tar.gz
New:
----
SPARQLWrapper-1.7.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python3-SPARQLWrapper.spec ++++++
--- /var/tmp/diff_new_pack.AAVfEG/_old 2015-11-02 12:55:45.000000000 +0100
+++ /var/tmp/diff_new_pack.AAVfEG/_new 2015-11-02 12:55:45.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python3-SPARQLWrapper
#
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: python3-SPARQLWrapper
-Version: 1.6.4
+Version: 1.7.1
Release: 0
Summary: SPARQL Endpoint interface to Python
License: W3C
++++++ SPARQLWrapper-1.6.4.tar.gz -> SPARQLWrapper-1.7.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SPARQLWrapper-1.6.4/AUTHORS.md new/SPARQLWrapper-1.7.1/AUTHORS.md
--- old/SPARQLWrapper-1.6.4/AUTHORS.md 2014-08-26 13:44:16.000000000 +0200
+++ new/SPARQLWrapper-1.7.1/AUTHORS.md 2015-10-29 12:55:50.000000000 +0100
@@ -19,3 +19,6 @@
* Benjamin Cogrel ([@bcogrel](http://github.com/bcogrel)): standard query types
* Urs Holzer ([@uholzer](http://github.com/uholzer)): features, patches and testing
* Alf Lervåg ([@alf](http://github.com/alf)): setup patch
+* Nolan Nichols ([@nicholsn](http://github.com/nicholsn)): http disgest auth support
+* Kevin Turner ([@keturn](https://github.com/keturn)): `SmartWrapper.Value.__repr__()` implementation
+* Marcelo Jorge Vieira ([@marcelometal](https://github.com/marcelometal)): typos
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SPARQLWrapper-1.6.4/PKG-INFO new/SPARQLWrapper-1.7.1/PKG-INFO
--- old/SPARQLWrapper-1.6.4/PKG-INFO 2014-08-26 14:55:08.000000000 +0200
+++ new/SPARQLWrapper-1.7.1/PKG-INFO 2015-10-30 09:01:34.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: SPARQLWrapper
-Version: 1.6.4
+Version: 1.7.1
Summary: SPARQL Endpoint interface to Python
Home-page: http://rdflib.github.io/sparqlwrapper
Author: Ivan Herman, Sergio Fernández, Carlos Tejo Alonso, Alexey Zakhlestin
@@ -17,3 +17,4 @@
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Requires: rdflib
+Requires: pycurl
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SPARQLWrapper-1.6.4/README.md new/SPARQLWrapper-1.7.1/README.md
--- old/SPARQLWrapper-1.6.4/README.md 2014-08-26 11:07:11.000000000 +0200
+++ new/SPARQLWrapper-1.7.1/README.md 2015-10-29 12:55:50.000000000 +0100
@@ -4,11 +4,11 @@
The distribution contains:
-* `SPARQLWrapper`: the Python library. You should copy the directory somewhere into your PYTHONPATH. Alternatively, you can also run the disutils scrips:
+* `SPARQLWrapper`: the Python library. You should copy the directory somewhere into your PYTHONPATH. Alternatively, you can also run the distutils scripts:
python setup.py install
* `test`: some unit tests
-* `script`: some scripts to run the library against some SPARQL end-points.
+* `script`: some scripts to run the library against some SPARQL endpoints.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SPARQLWrapper-1.6.4/SPARQLWrapper/SmartWrapper.py new/SPARQLWrapper-1.7.1/SPARQLWrapper/SmartWrapper.py
--- old/SPARQLWrapper-1.6.4/SPARQLWrapper/SmartWrapper.py 2014-08-26 11:07:11.000000000 +0200
+++ new/SPARQLWrapper-1.7.1/SPARQLWrapper/SmartWrapper.py 2015-10-29 12:55:50.000000000 +0100
@@ -61,6 +61,10 @@
except :
pass
+ def __repr__(self):
+ cls = self.__class__.__name__
+ return "%s(%s:%r)" % (cls, self.type, self.value)
+
######################################################################################
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SPARQLWrapper-1.6.4/SPARQLWrapper/Wrapper.py new/SPARQLWrapper-1.7.1/SPARQLWrapper/Wrapper.py
--- old/SPARQLWrapper-1.6.4/SPARQLWrapper/Wrapper.py 2014-08-26 11:07:11.000000000 +0200
+++ new/SPARQLWrapper-1.7.1/SPARQLWrapper/Wrapper.py 2015-10-29 12:56:08.000000000 +0100
@@ -42,7 +42,7 @@
JSON = "json"
JSONLD = "json-ld"
XML = "xml"
-TURTLE = "n3"
+TURTLE = "turtle"
N3 = "n3"
RDF = "rdf"
_allowedFormats = [JSON, XML, TURTLE, N3, RDF]
@@ -52,6 +52,11 @@
GET = "GET"
_allowedRequests = [POST, GET]
+# Possible HTTP Authentication methods
+BASIC = "BASIC"
+DIGEST = "DIGEST"
+_allowedAuth = [BASIC, DIGEST]
+
# Possible SPARQL/SPARUL query type
SELECT = "SELECT"
CONSTRUCT = "CONSTRUCT"
@@ -155,6 +160,7 @@
self.agent = agent
self.user = None
self.passwd = None
+ self.http_auth = BASIC
self._defaultGraph = defaultGraph
if returnFormat in _allowedFormats:
@@ -314,6 +320,20 @@
self.user = user
self.passwd = passwd
+ def setHTTPAuth(self, auth):
+ """
+ Set the HTTP Authentication type (Basic or Digest)
+ @param auth: auth type
+ @type auth: string
+ """
+ if not isinstance(auth, str):
+ raise TypeError('setHTTPAuth takes a string')
+ elif auth.upper() in _allowedAuth:
+ self.http_auth = auth.upper()
+ else:
+ valid_types = ", ".join(_allowedAuth)
+ raise ValueError("Value should be one of {0}".format(valid_types))
+
def setQuery(self, query):
"""
Set the SPARQL query text. Note: no check is done on the validity of the query
@@ -485,8 +505,20 @@
request.add_header("User-Agent", self.agent)
request.add_header("Accept", self._getAcceptHeader())
if self.user and self.passwd:
- credentials = "%s:%s" % (self.user, self.passwd)
- request.add_header("Authorization", "Basic %s" % base64.encodestring(credentials.encode('utf-8')))
+ if self.http_auth == BASIC:
+ credentials = "%s:%s" % (self.user, self.passwd)
+ request.add_header("Authorization", "Basic %s" % base64.b64encode(credentials.encode('utf-8')))
+ elif self.http_auth == DIGEST:
+ realm = "SPARQL"
+ pwd_mgr = urllib2.HTTPPasswordMgr()
+ pwd_mgr.add_password(realm, uri, self.user, self.passwd)
+ opener = urllib2.build_opener()
+ opener.add_handler(urllib2.HTTPDigestAuthHandler(pwd_mgr))
+ urllib2.install_opener(opener)
+ else:
+ valid_types = ", ".join(_allowedAuth)
+ raise NotImplementedError("Expecting one of: {0}, but received: {1}".format(valid_types,
+ self.http_auth))
return request
@@ -725,7 +757,8 @@
for result in results["results"]["bindings"] :
index = 0
for var in results["head"]["vars"] :
- print result[var]["value"].ljust(width[index]),"|",
+ result = self.__get_prettyprint_string_sparql_var_result(result[var])
+ print result.ljust(width[index]),"|",
index += 1
print
@@ -736,6 +769,17 @@
for result in results["results"]["bindings"] :
index = 0
for var in results["head"]["vars"] :
- width[index] = max(width[index], len(result[var]["value"]))
+ result = self.__get_prettyprint_string_sparql_var_result(result[var])
+ width[index] = max(width[index], len(result))
index =+ 1
return width
+
+ def __get_prettyprint_string_sparql_var_result(self, result):
+ value = result["value"]
+ lang = result.get("xml:lang", None)
+ datatype = result.get("datatype",None)
+ if lang is not None:
+ value+="@"+lang
+ if datatype is not None:
+ value+=" ["+datatype+"]"
+ return value
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SPARQLWrapper-1.6.4/SPARQLWrapper/__init__.py new/SPARQLWrapper-1.7.1/SPARQLWrapper/__init__.py
--- old/SPARQLWrapper-1.6.4/SPARQLWrapper/__init__.py 2014-08-26 14:53:58.000000000 +0200
+++ new/SPARQLWrapper-1.7.1/SPARQLWrapper/__init__.py 2015-10-30 09:00:37.000000000 +0100
@@ -163,7 +163,7 @@
@requires: U{RDFLib<http://rdflib.net>} package.
"""
-__version__ = "1.6.4"
+__version__ = "1.7.1"
"""The version of SPARQLWrapper"""
__authors__ = "Ivan Herman, Sergio Fernández, Carlos Tejo Alonso, Alexey Zakhlestin"
@@ -178,7 +178,7 @@
__contact__ = "rdflib-dev(a)googlegroups.com"
"""Mail list to contact to other people RDFLib and SPARQLWrappers folks and developers"""
-__date__ = "2014-08-26"
+__date__ = "2014-10-01"
"""Last update"""
__agent__ = "sparqlwrapper %s (rdflib.github.io/sparqlwrapper)" % __version__
@@ -189,6 +189,7 @@
from Wrapper import GET, POST
from Wrapper import SELECT, CONSTRUCT, ASK, DESCRIBE, INSERT, DELETE
from Wrapper import URLENCODED, POSTDIRECTLY
+from Wrapper import BASIC, DIGEST
from SmartWrapper import SPARQLWrapper2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SPARQLWrapper-1.6.4/SPARQLWrapper.egg-info/PKG-INFO new/SPARQLWrapper-1.7.1/SPARQLWrapper.egg-info/PKG-INFO
--- old/SPARQLWrapper-1.6.4/SPARQLWrapper.egg-info/PKG-INFO 2014-08-26 14:54:57.000000000 +0200
+++ new/SPARQLWrapper-1.7.1/SPARQLWrapper.egg-info/PKG-INFO 2015-10-30 09:01:27.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: SPARQLWrapper
-Version: 1.6.4
+Version: 1.7.1
Summary: SPARQL Endpoint interface to Python
Home-page: http://rdflib.github.io/sparqlwrapper
Author: Ivan Herman, Sergio Fernández, Carlos Tejo Alonso, Alexey Zakhlestin
@@ -17,3 +17,4 @@
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Requires: rdflib
+Requires: pycurl
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SPARQLWrapper-1.6.4/SPARQLWrapper.egg-info/requires.txt new/SPARQLWrapper-1.7.1/SPARQLWrapper.egg-info/requires.txt
--- old/SPARQLWrapper-1.6.4/SPARQLWrapper.egg-info/requires.txt 2014-08-26 14:54:57.000000000 +0200
+++ new/SPARQLWrapper-1.7.1/SPARQLWrapper.egg-info/requires.txt 2015-10-30 09:01:27.000000000 +0100
@@ -1 +1,2 @@
-rdflib >= 2.4.2
\ No newline at end of file
+rdflib >= 4.0
+pycurl >= 7.19.5.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SPARQLWrapper-1.6.4/setup.py new/SPARQLWrapper-1.7.1/setup.py
--- old/SPARQLWrapper-1.6.4/setup.py 2014-08-26 13:43:26.000000000 +0200
+++ new/SPARQLWrapper-1.7.1/setup.py 2015-10-30 08:45:12.000000000 +0100
@@ -14,7 +14,7 @@
import six
py3 = six.PY3
except:
- py3 = sys.version_info[0] >= 3
+ py3 = sys.version_info[0] >= 3
# grouping requires
_requires = []
@@ -22,7 +22,11 @@
# rdflib
_requires.append('rdflib')
-_install_requires.append('rdflib >= 2.4.2')
+_install_requires.append('rdflib >= 4.0')
+
+# 7.19.5.1
+_requires.append('pycurl')
+_install_requires.append('pycurl >= 7.19.5.1')
# simplejson
if sys.version_info[0:2] < (2, 6):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SPARQLWrapper-1.6.4/test/wrapper_test.py new/SPARQLWrapper-1.7.1/test/wrapper_test.py
--- old/SPARQLWrapper-1.6.4/test/wrapper_test.py 2014-08-26 11:07:11.000000000 +0200
+++ new/SPARQLWrapper-1.7.1/test/wrapper_test.py 2015-10-29 12:55:50.000000000 +0100
@@ -7,6 +7,7 @@
logging.basicConfig()
import unittest
+import urllib2
from urlparse import urlparse
from urllib2 import Request
@@ -25,6 +26,7 @@
from SPARQLWrapper import SPARQLWrapper
from SPARQLWrapper import XML, GET, POST, JSON, JSONLD, N3, TURTLE, RDF, SELECT, INSERT
from SPARQLWrapper import URLENCODED, POSTDIRECTLY
+from SPARQLWrapper import BASIC, DIGEST
from SPARQLWrapper.Wrapper import QueryResult, QueryBadFormed, EndPointNotFound, EndPointInternalError
@@ -63,8 +65,28 @@
raise TypeError
# DONE
+class TestCase(unittest.TestCase):
-class SPARQLWrapper_Test(unittest.TestCase):
+ def assertIsInstance(self, obj, cls, msg=None, *args, **kwargs):
+ """Python < v2.7 compatibility. Assert 'obj' is instance of 'cls'"""
+ try:
+ f = super(TestCase, self).assertIsInstance
+ except AttributeError:
+ self.assertTrue(isinstance(obj, cls), *args, **kwargs)
+ else:
+ f(obj, cls, *args, **kwargs)
+
+ def assertIsNone(self, obj, msg=None, *args, **kwargs):
+ """Python < v2.7 compatibility. Assert 'obj' is None"""
+ try:
+ f = super(TestCase, self).assertIsNone
+ except AttributeError:
+ self.assertEqual(obj, None, *args, **kwargs)
+ else:
+ f(obj, *args, **kwargs)
+
+
+class SPARQLWrapper_Test(TestCase):
@staticmethod
def _get_request(wrapper):
@@ -208,7 +230,29 @@
self.wrapper.setCredentials('login', 'password')
request = self._get_request(self.wrapper)
self.assertTrue(request.has_header('Authorization'))
- # TODO: test for header-value using some external decoder implementation
+
+ # expected header for login:password
+ self.assertEqual("Basic bG9naW46cGFzc3dvcmQ=", request.get_header('Authorization'))
+
+ def testSetHTTPAuth(self):
+ self.assertRaises(TypeError, self.wrapper.setHTTPAuth, 123)
+
+ self.wrapper.setCredentials('login', 'password')
+ request = self._get_request(self.wrapper)
+ self.assertTrue(request.has_header('Authorization'))
+ self.assertIsNone(urllib2._opener)
+
+ self.wrapper.setHTTPAuth(DIGEST)
+ self.assertIsNone(urllib2._opener)
+ request = self._get_request(self.wrapper)
+ self.assertFalse(request.has_header('Authorization'))
+ self.assertEqual(self.wrapper.http_auth, DIGEST)
+ self.assertIsInstance(urllib2._opener, urllib2.OpenerDirector)
+
+ self.assertRaises(ValueError, self.wrapper.setHTTPAuth, 'OAuth')
+
+ self.wrapper.http_auth = "OAuth"
+ self.assertRaises(NotImplementedError, self._get_request, self.wrapper)
def testSetQuery(self):
self.wrapper.setQuery('PREFIX example: <http://example.org/INSERT/> SELECT * WHERE {?s ?p ?v}')
1
0
Hello community,
here is the log from the commit of package python3-SQLAlchemy for openSUSE:Factory checked in at 2015-11-02 12:55:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-SQLAlchemy (Old)
and /work/SRC/openSUSE:Factory/.python3-SQLAlchemy.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-SQLAlchemy"
Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-SQLAlchemy/python3-SQLAlchemy.changes 2015-10-06 13:27:37.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python3-SQLAlchemy.new/python3-SQLAlchemy.changes 2015-11-02 12:55:43.000000000 +0100
@@ -1,0 +2,6 @@
+Sun Nov 1 18:23:56 UTC 2015 - arun(a)gmx.de
+
+- update to version 1.0.9:
+ * see changelog at http://docs.sqlalchemy.org/en/latest/changelog/changelog_10.html#change-1.0…
+
+-------------------------------------------------------------------
Old:
----
SQLAlchemy-1.0.8.tar.gz
New:
----
SQLAlchemy-1.0.9.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python3-SQLAlchemy.spec ++++++
--- /var/tmp/diff_new_pack.meYKrq/_old 2015-11-02 12:55:44.000000000 +0100
+++ /var/tmp/diff_new_pack.meYKrq/_new 2015-11-02 12:55:44.000000000 +0100
@@ -17,7 +17,7 @@
Name: python3-SQLAlchemy
-Version: 1.0.8
+Version: 1.0.9
Release: 0
Url: http://www.sqlalchemy.org
Summary: Database Abstraction Library
++++++ SQLAlchemy-1.0.8.tar.gz -> SQLAlchemy-1.0.9.tar.gz ++++++
++++ 17178 lines of diff (skipped)
1
0
Hello community,
here is the log from the commit of package python3-httplib2 for openSUSE:Factory checked in at 2015-11-02 12:55:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-httplib2 (Old)
and /work/SRC/openSUSE:Factory/.python3-httplib2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-httplib2"
Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-httplib2/python3-httplib2.changes 2015-04-13 20:30:21.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python3-httplib2.new/python3-httplib2.changes 2015-11-02 12:55:41.000000000 +0100
@@ -1,0 +2,7 @@
+Sun Nov 1 18:21:47 UTC 2015 - arun(a)gmx.de
+
+- update to version 0.9.2:
+ * Fix incorrect ResponseNotReady exceptions, retry on transient
+ errors.
+
+-------------------------------------------------------------------
Old:
----
httplib2-0.9.1.tar.gz
New:
----
httplib2-0.9.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python3-httplib2.spec ++++++
--- /var/tmp/diff_new_pack.P8L5yv/_old 2015-11-02 12:55:42.000000000 +0100
+++ /var/tmp/diff_new_pack.P8L5yv/_new 2015-11-02 12:55:42.000000000 +0100
@@ -17,7 +17,7 @@
Name: python3-httplib2
-Version: 0.9.1
+Version: 0.9.2
Release: 0
Url: https://github.com/jcgregorio/httplib2
Summary: A Python HTTP client library
++++++ httplib2-0.9.1.tar.gz -> httplib2-0.9.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/httplib2-0.9.1/PKG-INFO new/httplib2-0.9.2/PKG-INFO
--- old/httplib2-0.9.1/PKG-INFO 2015-04-11 15:56:57.000000000 +0200
+++ new/httplib2-0.9.2/PKG-INFO 2015-09-28 15:55:46.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: httplib2
-Version: 0.9.1
+Version: 0.9.2
Summary: A comprehensive HTTP client library.
Home-page: https://github.com/jcgregorio/httplib2
Author: Joe Gregorio
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/httplib2-0.9.1/python2/httplib2/__init__.py new/httplib2-0.9.2/python2/httplib2/__init__.py
--- old/httplib2-0.9.1/python2/httplib2/__init__.py 2015-04-11 15:56:56.000000000 +0200
+++ new/httplib2-0.9.2/python2/httplib2/__init__.py 2015-09-28 15:55:45.000000000 +0200
@@ -22,7 +22,7 @@
"Sam Ruby",
"Louis Nyffenegger"]
__license__ = "MIT"
-__version__ = "0.9.1"
+__version__ = "0.9.2"
import re
import sys
@@ -1285,8 +1285,9 @@
err = getattr(e, 'args')[0]
else:
err = e.errno
- if err == errno.ECONNREFUSED: # Connection refused
- raise
+ if err in (errno.ENETUNREACH, errno.EADDRNOTAVAIL) and i < RETRIES:
+ continue # retry on potentially transient socket errors
+ raise
except httplib.HTTPException:
# Just because the server closed the connection doesn't apparently mean
# that the server didn't send a response.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/httplib2-0.9.1/python2/httplib2.egg-info/PKG-INFO new/httplib2-0.9.2/python2/httplib2.egg-info/PKG-INFO
--- old/httplib2-0.9.1/python2/httplib2.egg-info/PKG-INFO 2015-04-11 15:56:56.000000000 +0200
+++ new/httplib2-0.9.2/python2/httplib2.egg-info/PKG-INFO 2015-09-28 15:55:45.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: httplib2
-Version: 0.9.1
+Version: 0.9.2
Summary: A comprehensive HTTP client library.
Home-page: https://github.com/jcgregorio/httplib2
Author: Joe Gregorio
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/httplib2-0.9.1/python3/httplib2/__init__.py new/httplib2-0.9.2/python3/httplib2/__init__.py
--- old/httplib2-0.9.1/python3/httplib2/__init__.py 2015-04-11 15:56:56.000000000 +0200
+++ new/httplib2-0.9.2/python3/httplib2/__init__.py 2015-09-28 15:55:45.000000000 +0200
@@ -24,7 +24,7 @@
"Louis Nyffenegger",
"Mark Pilgrim"]
__license__ = "MIT"
-__version__ = "0.9.1"
+__version__ = "0.9.2"
import re
import sys
@@ -994,8 +994,9 @@
raise ServerNotFoundError("Unable to find the server at %s" % conn.host)
except socket.error as e:
errno_ = (e.args[0].errno if isinstance(e.args[0], socket.error) else e.errno)
- if errno_ == errno.ECONNREFUSED: # Connection refused
- raise
+ if errno_ in (errno.ENETUNREACH, errno.EADDRNOTAVAIL) and i < RETRIES:
+ continue # retry on potentially transient errors
+ raise
except http.client.HTTPException:
if conn.sock is None:
if i < RETRIES-1:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/httplib2-0.9.1/setup.py new/httplib2-0.9.2/setup.py
--- old/httplib2-0.9.1/setup.py 2015-04-11 15:56:56.000000000 +0200
+++ new/httplib2-0.9.2/setup.py 2015-09-28 15:55:45.000000000 +0200
@@ -5,7 +5,7 @@
import sys
pkgdir = {'': 'python%s' % sys.version_info[0]}
-VERSION = '0.9.1'
+VERSION = '0.9.2'
setup(name='httplib2',
version=VERSION,
1
0
Hello community,
here is the log from the commit of package python3-cssutils for openSUSE:Factory checked in at 2015-11-02 12:55:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-cssutils (Old)
and /work/SRC/openSUSE:Factory/.python3-cssutils.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-cssutils"
Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-cssutils/python3-cssutils.changes 2015-01-20 12:33:03.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python3-cssutils.new/python3-cssutils.changes 2015-11-02 12:55:40.000000000 +0100
@@ -1,0 +2,38 @@
+Sun Nov 1 17:36:41 UTC 2015 - arun(a)gmx.de
+
+- specfile:
+ * moved from zip to tar.gz
+
+- update to version 1.0.1:
+ * Fix bad octal escape on python 3.5
+ * Update setup.py to use pbr < 1.7.0
+ * Create a Property with parent to make _isValidating work propertly
+ and remove
+
+- changes from version 1.0:
+ * EXPERIMENTAL: Variable references may have a fallback value now
+ (as implemented in Firefox 29). It is available as
+ CSSVariable.fallback and example are:
+ bottom: var(b);
+ color: var(theme-colour-1, rgb(14,14,14));
+ left: var(L, 1px);
+ z-index: var(L, 1);
+ top: var(T, calc( 2 * 1px ));
+ background: var(U, url(example.png));
+ border-color: var(C, #f00)
+ * FEATURE: (issue #37) Implemented parsing of CSSCalc
+ values. General syntax is checked but not if operators in calc are
+ actually the right kind like DIMENSION * DIMENSION. Also Values
+ using calc do not validate in cssutils but are actually valid.
+ * FIXED issue #20 and #35 (Test fail CSSParser.parseUrl() error with
+ Python 3.3)
+ * FIXED issue #21: (almost all) deprecation warning in Py 3.3 fixed.
+ * FIXED issue #30 (Test failed)
+ * FIXED issue #33 (well kinda): Added that cssutils is not
+ threadsafe!
+ * FIXED issue #34: More complext MediaQueries should be parsable
+ now. A few slight changes in behavior are: xml.dom.SyntaxErr
+ raised instead of xml.dom.InvalidCharacterErr for an unknown media
+ type removed handheld media type special case (for old Opera).
+
+-------------------------------------------------------------------
Old:
----
cssutils-1.0.zip
New:
----
cssutils-1.0.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python3-cssutils.spec ++++++
--- /var/tmp/diff_new_pack.GTEDKz/_old 2015-11-02 12:55:41.000000000 +0100
+++ /var/tmp/diff_new_pack.GTEDKz/_new 2015-11-02 12:55:41.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python3-cssutils
#
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,21 +17,16 @@
Name: python3-cssutils
-Version: 1.0
+Version: 1.0.1
Release: 0
Url: http://cthedot.de/cssutils/
Summary: A CSS Cascading Style Sheets library for Python
License: LGPL-3.0+
Group: Development/Languages/Python
-Source: http://pypi.python.org/packages/source/c/cssutils/cssutils-%{version}.zip
+Source: http://pypi.python.org/packages/source/c/cssutils/cssutils-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildRequires: python3
-# this is needed for openSUSE <= 12.2
-BuildRequires: python3-2to3
BuildRequires: python3-devel
-BuildRequires: python3-distribute
-BuildRequires: unzip
-Requires: python3
+BuildRequires: python3-setuptools
BuildArch: noarch
%description
1
0
Hello community,
here is the log from the commit of package python-qt5 for openSUSE:Factory checked in at 2015-11-02 12:55:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-qt5 (Old)
and /work/SRC/openSUSE:Factory/.python-qt5.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-qt5"
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-qt5/python-qt5.changes 2015-10-06 13:26:51.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-qt5.new/python-qt5.changes 2015-11-02 12:55:38.000000000 +0100
@@ -1,0 +2,9 @@
+Fri Oct 30 18:17:37 UTC 2015 - termim(a)gmail.com
+
+- Update to 5.5.1
+ * added support for Qt v5.5.1
+ * added the --disable option to configure.py
+ * implemented __matmul__ and __imatmul__ for QMatrix4x4 and
+ QTransform.
+
+-------------------------------------------------------------------
python3-qt5.changes: same change
Old:
----
PyQt-gpl-5.5.tar.gz
New:
----
PyQt-gpl-5.5.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-qt5.spec ++++++
--- /var/tmp/diff_new_pack.NGYztl/_old 2015-11-02 12:55:39.000000000 +0100
+++ /var/tmp/diff_new_pack.NGYztl/_new 2015-11-02 12:55:39.000000000 +0100
@@ -17,13 +17,13 @@
Name: python-qt5
-Version: 5.5
+Version: 5.5.1
Release: 0
Summary: PyQt - python bindings for Qt 5
License: SUSE-GPL-2.0-with-FLOSS-exception or GPL-3.0 or SUSE-NonFree
Group: Development/Libraries/Python
Url: http://www.riverbankcomputing.com/software/pyqt/intro
-Source: http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.5/PyQt-gpl-%{versio…
+Source: http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.5.1/PyQt-gpl-%{vers…
Source99: %{name}-rpmlintrc
# PATCH-FIX-OPENSUSE: DIsable RPATH
Patch1: disable-rpaths.diff
python3-qt5.spec: same change
++++++ PyQt-gpl-5.5.tar.gz -> PyQt-gpl-5.5.1.tar.gz ++++++
++++ 79318 lines of diff (skipped)
++++++ fix_qreal_check.diff ++++++
--- /var/tmp/diff_new_pack.NGYztl/_old 2015-11-02 12:55:40.000000000 +0100
+++ /var/tmp/diff_new_pack.NGYztl/_new 2015-11-02 12:55:40.000000000 +0100
@@ -5,7 +5,7 @@
--- a/configure.py
+++ b/configure.py
-@@ -670,9 +670,8 @@
+@@ -676,9 +676,8 @@
#if QT_VERSION < 0x050200
// This is the test used in qglobal.h in Qt prior to v5.2. In v5.2 and later
// qreal is always double.
@@ -16,4 +16,5 @@
+ out << "PyQt_qreal_double\\n";
#endif
- return 0;
+ #if defined(QT_NO_PROCESS)
+
1
0
Hello community,
here is the log from the commit of package debootstrap for openSUSE:Factory checked in at 2015-11-02 12:55:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/debootstrap (Old)
and /work/SRC/openSUSE:Factory/.debootstrap.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "debootstrap"
Changes:
--------
--- /work/SRC/openSUSE:Factory/debootstrap/debootstrap.changes 2015-08-05 19:14:52.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.debootstrap.new/debootstrap.changes 2015-11-02 12:55:36.000000000 +0100
@@ -1,0 +2,7 @@
+Sat Oct 31 10:21:56 UTC 2015 - sor.alexei(a)meowr.ru
+
+- Update to 1.0.73:
+ * Generate a deburis file with (package, version, uri) tuples,
+ similar to the existing debpaths.
+
+-------------------------------------------------------------------
Old:
----
debootstrap_1.0.72.tar.gz
New:
----
debootstrap_1.0.73.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ debootstrap.spec ++++++
--- /var/tmp/diff_new_pack.iIVM4j/_old 2015-11-02 12:55:36.000000000 +0100
+++ /var/tmp/diff_new_pack.iIVM4j/_new 2015-11-02 12:55:36.000000000 +0100
@@ -18,7 +18,7 @@
Name: debootstrap
-Version: 1.0.72
+Version: 1.0.73
Release: 0
Summary: Bootstrap a basic Debian system
License: MIT
@@ -38,7 +38,7 @@
into.
%prep
-%setup -q
+%setup -q -n %{name}
%patch0 -p1
cp -f %{SOURCE1} .
++++++ debootstrap_1.0.72.tar.gz -> debootstrap_1.0.73.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/debootstrap-1.0.72/debian/changelog new/debootstrap/debian/changelog
--- old/debootstrap-1.0.72/debian/changelog 2015-07-28 15:32:20.000000000 +0200
+++ new/debootstrap/debian/changelog 2015-10-22 12:43:36.000000000 +0200
@@ -1,3 +1,10 @@
+debootstrap (1.0.73) unstable; urgency=medium
+
+ * Generate a deburis file with (package, version, uri) tuples, similar
+ to the existing debpaths.
+
+ -- Cyril Brulebois <kibi(a)debian.org> Thu, 22 Oct 2015 12:43:35 +0200
+
debootstrap (1.0.72) unstable; urgency=medium
[ Iain Lane ]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/debootstrap-1.0.72/functions new/debootstrap/functions
--- old/debootstrap-1.0.72/functions 2015-07-28 15:17:18.000000000 +0200
+++ new/debootstrap/functions 2015-10-22 12:37:53.000000000 +0200
@@ -644,6 +644,7 @@
local debdest="$($DLDEST deb "$p" "$ver" "$arc" "$m" "$fil")"
if get "$m/$fil" "$TARGET/$debdest" "$checksum" "$size"; then
dloaddebs="$(($dloaddebs + $size))"
+ echo >>$TARGET/debootstrap/deburis "$p $ver $m/$fil"
echo >>$TARGET/debootstrap/debpaths "$p $debdest"
else
warning COULDNTDL "Couldn't download package %s (ver %s arch %s)" "$p" "$ver" "$arc"
1
0
Hello community,
here is the log from the commit of package marco for openSUSE:Factory checked in at 2015-11-02 12:55:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/marco (Old)
and /work/SRC/openSUSE:Factory/.marco.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "marco"
Changes:
--------
--- /work/SRC/openSUSE:Factory/marco/marco.changes 2015-10-28 17:30:58.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.marco.new/marco.changes 2015-11-02 12:55:34.000000000 +0100
@@ -6 +6 @@
- * Fix crash with window moving in some distributions.
+ * Fix crash with window moving in some distributions (boo#953036).
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
1
0
Hello community,
here is the log from the commit of package minitube for openSUSE:Factory checked in at 2015-11-02 12:55:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/minitube (Old)
and /work/SRC/openSUSE:Factory/.minitube.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "minitube"
Changes:
--------
--- /work/SRC/openSUSE:Factory/minitube/minitube.changes 2015-07-08 06:58:49.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.minitube.new/minitube.changes 2015-11-02 12:55:32.000000000 +0100
@@ -1,0 +2,18 @@
+Sat Oct 31 10:21:56 UTC 2015 - sor.alexei(a)meowr.ru
+
+- Update to 2.5:
+ * Use Qt5 instead of Qt4.
+ * HiDPI support.
+ * Mac style overhaul: new toolbar, lighter fonts & tabs.
+ * Status Bar hidden when not needed: less clutter, more room for
+ videos.
+ * Clickable links in video description.
+ * Autoadjust window size.
+ * Smart date formatting: 3 hours ago, 1 month ago, etc.
+ * When opening the YouTube webpage the video now starts from
+ where it left in Minitube.
+ * Fix videos restarting after long pause.
+ * New and updated translations.
+- Use Qt5 instead of Qt4.
+
+-------------------------------------------------------------------
Old:
----
minitube-2.4.tar.gz
New:
----
minitube-2.5.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ minitube.spec ++++++
--- /var/tmp/diff_new_pack.YNARFU/_old 2015-11-02 12:55:32.000000000 +0100
+++ /var/tmp/diff_new_pack.YNARFU/_new 2015-11-02 12:55:32.000000000 +0100
@@ -17,14 +17,14 @@
Name: minitube
-Version: 2.4
+Version: 2.5
Release: 0
-Summary: Native Youtube Client
+Summary: Native YouTube Client
License: GPL-3.0+
Group: Productivity/Multimedia/Video/Players
Url: http://flavio.tordini.org/minitube
Source: https://github.com/flaviotordini/%{name}/archive/%{version}.tar.gz#/%{name}…
-# Manpage written by Jakob Haufe <sur5r(a)sur5r.net> for the Debian project
+# Manpage written by Jakob Haufe <sur5r(a)sur5r.net> for the Debian project.
Source1: minitube.1
# PATCH-FIX-OPENSUSE minitube-no-update-check.patch sur5r(a)sur5r.net -- Disable update check.
Patch0: %{name}-no-update-check.patch
@@ -32,16 +32,17 @@
Patch1: %{name}-fix-watchrelatedvideo-icon.patch
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
-BuildRequires: libqt4-linguist
+BuildRequires: libqt5-linguist
BuildRequires: update-desktop-files
-BuildRequires: pkgconfig(QtDBus)
-BuildRequires: pkgconfig(QtNetwork)
-BuildRequires: pkgconfig(QtScript)
-BuildRequires: pkgconfig(QtSql)
-BuildRequires: pkgconfig(QtXml)
-BuildRequires: pkgconfig(phonon)
-Requires: phonon
-Recommends: %{name}-lang = %{version}
+BuildRequires: pkgconfig(Qt5DBus)
+BuildRequires: pkgconfig(Qt5Network)
+BuildRequires: pkgconfig(Qt5Script)
+BuildRequires: pkgconfig(Qt5Sql)
+BuildRequires: pkgconfig(Qt5Widgets)
+BuildRequires: pkgconfig(Qt5Xml)
+BuildRequires: pkgconfig(phonon4qt5)
+Requires: phonon4qt5-backend
+Recommends: %{name}-lang
%description
Minitube is a native YouTube client. With it you can watch YouTube
@@ -59,18 +60,16 @@
%patch1
%build
-%{_libdir}/qt4/bin/qmake \
+%qmake5 \
"DEFINES+=APP_GOOGLE_API_KEY=AIzaSyBs1wuIgc-QDnk5u7OavF1loJVO0r89B4Y" \
- PREFIX=%{_prefix} \
- QMAKE_CFLAGS="%{optflags}" \
- QMAKE_CXXFLAGS="%{optflags}"
+ PREFIX=%{_prefix}
make %{?_smp_mflags}
%install
-make INSTALL_ROOT=%{buildroot} install
+%{qmake5_install}
install -Dm 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/%{name}.1
%suse_update_desktop_file -r %{name} AudioVideo Video Player
-%fdupes %{buildroot}%{_datadir}
+%fdupes %{buildroot}%{_datadir}/
%post
%desktop_database_post
++++++ minitube-2.4.tar.gz -> minitube-2.5.tar.gz ++++++
++++ 77378 lines of diff (skipped)
++++++ minitube-no-update-check.patch ++++++
--- /var/tmp/diff_new_pack.YNARFU/_old 2015-11-02 12:55:33.000000000 +0100
+++ /var/tmp/diff_new_pack.YNARFU/_new 2015-11-02 12:55:33.000000000 +0100
@@ -1,12 +1,12 @@
diff -aur a/src/mainwindow.cpp b/src/mainwindow.cpp
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
-@@ -207,7 +207,7 @@
+@@ -232,7 +232,7 @@ void MainWindow::lazyInit() {
- JsFunctions::instance();
+ ChannelAggregator::instance()->start();
- checkForUpdate();
+ //checkForUpdate();
- }
- void MainWindow::changeEvent(QEvent* event) {
+ initialized = true;
+ }
1
0
Hello community,
here is the log from the commit of package stm32flash for openSUSE:Factory checked in at 2015-11-02 12:55:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/stm32flash (Old)
and /work/SRC/openSUSE:Factory/.stm32flash.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "stm32flash"
Changes:
--------
--- /work/SRC/openSUSE:Factory/stm32flash/stm32flash.changes 2015-06-11 08:22:06.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.stm32flash.new/stm32flash.changes 2015-11-02 12:55:33.000000000 +0100
@@ -1,0 +2,10 @@
+Wed Oct 14 19:16:18 UTC 2015 - dmitry_r(a)opensuse.org
+
+- Restore i2c patch for released openSUSE versions
+
+-------------------------------------------------------------------
+Wed Oct 14 10:44:11 UTC 2015 - dvaleev(a)suse.com
+
+- Drop stm32flash-i2c-tools-headers-clash.patch fixed in i2c-tools
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ stm32flash.spec ++++++
--- /var/tmp/diff_new_pack.nJsXus/_old 2015-11-02 12:55:33.000000000 +0100
+++ /var/tmp/diff_new_pack.nJsXus/_new 2015-11-02 12:55:33.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package stm32flash
#
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -50,7 +50,9 @@
%prep
%setup -q -n %{name}
+%if 0%{?suse_version} < 1315 || 0%{?suse_version} == 1320
%patch -p1
+%endif
%build
make %{?_smp_mflags} CFLAGS="-O2 %{optflags}" PREFIX=%{_prefix}
1
0
Hello community,
here is the log from the commit of package python3-EasyProcess for openSUSE:Factory checked in at 2015-11-02 12:55:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-EasyProcess (Old)
and /work/SRC/openSUSE:Factory/.python3-EasyProcess.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-EasyProcess"
Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-EasyProcess/python3-EasyProcess.changes 2015-03-23 12:19:41.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python3-EasyProcess.new/python3-EasyProcess.changes 2015-11-02 12:55:30.000000000 +0100
@@ -1,0 +2,11 @@
+Sun Nov 1 05:07:01 UTC 2015 - arun(a)gmx.de
+
+- update to version 0.2.1:
+ (no changelog)
+
+- changes from version 0.2.0:
+ (no complete changelog)
+ * drop support for py32
+ * add support for py35
+
+-------------------------------------------------------------------
Old:
----
EasyProcess-0.1.9.tar.gz
New:
----
EasyProcess-0.2.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python3-EasyProcess.spec ++++++
--- /var/tmp/diff_new_pack.RZx3sn/_old 2015-11-02 12:55:31.000000000 +0100
+++ /var/tmp/diff_new_pack.RZx3sn/_new 2015-11-02 12:55:31.000000000 +0100
@@ -17,7 +17,7 @@
Name: python3-EasyProcess
-Version: 0.1.9
+Version: 0.2.1
Release: 0
Url: https://github.com/ponty/easyprocess
Summary: Easy to use python subprocess interface
++++++ EasyProcess-0.1.9.tar.gz -> EasyProcess-0.2.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.1.9/EasyProcess.egg-info/PKG-INFO new/EasyProcess-0.2.1/EasyProcess.egg-info/PKG-INFO
--- old/EasyProcess-0.1.9/EasyProcess.egg-info/PKG-INFO 2015-03-19 21:50:05.000000000 +0100
+++ new/EasyProcess-0.2.1/EasyProcess.egg-info/PKG-INFO 2015-10-30 09:34:46.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: EasyProcess
-Version: 0.1.9
+Version: 0.2.1
Summary: Easy to use python subprocess interface.
Home-page: https://github.com/ponty/easyprocess
Author: ponty
@@ -10,9 +10,10 @@
Links:
* home: https://github.com/ponty/EasyProcess
- * documentation: http://ponty.github.com/EasyProcess
+ * documentation: http://EasyProcess.readthedocs.org
+ * PYPI: https://pypi.python.org/pypi/EasyProcess
- |Travis| |Coveralls| |Latest Version| |Supported Python versions| |License| |Downloads| |Code Health|
+ |Travis| |Coveralls| |Latest Version| |Supported Python versions| |License| |Downloads| |Code Health| |Documentation|
Features:
- layer on top of subprocess_ module
@@ -29,11 +30,8 @@
- stdout/stderr is set only after the subprocess has finished
- stop() does not kill whole subprocess tree
- unicode support
- - supported python versions: 2.6, 2.7, 3.2, 3.3, 3.4
+ - supported python versions: 2.6, 2.7, 3.3, 3.4, 3.5
- Known problems:
- - none
-
Similar projects:
* execute (http://pypi.python.org/pypi/execute)
* commandwrapper (http://pypi.python.org/pypi/commandwrapper)
@@ -61,8 +59,8 @@
# as root
pip install EasyProcess
- Ubuntu
- ------
+ Ubuntu 14.04
+ ------------
::
sudo apt-get install python-pip
@@ -76,23 +74,180 @@
pip uninstall EasyProcess
- .. _setuptools: http://peak.telecommunity.com/DevCenter/EasyInstall
+ Usage
+ =====
+
+ Simple example
+ --------------
+
+ Example program::
+
+ #-- include('examples/hello.py')--#
+ from easyprocess import EasyProcess
+ import sys
+
+ s = EasyProcess([sys.executable, '-c', 'print "hello"']).call().stdout
+ print(s)
+ #-#
+
+ Output::
+
+ #-- sh('python -m easyprocess.examples.hello')--#
+ hello
+ #-#
+
+
+ General
+ -------
+
+ The command can be a string list or a concatenated string::
+
+ #-- include('examples/cmd.py')--#
+ from easyprocess import EasyProcess
+
+ print('-- Run program, wait for it to complete, get stdout (command is string):')
+ s=EasyProcess('python -c "print 3"').call().stdout
+ print(s)
+
+ print('-- Run program, wait for it to complete, get stdout (command is list):')
+ s=EasyProcess(['python','-c','print 3']).call().stdout
+ print(s)
+
+ print('-- Run program, wait for it to complete, get stderr:')
+ s=EasyProcess('python --version').call().stderr
+ print(s)
+
+ print('-- Run program, wait for it to complete, get return code:')
+ s=EasyProcess('python --version').call().return_code
+ print(s)
+
+ print('-- Run program, wait 1 second, stop it, get stdout:')
+ s=EasyProcess('ping localhost').start().sleep(1).stop().stdout
+ print(s)
+
+ #-#
+
+ Output::
+
+ #-- sh('python -m easyprocess.examples.cmd')--#
+ -- Run program, wait for it to complete, get stdout (command is string):
+ 3
+ -- Run program, wait for it to complete, get stdout (command is list):
+ 3
+ -- Run program, wait for it to complete, get stderr:
+ Python 2.7.6
+ -- Run program, wait for it to complete, get return code:
+ 0
+ -- Run program, wait 1 second, stop it, get stdout:
+ PING localhost (127.0.0.1) 56(84) bytes of data.
+ 64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.017 ms
+ 64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.034 ms
+ #-#
+
+ Shell commands
+ --------------
+
+ Shell commands are not supported.
+
+ .. warning::
+
+ ``echo`` is a shell command on Windows (there is no echo.exe),
+ but it is a program on Linux
+
+ return_code
+ -----------
+
+ :attr:`EasyProcess.return_code` is None until
+ :func:`EasyProcess.stop` or :func:`EasyProcess.wait`
+ is called.
+
+ With
+ ----
+
+ By using :keyword:`with` statement the process is started
+ and stopped automatically::
+
+ from easyprocess import EasyProcess
+ with EasyProcess('ping 127.0.0.1') as proc: # start()
+ # communicate with proc
+ pass
+ # stopped
+
+ Equivalent with::
+
+ from easyprocess import EasyProcess
+ proc = EasyProcess('ping 127.0.0.1').start()
+ try:
+ # communicate with proc
+ pass
+ finally:
+ proc.stop()
+
+
+ Timeout
+ -------
+
+ This was implemented with "daemon thread".
+
+ "The entire Python program exits when only daemon threads are left."
+ http://docs.python.org/library/threading.html::
+
+ #-- include('examples/timeout.py')--#
+ from easyprocess import EasyProcess
+
+ s = EasyProcess('ping localhost').call(timeout=2).stdout
+ print(s)
+ #-#
+
+ Output::
+
+ #-- sh('python -m easyprocess.examples.timeout')--#
+ PING localhost (127.0.0.1) 56(84) bytes of data.
+ 64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.018 ms
+ 64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.037 ms
+ 64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.025 ms
+ #-#
+
+
+ Replacing existing functions
+ ----------------------------
+
+ Replacing os.system::
+
+ retcode = os.system("ls -l")
+ ==>
+ p = EasyProcess("ls -l").call()
+ retcode = p.return_code
+ print p.stdout
+
+ Replacing subprocess.call::
+
+ retcode = subprocess.call(["ls", "-l"])
+ ==>
+ p = EasyProcess(["ls", "-l"]).call()
+ retcode = p.return_code
+ print p.stdout
+
+
.. _pip: http://pip.openplans.org/
.. _subprocess: http://docs.python.org/library/subprocess.html
+
.. |Travis| image:: http://img.shields.io/travis/ponty/EasyProcess.svg
:target: https://travis-ci.org/ponty/EasyProcess/
.. |Coveralls| image:: http://img.shields.io/coveralls/ponty/EasyProcess/master.svg
:target: https://coveralls.io/r/ponty/EasyProcess/
- .. |Latest Version| image:: https://pypip.in/version/EasyProcess/badge.svg?style=flat
+ .. |Latest Version| image:: https://img.shields.io/pypi/v/EasyProcess.svg
:target: https://pypi.python.org/pypi/EasyProcess/
- .. |Supported Python versions| image:: https://pypip.in/py_versions/EasyProcess/badge.svg?style=flat
+ .. |Supported Python versions| image:: https://img.shields.io/pypi/pyversions/EasyProcess.svg
:target: https://pypi.python.org/pypi/EasyProcess/
- .. |License| image:: https://pypip.in/license/EasyProcess/badge.svg?style=flat
+ .. |License| image:: https://img.shields.io/pypi/l/EasyProcess.svg
:target: https://pypi.python.org/pypi/EasyProcess/
- .. |Downloads| image:: https://pypip.in/download/EasyProcess/badge.svg?style=flat
+ .. |Downloads| image:: https://img.shields.io/pypi/dm/EasyProcess.svg
:target: https://pypi.python.org/pypi/EasyProcess/
.. |Code Health| image:: https://landscape.io/github/ponty/EasyProcess/master/landscape.svg?style=fl…
:target: https://landscape.io/github/ponty/EasyProcess/master
+ .. |Documentation| image:: https://readthedocs.org/projects/pyscreenshot/badge/?version=latest
+ :target: http://easyprocess.readthedocs.org
@@ -100,6 +255,7 @@
+
Keywords: subprocess interface
Platform: UNKNOWN
Classifier: License :: OSI Approved :: BSD License
@@ -110,6 +266,6 @@
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.1.9/EasyProcess.egg-info/SOURCES.txt new/EasyProcess-0.2.1/EasyProcess.egg-info/SOURCES.txt
--- old/EasyProcess-0.1.9/EasyProcess.egg-info/SOURCES.txt 2015-03-19 21:50:05.000000000 +0100
+++ new/EasyProcess-0.2.1/EasyProcess.egg-info/SOURCES.txt 2015-10-30 09:34:46.000000000 +0100
@@ -1,7 +1,6 @@
LICENSE.txt
MANIFEST.in
README.rst
-TODO
pavement.py
setup.py
EasyProcess.egg-info/PKG-INFO
@@ -11,12 +10,15 @@
docs/api.rst
docs/conf.py
docs/index.rst
-docs/links.rst
-docs/readme.rst
-docs/usage.rst
+docs/api/easyprocess.examples.rst
+docs/api/easyprocess.rst
+docs/api/modules.rst
easyprocess/__init__.py
easyprocess/about.py
easyprocess/unicodeutil.py
easyprocess/examples/__init__.py
+easyprocess/examples/cmd.py
+easyprocess/examples/hello.py
easyprocess/examples/log.py
+easyprocess/examples/timeout.py
easyprocess/examples/ver.py
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.1.9/PKG-INFO new/EasyProcess-0.2.1/PKG-INFO
--- old/EasyProcess-0.1.9/PKG-INFO 2015-03-19 21:50:05.000000000 +0100
+++ new/EasyProcess-0.2.1/PKG-INFO 2015-10-30 09:34:46.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: EasyProcess
-Version: 0.1.9
+Version: 0.2.1
Summary: Easy to use python subprocess interface.
Home-page: https://github.com/ponty/easyprocess
Author: ponty
@@ -10,9 +10,10 @@
Links:
* home: https://github.com/ponty/EasyProcess
- * documentation: http://ponty.github.com/EasyProcess
+ * documentation: http://EasyProcess.readthedocs.org
+ * PYPI: https://pypi.python.org/pypi/EasyProcess
- |Travis| |Coveralls| |Latest Version| |Supported Python versions| |License| |Downloads| |Code Health|
+ |Travis| |Coveralls| |Latest Version| |Supported Python versions| |License| |Downloads| |Code Health| |Documentation|
Features:
- layer on top of subprocess_ module
@@ -29,11 +30,8 @@
- stdout/stderr is set only after the subprocess has finished
- stop() does not kill whole subprocess tree
- unicode support
- - supported python versions: 2.6, 2.7, 3.2, 3.3, 3.4
+ - supported python versions: 2.6, 2.7, 3.3, 3.4, 3.5
- Known problems:
- - none
-
Similar projects:
* execute (http://pypi.python.org/pypi/execute)
* commandwrapper (http://pypi.python.org/pypi/commandwrapper)
@@ -61,8 +59,8 @@
# as root
pip install EasyProcess
- Ubuntu
- ------
+ Ubuntu 14.04
+ ------------
::
sudo apt-get install python-pip
@@ -76,23 +74,180 @@
pip uninstall EasyProcess
- .. _setuptools: http://peak.telecommunity.com/DevCenter/EasyInstall
+ Usage
+ =====
+
+ Simple example
+ --------------
+
+ Example program::
+
+ #-- include('examples/hello.py')--#
+ from easyprocess import EasyProcess
+ import sys
+
+ s = EasyProcess([sys.executable, '-c', 'print "hello"']).call().stdout
+ print(s)
+ #-#
+
+ Output::
+
+ #-- sh('python -m easyprocess.examples.hello')--#
+ hello
+ #-#
+
+
+ General
+ -------
+
+ The command can be a string list or a concatenated string::
+
+ #-- include('examples/cmd.py')--#
+ from easyprocess import EasyProcess
+
+ print('-- Run program, wait for it to complete, get stdout (command is string):')
+ s=EasyProcess('python -c "print 3"').call().stdout
+ print(s)
+
+ print('-- Run program, wait for it to complete, get stdout (command is list):')
+ s=EasyProcess(['python','-c','print 3']).call().stdout
+ print(s)
+
+ print('-- Run program, wait for it to complete, get stderr:')
+ s=EasyProcess('python --version').call().stderr
+ print(s)
+
+ print('-- Run program, wait for it to complete, get return code:')
+ s=EasyProcess('python --version').call().return_code
+ print(s)
+
+ print('-- Run program, wait 1 second, stop it, get stdout:')
+ s=EasyProcess('ping localhost').start().sleep(1).stop().stdout
+ print(s)
+
+ #-#
+
+ Output::
+
+ #-- sh('python -m easyprocess.examples.cmd')--#
+ -- Run program, wait for it to complete, get stdout (command is string):
+ 3
+ -- Run program, wait for it to complete, get stdout (command is list):
+ 3
+ -- Run program, wait for it to complete, get stderr:
+ Python 2.7.6
+ -- Run program, wait for it to complete, get return code:
+ 0
+ -- Run program, wait 1 second, stop it, get stdout:
+ PING localhost (127.0.0.1) 56(84) bytes of data.
+ 64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.017 ms
+ 64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.034 ms
+ #-#
+
+ Shell commands
+ --------------
+
+ Shell commands are not supported.
+
+ .. warning::
+
+ ``echo`` is a shell command on Windows (there is no echo.exe),
+ but it is a program on Linux
+
+ return_code
+ -----------
+
+ :attr:`EasyProcess.return_code` is None until
+ :func:`EasyProcess.stop` or :func:`EasyProcess.wait`
+ is called.
+
+ With
+ ----
+
+ By using :keyword:`with` statement the process is started
+ and stopped automatically::
+
+ from easyprocess import EasyProcess
+ with EasyProcess('ping 127.0.0.1') as proc: # start()
+ # communicate with proc
+ pass
+ # stopped
+
+ Equivalent with::
+
+ from easyprocess import EasyProcess
+ proc = EasyProcess('ping 127.0.0.1').start()
+ try:
+ # communicate with proc
+ pass
+ finally:
+ proc.stop()
+
+
+ Timeout
+ -------
+
+ This was implemented with "daemon thread".
+
+ "The entire Python program exits when only daemon threads are left."
+ http://docs.python.org/library/threading.html::
+
+ #-- include('examples/timeout.py')--#
+ from easyprocess import EasyProcess
+
+ s = EasyProcess('ping localhost').call(timeout=2).stdout
+ print(s)
+ #-#
+
+ Output::
+
+ #-- sh('python -m easyprocess.examples.timeout')--#
+ PING localhost (127.0.0.1) 56(84) bytes of data.
+ 64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.018 ms
+ 64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.037 ms
+ 64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.025 ms
+ #-#
+
+
+ Replacing existing functions
+ ----------------------------
+
+ Replacing os.system::
+
+ retcode = os.system("ls -l")
+ ==>
+ p = EasyProcess("ls -l").call()
+ retcode = p.return_code
+ print p.stdout
+
+ Replacing subprocess.call::
+
+ retcode = subprocess.call(["ls", "-l"])
+ ==>
+ p = EasyProcess(["ls", "-l"]).call()
+ retcode = p.return_code
+ print p.stdout
+
+
.. _pip: http://pip.openplans.org/
.. _subprocess: http://docs.python.org/library/subprocess.html
+
.. |Travis| image:: http://img.shields.io/travis/ponty/EasyProcess.svg
:target: https://travis-ci.org/ponty/EasyProcess/
.. |Coveralls| image:: http://img.shields.io/coveralls/ponty/EasyProcess/master.svg
:target: https://coveralls.io/r/ponty/EasyProcess/
- .. |Latest Version| image:: https://pypip.in/version/EasyProcess/badge.svg?style=flat
+ .. |Latest Version| image:: https://img.shields.io/pypi/v/EasyProcess.svg
:target: https://pypi.python.org/pypi/EasyProcess/
- .. |Supported Python versions| image:: https://pypip.in/py_versions/EasyProcess/badge.svg?style=flat
+ .. |Supported Python versions| image:: https://img.shields.io/pypi/pyversions/EasyProcess.svg
:target: https://pypi.python.org/pypi/EasyProcess/
- .. |License| image:: https://pypip.in/license/EasyProcess/badge.svg?style=flat
+ .. |License| image:: https://img.shields.io/pypi/l/EasyProcess.svg
:target: https://pypi.python.org/pypi/EasyProcess/
- .. |Downloads| image:: https://pypip.in/download/EasyProcess/badge.svg?style=flat
+ .. |Downloads| image:: https://img.shields.io/pypi/dm/EasyProcess.svg
:target: https://pypi.python.org/pypi/EasyProcess/
.. |Code Health| image:: https://landscape.io/github/ponty/EasyProcess/master/landscape.svg?style=fl…
:target: https://landscape.io/github/ponty/EasyProcess/master
+ .. |Documentation| image:: https://readthedocs.org/projects/pyscreenshot/badge/?version=latest
+ :target: http://easyprocess.readthedocs.org
@@ -100,6 +255,7 @@
+
Keywords: subprocess interface
Platform: UNKNOWN
Classifier: License :: OSI Approved :: BSD License
@@ -110,6 +266,6 @@
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.1.9/README.rst new/EasyProcess-0.2.1/README.rst
--- old/EasyProcess-0.1.9/README.rst 2015-03-19 20:36:07.000000000 +0100
+++ new/EasyProcess-0.2.1/README.rst 2015-10-30 09:32:54.000000000 +0100
@@ -2,9 +2,10 @@
Links:
* home: https://github.com/ponty/EasyProcess
- * documentation: http://ponty.github.com/EasyProcess
+ * documentation: http://EasyProcess.readthedocs.org
+ * PYPI: https://pypi.python.org/pypi/EasyProcess
-|Travis| |Coveralls| |Latest Version| |Supported Python versions| |License| |Downloads| |Code Health|
+|Travis| |Coveralls| |Latest Version| |Supported Python versions| |License| |Downloads| |Code Health| |Documentation|
Features:
- layer on top of subprocess_ module
@@ -21,11 +22,8 @@
- stdout/stderr is set only after the subprocess has finished
- stop() does not kill whole subprocess tree
- unicode support
- - supported python versions: 2.6, 2.7, 3.2, 3.3, 3.4
+ - supported python versions: 2.6, 2.7, 3.3, 3.4, 3.5
-Known problems:
- - none
-
Similar projects:
* execute (http://pypi.python.org/pypi/execute)
* commandwrapper (http://pypi.python.org/pypi/commandwrapper)
@@ -53,8 +51,8 @@
# as root
pip install EasyProcess
-Ubuntu
-------
+Ubuntu 14.04
+------------
::
sudo apt-get install python-pip
@@ -68,27 +66,184 @@
pip uninstall EasyProcess
-.. _setuptools: http://peak.telecommunity.com/DevCenter/EasyInstall
+Usage
+=====
+
+Simple example
+--------------
+
+Example program::
+
+ #-- include('examples/hello.py')--#
+ from easyprocess import EasyProcess
+ import sys
+
+ s = EasyProcess([sys.executable, '-c', 'print "hello"']).call().stdout
+ print(s)
+ #-#
+
+Output::
+
+ #-- sh('python -m easyprocess.examples.hello')--#
+ hello
+ #-#
+
+
+General
+-------
+
+The command can be a string list or a concatenated string::
+
+ #-- include('examples/cmd.py')--#
+ from easyprocess import EasyProcess
+
+ print('-- Run program, wait for it to complete, get stdout (command is string):')
+ s=EasyProcess('python -c "print 3"').call().stdout
+ print(s)
+
+ print('-- Run program, wait for it to complete, get stdout (command is list):')
+ s=EasyProcess(['python','-c','print 3']).call().stdout
+ print(s)
+
+ print('-- Run program, wait for it to complete, get stderr:')
+ s=EasyProcess('python --version').call().stderr
+ print(s)
+
+ print('-- Run program, wait for it to complete, get return code:')
+ s=EasyProcess('python --version').call().return_code
+ print(s)
+
+ print('-- Run program, wait 1 second, stop it, get stdout:')
+ s=EasyProcess('ping localhost').start().sleep(1).stop().stdout
+ print(s)
+
+ #-#
+
+Output::
+
+ #-- sh('python -m easyprocess.examples.cmd')--#
+ -- Run program, wait for it to complete, get stdout (command is string):
+ 3
+ -- Run program, wait for it to complete, get stdout (command is list):
+ 3
+ -- Run program, wait for it to complete, get stderr:
+ Python 2.7.6
+ -- Run program, wait for it to complete, get return code:
+ 0
+ -- Run program, wait 1 second, stop it, get stdout:
+ PING localhost (127.0.0.1) 56(84) bytes of data.
+ 64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.017 ms
+ 64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.034 ms
+ #-#
+
+Shell commands
+--------------
+
+Shell commands are not supported.
+
+.. warning::
+
+ ``echo`` is a shell command on Windows (there is no echo.exe),
+ but it is a program on Linux
+
+return_code
+-----------
+
+:attr:`EasyProcess.return_code` is None until
+:func:`EasyProcess.stop` or :func:`EasyProcess.wait`
+is called.
+
+With
+----
+
+By using :keyword:`with` statement the process is started
+and stopped automatically::
+
+ from easyprocess import EasyProcess
+ with EasyProcess('ping 127.0.0.1') as proc: # start()
+ # communicate with proc
+ pass
+ # stopped
+
+Equivalent with::
+
+ from easyprocess import EasyProcess
+ proc = EasyProcess('ping 127.0.0.1').start()
+ try:
+ # communicate with proc
+ pass
+ finally:
+ proc.stop()
+
+
+Timeout
+-------
+
+This was implemented with "daemon thread".
+
+"The entire Python program exits when only daemon threads are left."
+http://docs.python.org/library/threading.html::
+
+ #-- include('examples/timeout.py')--#
+ from easyprocess import EasyProcess
+
+ s = EasyProcess('ping localhost').call(timeout=2).stdout
+ print(s)
+ #-#
+
+Output::
+
+ #-- sh('python -m easyprocess.examples.timeout')--#
+ PING localhost (127.0.0.1) 56(84) bytes of data.
+ 64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.018 ms
+ 64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.037 ms
+ 64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.025 ms
+ #-#
+
+
+Replacing existing functions
+----------------------------
+
+Replacing os.system::
+
+ retcode = os.system("ls -l")
+ ==>
+ p = EasyProcess("ls -l").call()
+ retcode = p.return_code
+ print p.stdout
+
+Replacing subprocess.call::
+
+ retcode = subprocess.call(["ls", "-l"])
+ ==>
+ p = EasyProcess(["ls", "-l"]).call()
+ retcode = p.return_code
+ print p.stdout
+
+
.. _pip: http://pip.openplans.org/
.. _subprocess: http://docs.python.org/library/subprocess.html
+
.. |Travis| image:: http://img.shields.io/travis/ponty/EasyProcess.svg
:target: https://travis-ci.org/ponty/EasyProcess/
.. |Coveralls| image:: http://img.shields.io/coveralls/ponty/EasyProcess/master.svg
:target: https://coveralls.io/r/ponty/EasyProcess/
-.. |Latest Version| image:: https://pypip.in/version/EasyProcess/badge.svg?style=flat
+.. |Latest Version| image:: https://img.shields.io/pypi/v/EasyProcess.svg
:target: https://pypi.python.org/pypi/EasyProcess/
-.. |Supported Python versions| image:: https://pypip.in/py_versions/EasyProcess/badge.svg?style=flat
+.. |Supported Python versions| image:: https://img.shields.io/pypi/pyversions/EasyProcess.svg
:target: https://pypi.python.org/pypi/EasyProcess/
-.. |License| image:: https://pypip.in/license/EasyProcess/badge.svg?style=flat
+.. |License| image:: https://img.shields.io/pypi/l/EasyProcess.svg
:target: https://pypi.python.org/pypi/EasyProcess/
-.. |Downloads| image:: https://pypip.in/download/EasyProcess/badge.svg?style=flat
+.. |Downloads| image:: https://img.shields.io/pypi/dm/EasyProcess.svg
:target: https://pypi.python.org/pypi/EasyProcess/
.. |Code Health| image:: https://landscape.io/github/ponty/EasyProcess/master/landscape.svg?style=fl…
:target: https://landscape.io/github/ponty/EasyProcess/master
+.. |Documentation| image:: https://readthedocs.org/projects/pyscreenshot/badge/?version=latest
+ :target: http://easyprocess.readthedocs.org
-
\ No newline at end of file
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.1.9/TODO new/EasyProcess-0.2.1/TODO
--- old/EasyProcess-0.1.9/TODO 2011-04-12 09:29:41.000000000 +0200
+++ new/EasyProcess-0.2.1/TODO 1970-01-01 01:00:00.000000000 +0100
@@ -1,5 +0,0 @@
-
-- stop() does not kill all subprocess tree
- http://stackoverflow.com/questions/1191374/subprocess-with-timeout
- http://code.google.com/p/psutil/
-- unit test for alias
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.1.9/docs/api/easyprocess.examples.rst new/EasyProcess-0.2.1/docs/api/easyprocess.examples.rst
--- old/EasyProcess-0.1.9/docs/api/easyprocess.examples.rst 1970-01-01 01:00:00.000000000 +0100
+++ new/EasyProcess-0.2.1/docs/api/easyprocess.examples.rst 2015-10-28 06:24:43.000000000 +0100
@@ -0,0 +1,54 @@
+easyprocess.examples package
+============================
+
+Submodules
+----------
+
+easyprocess.examples.cmd module
+-------------------------------
+
+.. automodule:: easyprocess.examples.cmd
+ :members:
+ :undoc-members:
+ :show-inheritance:
+
+easyprocess.examples.hello module
+---------------------------------
+
+.. automodule:: easyprocess.examples.hello
+ :members:
+ :undoc-members:
+ :show-inheritance:
+
+easyprocess.examples.log module
+-------------------------------
+
+.. automodule:: easyprocess.examples.log
+ :members:
+ :undoc-members:
+ :show-inheritance:
+
+easyprocess.examples.timeout module
+-----------------------------------
+
+.. automodule:: easyprocess.examples.timeout
+ :members:
+ :undoc-members:
+ :show-inheritance:
+
+easyprocess.examples.ver module
+-------------------------------
+
+.. automodule:: easyprocess.examples.ver
+ :members:
+ :undoc-members:
+ :show-inheritance:
+
+
+Module contents
+---------------
+
+.. automodule:: easyprocess.examples
+ :members:
+ :undoc-members:
+ :show-inheritance:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.1.9/docs/api/easyprocess.rst new/EasyProcess-0.2.1/docs/api/easyprocess.rst
--- old/EasyProcess-0.1.9/docs/api/easyprocess.rst 1970-01-01 01:00:00.000000000 +0100
+++ new/EasyProcess-0.2.1/docs/api/easyprocess.rst 2015-10-28 06:24:43.000000000 +0100
@@ -0,0 +1,37 @@
+easyprocess package
+===================
+
+Subpackages
+-----------
+
+.. toctree::
+
+ easyprocess.examples
+
+Submodules
+----------
+
+easyprocess.about module
+------------------------
+
+.. automodule:: easyprocess.about
+ :members:
+ :undoc-members:
+ :show-inheritance:
+
+easyprocess.unicodeutil module
+------------------------------
+
+.. automodule:: easyprocess.unicodeutil
+ :members:
+ :undoc-members:
+ :show-inheritance:
+
+
+Module contents
+---------------
+
+.. automodule:: easyprocess
+ :members:
+ :undoc-members:
+ :show-inheritance:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.1.9/docs/api/modules.rst new/EasyProcess-0.2.1/docs/api/modules.rst
--- old/EasyProcess-0.1.9/docs/api/modules.rst 1970-01-01 01:00:00.000000000 +0100
+++ new/EasyProcess-0.2.1/docs/api/modules.rst 2015-10-28 06:24:43.000000000 +0100
@@ -0,0 +1,7 @@
+easyprocess
+===========
+
+.. toctree::
+ :maxdepth: 4
+
+ easyprocess
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.1.9/docs/conf.py new/EasyProcess-0.2.1/docs/conf.py
--- old/EasyProcess-0.1.9/docs/conf.py 2015-03-19 20:36:07.000000000 +0100
+++ new/EasyProcess-0.2.1/docs/conf.py 2015-10-28 06:24:43.000000000 +0100
@@ -1,28 +1,26 @@
-from path import path
-import logging
-import sphinx
+import os
import sys
-sys.path.append('..')
-import easyprocess
-sys.path.pop()
-release = easyprocess.__version__
-print release
project = 'EasyProcess'
author = 'ponty'
copyright = '2011, ponty'
+__version__ = None
+exec(open(os.path.join('..', project.lower(), 'about.py')).read())
+release = __version__
+
# logging.basicConfig(level=logging.DEBUG)
+sys.path.insert(0, os.path.abspath('..'))
# Extension
extensions = [
# -*-Extensions: -*-
'sphinx.ext.autodoc',
- 'sphinxcontrib.programoutput',
+# 'sphinxcontrib.programoutput',
# 'sphinxcontrib.programscreenshot',
'sphinx.ext.graphviz',
- 'sphinxcontrib.autorun',
+# 'sphinxcontrib.autorun',
#'sphinx.ext.autosummary',
'sphinx.ext.intersphinx',
]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.1.9/docs/index.rst new/EasyProcess-0.2.1/docs/index.rst
--- old/EasyProcess-0.1.9/docs/index.rst 2012-03-09 11:04:00.000000000 +0100
+++ new/EasyProcess-0.2.1/docs/index.rst 2015-10-28 06:24:43.000000000 +0100
@@ -1,22 +1,15 @@
-**EasyProcess**
+===========
+EasyProcess
+===========
-:Date: |today|
-:PDF: `EasyProcess.pdf <EasyProcess.pdf>`_
-Contents:
+About
+=====
-.. toctree::
- :maxdepth: 2
- readme
- usage
- api
-
-Indices and tables
-==================
+.. include:: ../README.rst
+
+.. include:: api.rst
-* :ref:`genindex`
-* :ref:`modindex`
-* :ref:`search`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.1.9/docs/links.rst new/EasyProcess-0.2.1/docs/links.rst
--- old/EasyProcess-0.1.9/docs/links.rst 2011-05-16 16:14:01.000000000 +0200
+++ new/EasyProcess-0.2.1/docs/links.rst 1970-01-01 01:00:00.000000000 +0100
@@ -1,18 +0,0 @@
-.. _scons: http://www.scons.org
-.. _sphinx: http://sphinx.pocoo.org
-.. _github: https://github.com/
-.. _paver: http://paver.github.com/paver/
-.. _setuptools: http://peak.telecommunity.com/DevCenter/EasyInstall
-.. _pip: http://pip.openplans.org/
-.. _nose: http://somethingaboutorange.com/mrl/projects/nose/1.0.0/
-.. _ghp-import: https://github.com/davisp/ghp-import
-.. _pyflakes: http://pypi.python.org/pypi/pyflakes
-.. _pychecker: http://pychecker.sourceforge.net/
-.. _pypi: http://pypi.python.org/pypi
-.. _`paved fork`: https://github.com/ponty/paved
-.. _sphinx-contrib: https://bitbucket.org/birkenfeld/sphinx-contrib/
-.. _sphinxcontrib-programscreenshot: https://github.com/ponty/sphinxcontrib-programscreenshot
-.. _sphinxcontrib-programoutput: http://packages.python.org/sphinxcontrib-programoutput/
-.. _sphinxcontrib-paverutils: http://pypi.python.org/pypi/sphinxcontrib-paverutils
-
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.1.9/docs/readme.rst new/EasyProcess-0.2.1/docs/readme.rst
--- old/EasyProcess-0.1.9/docs/readme.rst 2011-02-11 11:24:03.000000000 +0100
+++ new/EasyProcess-0.2.1/docs/readme.rst 1970-01-01 01:00:00.000000000 +0100
@@ -1,5 +0,0 @@
-About
-======
-
-
-.. include:: ../README.rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.1.9/docs/usage.rst new/EasyProcess-0.2.1/docs/usage.rst
--- old/EasyProcess-0.1.9/docs/usage.rst 2012-03-09 10:58:57.000000000 +0100
+++ new/EasyProcess-0.2.1/docs/usage.rst 1970-01-01 01:00:00.000000000 +0100
@@ -1,189 +0,0 @@
-Usage
-==================
-
-.. module:: easyprocess
-
-Simple example
----------------
-
-Example program:
-
-.. literalinclude:: ../easyprocess/examples/ver.py
-
-Output:
-
-.. program-output:: python -m easyprocess.examples.ver
- :prompt:
-
-
-General
---------
-
-.. runblock:: pycon
-
- >>> from easyprocess import EasyProcess
- >>>
- >>> # Run program, wait for it to complete, get stdout (command is string):
- >>> EasyProcess('python -c "print 3"').call().stdout
- >>>
- >>> # Run program, wait for it to complete, get stdout (command is list):
- >>> EasyProcess(['python','-c','print 3']).call().stdout
- >>>
- >>> # Run program, wait for it to complete, get stderr:
- >>> EasyProcess('python --version').call().stderr
- >>>
- >>> # Run program, wait for it to complete, get return code:
- >>> EasyProcess('python --version').call().return_code
- >>>
- >>> # Run program, wait 1 second, stop it, get stdout:
- >>> print EasyProcess('ping localhost').start().sleep(1).stop().stdout
- >>>
- >>> # Unicode support
- >>> EasyProcess(['python','-c','print unichr(0x03A9).encode("utf-8")']).call().stdout
- >>>
-
-Shell commands
-----------------
-
-Shell commands are not supported.
-
-.. warning::
-
- ``echo`` is a shell command on Windows (there is no echo.exe),
- but it is a program on Linux
-
-return_code
-------------
-
-:attr:`EasyProcess.return_code` is None until
-:func:`EasyProcess.stop` or :func:`EasyProcess.wait`
-is called.
-
-
-.. runblock:: pycon
-
- >>> from easyprocess import EasyProcess
- >>>
- >>> # process has finished but no stop() or wait() was called
- >>> print EasyProcess('echo hello').start().sleep(0.5).return_code
- >>>
- >>> # wait()
- >>> print EasyProcess('echo hello').start().wait().return_code
- >>>
- >>> # stop() after process has finished
- >>> print EasyProcess('echo hello').start().sleep(0.5).stop().return_code
- >>>
- >>> # stop() before process has finished
- >>> print EasyProcess('sleep 2').start().stop().return_code
- >>>
- >>> # same as start().wait().stop()
- >>> print EasyProcess('echo hello').call().return_code
-
-With
------
-
-By using :keyword:`with` statement the process is started
-and stopped automatically::
-
- from easyprocess import EasyProcess
- with EasyProcess('ping 127.0.0.1') as proc: # start()
- # communicate with proc
- pass
- # stopped
-
-Equivalent with::
-
- from easyprocess import EasyProcess
- proc = EasyProcess('ping 127.0.0.1').start()
- try:
- # communicate with proc
- pass
- finally:
- proc.stop()
-
-
-Timeout
---------
-
-This was implemented with "daemon thread".
-
-"The entire Python program exits when only daemon threads are left."
-http://docs.python.org/library/threading.html
-
-.. runblock:: pycon
-
- >>> from easyprocess import EasyProcess
- >>> # Run ping with timeout
- >>> print EasyProcess('ping localhost').call(timeout=1).stdout
-
-Logging
---------
-
-Example program:
-
-.. literalinclude:: ../easyprocess/examples/log.py
-
-Output:
-
-.. program-output:: python -m easyprocess.examples.log
- :prompt:
-
-Alias
---------
-
-You can define an alias for EasyProcess calls
-by editing your config file ($HOME/.easyprocess.cfg)
-This can be used for:
-
- * testing different version of the same program
- * redirect calls
- * program path can be defined here. (Installed programs are not in $PATH on Windows)
-
-start python and print python version::
-
- >>> from easyprocess import EasyProcess
- >>> EasyProcess('python --version').call().stderr
- 'Python 2.6.6'
-
-edit the config file: $HOME/.easyprocess.cfg::
-
- [link]
- python=/usr/bin/python2.7
-
-restart python and print python version again::
-
- >>> from easyprocess import EasyProcess
- >>> EasyProcess('python --version').call().stderr
- 'Python 2.7.0+'
-
-
-Replacing existing functions
---------------------------------
-
-Replacing os.system::
-
- retcode = os.system("ls -l")
- ==>
- p = EasyProcess("ls -l").call()
- retcode = p.return_code
- print p.stdout
-
-Replacing subprocess.call::
-
- retcode = subprocess.call(["ls", "-l"])
- ==>
- p = EasyProcess(["ls", "-l"]).call()
- retcode = p.return_code
- print p.stdout
-
-
-extract_version
---------------------
-
-.. autofunction:: easyprocess.extract_version
-
-.. runblock:: pycon
-
- >>> from easyprocess import EasyProcess, extract_version
- >>> print extract_version(EasyProcess('python --version').call().stderr)
-
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.1.9/easyprocess/__init__.py new/EasyProcess-0.2.1/easyprocess/__init__.py
--- old/EasyProcess-0.1.9/easyprocess/__init__.py 2015-03-19 20:36:07.000000000 +0100
+++ new/EasyProcess-0.2.1/easyprocess/__init__.py 2015-10-28 06:24:43.000000000 +0100
@@ -11,7 +11,7 @@
import tempfile
import threading
import time
-import ConfigParser
+# import ConfigParser
from easyprocess.about import __version__
@@ -20,7 +20,7 @@
log.debug('version=%s', __version__)
-CONFIG_FILE = '.easyprocess.cfg'
+# CONFIG_FILE = '.easyprocess.cfg'
SECTION_LINK = 'link'
POLL_TIME = 0.1
USE_POLL = 0
@@ -81,7 +81,7 @@
pipes can cause deadlock in some cases
(see unit tests)
'''
- config = None
+# config = None
def __init__(self, cmd, ubuntu_package=None, url=None, cwd=None, use_temp_files=True):
self.use_temp_files = use_temp_files
@@ -113,23 +113,23 @@
if not len(cmd):
raise EasyProcessError(self, 'empty command!')
- if not Proc.config:
- conf_file = os.path.join(os.path.expanduser('~'), CONFIG_FILE)
- log.debug('reading config: %s', conf_file)
- Proc.config = ConfigParser.RawConfigParser()
- Proc.config.read(conf_file)
-
- self.alias = None
- try:
- self.alias = Proc.config.get(SECTION_LINK, self.cmd[0])
- except ConfigParser.NoSectionError:
- pass
- except ConfigParser.NoOptionError:
- pass
-
- if self.alias:
- log.debug('alias found: %s', self.alias)
- self.cmd[0] = self.alias
+# if not Proc.config:
+# conf_file = os.path.join(os.path.expanduser('~'), CONFIG_FILE)
+# log.debug('reading config: %s', conf_file)
+# Proc.config = ConfigParser.RawConfigParser()
+# Proc.config.read(conf_file)
+
+# self.alias = None
+# try:
+# self.alias = Proc.config.get(SECTION_LINK, self.cmd[0])
+# except ConfigParser.NoSectionError:
+# pass
+# except ConfigParser.NoOptionError:
+# pass
+
+# if self.alias:
+# log.debug('alias found: %s', self.alias)
+# self.cmd[0] = self.alias
def __repr__(self):
msg = '<%s cmd_param=%s cmd=%s oserror=%s returncode=%s stdout="%s" stderr="%s" timeout=%s>' % (
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.1.9/easyprocess/about.py new/EasyProcess-0.2.1/easyprocess/about.py
--- old/EasyProcess-0.1.9/easyprocess/about.py 2015-03-19 21:49:40.000000000 +0100
+++ new/EasyProcess-0.2.1/easyprocess/about.py 2015-10-30 09:33:44.000000000 +0100
@@ -1 +1 @@
-__version__ = '0.1.9'
+__version__ = '0.2.1'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.1.9/easyprocess/examples/cmd.py new/EasyProcess-0.2.1/easyprocess/examples/cmd.py
--- old/EasyProcess-0.1.9/easyprocess/examples/cmd.py 1970-01-01 01:00:00.000000000 +0100
+++ new/EasyProcess-0.2.1/easyprocess/examples/cmd.py 2015-10-28 06:24:43.000000000 +0100
@@ -0,0 +1,22 @@
+from easyprocess import EasyProcess
+
+print('-- Run program, wait for it to complete, get stdout (command is string):')
+s=EasyProcess('python -c "print 3"').call().stdout
+print(s)
+
+print('-- Run program, wait for it to complete, get stdout (command is list):')
+s=EasyProcess(['python','-c','print 3']).call().stdout
+print(s)
+
+print('-- Run program, wait for it to complete, get stderr:')
+s=EasyProcess('python --version').call().stderr
+print(s)
+
+print('-- Run program, wait for it to complete, get return code:')
+s=EasyProcess('python --version').call().return_code
+print(s)
+
+print('-- Run program, wait 1 second, stop it, get stdout:')
+s=EasyProcess('ping localhost').start().sleep(1).stop().stdout
+print(s)
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.1.9/easyprocess/examples/hello.py new/EasyProcess-0.2.1/easyprocess/examples/hello.py
--- old/EasyProcess-0.1.9/easyprocess/examples/hello.py 1970-01-01 01:00:00.000000000 +0100
+++ new/EasyProcess-0.2.1/easyprocess/examples/hello.py 2015-10-28 06:24:43.000000000 +0100
@@ -0,0 +1,5 @@
+from easyprocess import EasyProcess
+import sys
+
+s = EasyProcess([sys.executable, '-c', 'print "hello"']).call().stdout
+print(s)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.1.9/easyprocess/examples/timeout.py new/EasyProcess-0.2.1/easyprocess/examples/timeout.py
--- old/EasyProcess-0.1.9/easyprocess/examples/timeout.py 1970-01-01 01:00:00.000000000 +0100
+++ new/EasyProcess-0.2.1/easyprocess/examples/timeout.py 2015-10-28 06:24:43.000000000 +0100
@@ -0,0 +1,4 @@
+from easyprocess import EasyProcess
+
+s = EasyProcess('ping localhost').call(timeout=2).stdout
+print(s)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.1.9/pavement.py new/EasyProcess-0.2.1/pavement.py
--- old/EasyProcess-0.1.9/pavement.py 2015-03-19 21:35:42.000000000 +0100
+++ new/EasyProcess-0.2.1/pavement.py 2015-10-28 06:24:43.000000000 +0100
@@ -1,76 +1,26 @@
-from paver.easy import *
+from path import Path
+from paver.doctools import cog, html
+from paver.easy import options
+from paver.options import Bunch
from paver.setuputils import setup
-import paver.doctools
-import paver.misctasks
-from paved import *
-from paved.dist import *
-from paved.util import *
-from paved.docs import *
-from paved.pycheck import *
-from paved.pkg import *
-from setuptools import find_packages
-import sys
-
-# get info from setup.py
-sys.path.append('.')
-setup_py = ''.join(
- [x for x in path('setup.py').lines() if 'distutils' not in x])
-exec(setup_py)
-sys.path.pop()
+IMPORTS=[cog, html, setup]
+
options(
- sphinx=Bunch(
- docroot='docs',
- builddir="_build",
- ),
-# pdf=Bunch(
-# builddir='_build',
-# builder='latex',
-# ),
+ cog=Bunch(
+ basedir='.',
+ pattern='README.rst',
+ includedir='easyprocess',
+ beginspec='#--',
+ endspec='--#',
+ endoutput='#-#',
+ )
)
-options.paved.clean.rmdirs += ['.tox',
- 'dist',
- 'build',
- ]
-options.paved.clean.patterns += ['*.pickle',
- '*.doctree',
- '*.gz',
- 'nosetests.xml',
- 'sloccount.sc',
- '*.pdf', '*.tex',
- '*.png',
- '*.zip',
- 'distribute_setup.py',
- ]
-
-options.paved.dist.manifest.include.remove('distribute_setup.py')
-options.paved.dist.manifest.include.remove('paver-minilib.zip')
-# options.paved.dist.manifest.include.add('requirements.txt')
-# options.paved.dist.manifest.include.add('versioneer.py')
-
-
-@task
-@needs(
- 'sloccount',
- 'html',
- 'pdf',
- 'sdist',
- 'nose',
- 'tox',
-)
-def alltest():
- 'all tasks to check'
- pass
-
+# get info from setup.py
+setup_py = ''.join(
+ [x for x in Path('setup.py').lines() if 'setuptools' not in x])
+exec(setup_py)
-@task
-@needs('manifest',
- 'distutils.command.sdist',
- )
-def sdist():
- """Overrides sdist to make sure that our MANIFEST.in is generated.
- """
- pass
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/EasyProcess-0.1.9/setup.py new/EasyProcess-0.2.1/setup.py
--- old/EasyProcess-0.1.9/setup.py 2015-03-19 21:46:43.000000000 +0100
+++ new/EasyProcess-0.2.1/setup.py 2015-10-28 06:24:43.000000000 +0100
@@ -2,6 +2,12 @@
import sys
import os
+if os.environ.get('distutils_issue8876_workaround_enabled', False):
+ # sdist_hack: Remove reference to os.link to disable using hardlinks when
+ # building setup.py's sdist target. This is done because
+ # VirtualBox VMs shared filesystems don't support hardlinks.
+ del os.link
+
NAME = 'easyprocess'
PYPI_NAME = 'EasyProcess'
URL = 'https://github.com/ponty/easyprocess'
@@ -37,9 +43,10 @@
"Programming Language :: Python :: 3",
# "Programming Language :: Python :: 3.0",
# "Programming Language :: Python :: 3.1",
- "Programming Language :: Python :: 3.2",
+# "Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
+ "Programming Language :: Python :: 3.5",
]
1
0