svn commit: r416019 - in head/graphics/py-pydot: . files

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Sat May 28 17:08:31 UTC 2016


Author: sunpoet
Date: Sat May 28 17:08:29 2016
New Revision: 416019
URL: https://svnweb.freebsd.org/changeset/ports/416019

Log:
  - Update to 1.1.0
  - Change MASTER_SITES back to CHEESESHOP
  - Remove post-patch:
  
  Changes:	https://github.com/erocarrera/pydot/blob/master/ChangeLog

Modified:
  head/graphics/py-pydot/Makefile
  head/graphics/py-pydot/distinfo
  head/graphics/py-pydot/files/patch-dot_parser.py
  head/graphics/py-pydot/files/patch-pydot.py
  head/graphics/py-pydot/files/patch-setup.py

Modified: head/graphics/py-pydot/Makefile
==============================================================================
--- head/graphics/py-pydot/Makefile	Sat May 28 17:08:24 2016	(r416018)
+++ head/graphics/py-pydot/Makefile	Sat May 28 17:08:29 2016	(r416019)
@@ -2,8 +2,9 @@
 # $FreeBSD$
 
 PORTNAME=	pydot
-PORTVERSION=	1.0.29
+PORTVERSION=	1.1.0
 CATEGORIES=	graphics python
+MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	sunpoet at FreeBSD.org
@@ -12,19 +13,12 @@ COMMENT=	Python interface to the Graphvi
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyparsing>=0:devel/py-pyparsing
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyparsing>=0:devel/py-pyparsing \
-		dot:graphics/graphviz
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyparsing>=1.5.7:devel/py-pyparsing
+RUN_DEPENDS=	dot:graphics/graphviz \
+		${PYTHON_PKGNAMEPREFIX}pyparsing>=1.5.7:devel/py-pyparsing
 
 NO_ARCH=	yes
 USE_PYTHON=	autoplist concurrent distutils
 USES=		python
 
-GH_ACCOUNT=	erocarrera
-GH_TAGNAME=	ec21a11
-USE_GITHUB=	yes
-
-post-patch:
-	@${REINPLACE_CMD} -e "s|__version__ = .*|__version__ = '${PORTVERSION}'|" ${WRKSRC}/pydot.py
-
 .include <bsd.port.mk>

Modified: head/graphics/py-pydot/distinfo
==============================================================================
--- head/graphics/py-pydot/distinfo	Sat May 28 17:08:24 2016	(r416018)
+++ head/graphics/py-pydot/distinfo	Sat May 28 17:08:29 2016	(r416019)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1463505798
-SHA256 (erocarrera-pydot-1.0.29-ec21a11_GH0.tar.gz) = 2a9910a5799cb32598e2135dfd5ab4ace8ad645b6e94ecc2e5e85a2a282eb7b6
-SIZE (erocarrera-pydot-1.0.29-ec21a11_GH0.tar.gz) = 262626
+TIMESTAMP = 1464369127
+SHA256 (pydot-1.1.0.tar.gz) = 469d2cf565994064236be24e87ab3571c1c1243fbc8d2ad836d16637d1a5049b
+SIZE (pydot-1.1.0.tar.gz) = 20451

Modified: head/graphics/py-pydot/files/patch-dot_parser.py
==============================================================================
--- head/graphics/py-pydot/files/patch-dot_parser.py	Sat May 28 17:08:24 2016	(r416018)
+++ head/graphics/py-pydot/files/patch-dot_parser.py	Sat May 28 17:08:29 2016	(r416019)
@@ -1,32 +1,23 @@
---- dot_parser.py.orig	2012-01-03 00:15:07 UTC
-+++ dot_parser.py
-@@ -25,7 +25,7 @@ from pyparsing import __version__ as pyp
- from pyparsing import ( nestedExpr, Literal, CaselessLiteral, Word, Upcase, OneOrMore, ZeroOrMore,
-     Forward, NotAny, delimitedList, oneOf, Group, Optional, Combine, alphas, nums,
-     restOfLine, cStyleComment, nums, alphanums, printables, empty, quotedString,
--    ParseException, ParseResults, CharsNotIn, _noncomma, dblQuotedString, QuotedString, ParserElement )
-+    ParseException, ParseResults, CharsNotIn, dblQuotedString, QuotedString, ParserElement )
- 
- 
- class P_AttrList:
-@@ -111,7 +111,7 @@ def push_top_graph_stmt(str, loc, toks):
+--- dot_parser.py.orig	2016-05-24 09:57:52.000000000 +0800
++++ dot_parser.py	2016-05-28 01:23:50.843873969 +0800
+@@ -111,7 +111,7 @@
              add_elements(g, element)
-             
+ 
          else:
 -            raise ValueError, "Unknown element statement: %r " % element
 +            raise ValueError("Unknown element statement: %r " % element)
-     
-     
+ 
+ 
      for g in top_graphs:
-@@ -218,14 +218,14 @@ def add_elements(g, toks, defaults_graph
+@@ -218,14 +218,14 @@
                  defaults_edge.update(element.attrs)
  
              else:
 -                raise ValueError, "Unknown DefaultStatement: %s " % element.default_type
 +                raise ValueError("Unknown DefaultStatement: %s " % element.default_type)
-                 
+ 
          elif isinstance(element, P_AttrList):
-         
+ 
              g.obj_dict['attributes'].update(element.attrs)
  
          else:
@@ -34,8 +25,8 @@
 +            raise ValueError("Unknown element statement: %r" % element)
  
  
- def push_graph_stmt(str, loc, toks):            
-@@ -267,7 +267,7 @@ def push_default_stmt(str, loc, toks):
+ def push_graph_stmt(str, loc, toks):
+@@ -267,7 +267,7 @@
      if default_type in ['graph', 'node', 'edge']:
          return DefaultStatement(default_type, attrs)
      else:
@@ -44,21 +35,13 @@
  
  
  def push_attr_list(str, loc, toks):
-@@ -414,6 +414,7 @@ def graph_definition():
-         
-         double_quoted_string = QuotedString('"', multiline=True, unquoteResults=False) # dblQuotedString
- 
-+        _noncomma = "".join( [ c for c in printables if c != "," ] )
-         alphastring_ = OneOrMore(CharsNotIn(_noncomma + ' '))
- 
-         def parse_html(s, loc, toks):
-@@ -523,9 +524,9 @@ def parse_dot_data(data):
+@@ -524,9 +524,9 @@
          else:
              return [g for g in tokens]
-         
+ 
 -    except ParseException, err:
 +    except ParseException as err:
-     
+ 
 -        print err.line
 -        print " "*(err.column-1) + "^"
 -        print err

Modified: head/graphics/py-pydot/files/patch-pydot.py
==============================================================================
--- head/graphics/py-pydot/files/patch-pydot.py	Sat May 28 17:08:24 2016	(r416018)
+++ head/graphics/py-pydot/files/patch-pydot.py	Sat May 28 17:08:29 2016	(r416019)
@@ -1,26 +1,15 @@
---- pydot.py.orig	2012-01-03 00:15:07 UTC
-+++ pydot.py
-@@ -19,7 +19,7 @@ Distributed under MIT license [http://op
- 
- __revision__ = "$LastChangedRevision$"
- __author__ = 'Ero Carrera'
--__version__ = '1.0.%d' % int( __revision__[21:-2] )
-+__version__ = '1.0.28'
- __license__ = 'MIT'
- 
- import os
-@@ -29,8 +29,8 @@ import tempfile
- import copy
+--- pydot.py.orig	2016-05-24 09:57:52.000000000 +0800
++++ pydot.py	2016-05-28 01:22:15.617300969 +0800
+@@ -29,7 +29,7 @@
+ import warnings
  try:
      import dot_parser
 -except Exception, e:
--    print "Couldn't import dot_parser, loading of dot files will not be possible."
 +except Exception as e:
-+    print("Couldn't import dot_parser, loading of dot files will not be possible.")
-     
- 
- 
-@@ -92,7 +92,7 @@ CLUSTER_ATTRIBUTES = set( ['K', 'URL', '
+     warnings.warn(
+         "Couldn't import dot_parser, "
+         "loading of dot files will not be possible.")
+@@ -94,7 +94,7 @@
  #
  class frozendict(dict):
      def _blocked_attribute(obj):
@@ -29,7 +18,7 @@
      _blocked_attribute = property(_blocked_attribute)
  
      __delitem__ = __setitem__ = clear = _blocked_attribute
-@@ -190,7 +190,7 @@ def quote_if_necessary(s):
+@@ -192,7 +192,7 @@
              return 'True'
          return 'False'
  
@@ -38,25 +27,56 @@
          return s
  
      if not s:
-@@ -506,7 +506,7 @@ def find_graphviz():
-                             #print "Used Windows registry"
+@@ -505,10 +505,10 @@
+                         path = os.path.join(path, "bin")
+                         progs = __find_executables(path)
+                         if progs is not None :
+-                            #print "Used Windows registry"
++                            #print("Used Windows registry")
                              return progs
-                 
+ 
 -                except Exception, excp:
 +                except Exception as excp:
                      #raise excp
                      pass
                  else:
-@@ -717,7 +717,7 @@ class InvocationException(Exception):
+@@ -523,7 +523,7 @@
+         for path in os.environ['PATH'].split(os.pathsep):
+             progs = __find_executables(path)
+             if progs is not None :
+-                #print "Used path"
++                #print("Used path")
+                 return progs
+ 
+     # Method 3 (Windows only)
+@@ -550,7 +550,7 @@
+ 
+         if progs is not None :
+ 
+-            #print "Used default install location"
++            #print("Used default install location")
+             return progs
+ 
+ 
+@@ -562,7 +562,7 @@
+ 
+         progs = __find_executables(path)
+         if progs is not None :
+-            #print "Used path"
++            #print("Used path")
+             return progs
+ 
+     # Failed to find GraphViz
+@@ -719,7 +719,7 @@
  
  
  
 -class Node(object, Common):
 +class Node(Common):
      """A graph node.
-     
+ 
      This class represents a graph's node with all its attributes.
-@@ -756,12 +756,12 @@ class Node(object, Common):
+@@ -758,12 +758,12 @@
              # Remove the compass point
              #
              port = None
@@ -69,50 +89,50 @@
 -            if isinstance(name, (long, int)):
 +            if isinstance(name, int):
                  name = str(name)
-             
-             self.obj_dict['name'] = quote_if_necessary( name )
-@@ -834,7 +834,7 @@ class Node(object, Common):
+ 
+             self.obj_dict['name'] = quote_if_necessary(name)
+@@ -836,7 +836,7 @@
  
  
  
 -class Edge(object,  Common ):
 +class Edge(Common):
      """A graph edge.
-     
+ 
      This class represents a graph's edge with all its attributes.
-@@ -925,7 +925,7 @@ class Edge(object,  Common ):
+@@ -927,7 +927,7 @@
          """
-         
+ 
          if not isinstance(edge, Edge):
 -            raise Error, "Can't compare and edge to a non-edge object."
 +            raise Error("Can't compare and edge to a non-edge object.")
-             
+ 
          if self.get_parent_graph().get_top_graph_type() == 'graph':
-         
-@@ -1025,7 +1025,7 @@ class Edge(object,  Common ):
-     
-     
-     
+ 
+@@ -1027,7 +1027,7 @@
+ 
+ 
+ 
 -class Graph(object, Common):
 +class Graph(Common):
      """Class representing a graph in Graphviz's dot language.
  
      This class implements the methods to work on a representation
-@@ -1075,7 +1075,7 @@ class Graph(object, Common):
+@@ -1077,7 +1077,7 @@
              self.obj_dict['attributes'] = dict(attrs)
-             
+ 
              if graph_type not in ['graph', 'digraph']:
--                raise Error, 'Invalid type "%s". Accepted graph types are: graph, digraph, subgraph' % graph_type
-+                raise Error('Invalid type "%s". Accepted graph types are: graph, digraph, subgraph' % graph_type)
-     
-     
+-                raise Error, 'Invalid type "%s". Accepted graph types are: graph, digraph' % graph_type
++                raise Error('Invalid type "%s". Accepted graph types are: graph, digraph' % graph_type)
+ 
+ 
              self.obj_dict['name'] = quote_if_necessary(graph_name)
-@@ -2022,7 +2022,7 @@ class Dot(Graph):
+@@ -2024,7 +2024,7 @@
                  'Program terminated with status: %d. stderr follows: %s' % (
                      status, stderr_output) )
          elif stderr_output:
 -            print stderr_output
 +            print(stderr_output)
-         
+ 
          # For each of the image files...
          #

Modified: head/graphics/py-pydot/files/patch-setup.py
==============================================================================
--- head/graphics/py-pydot/files/patch-setup.py	Sat May 28 17:08:24 2016	(r416018)
+++ head/graphics/py-pydot/files/patch-setup.py	Sat May 28 17:08:29 2016	(r416019)
@@ -1,19 +1,10 @@
---- setup.py.orig	2012-01-03 00:15:07 UTC
+--- setup.py.orig	2016-05-24 01:57:52 UTC
 +++ setup.py
-@@ -2,7 +2,7 @@
- 
- try:
-     from distutils.core import setup
--except ImportError, excp:
-+except ImportError as excp:
-     from setuptools import setup
-     
- import pydot
-@@ -31,5 +31,5 @@ setup(	name = 'pydot',
+@@ -27,5 +27,5 @@ setup(	name = 'pydot',
          'Topic :: Software Development :: Libraries :: Python Modules'],
      long_description = "\n".join(pydot.__doc__.split('\n')),
      py_modules = ['pydot', 'dot_parser'],
--    install_requires = ['pyparsing', 'setuptools'],
+-    install_requires = ['pyparsing>=1.5.7'],
 -    data_files = [('.', ['LICENSE', 'README'])] )
 +    install_requires = ['pyparsing', 'setuptools'] )
 +    #data_files = [('.', ['LICENSE', 'README'])] )


More information about the svn-ports-head mailing list