Commit Graph

58 Commits

Author SHA1 Message Date
Kamil Sambor 4ab4b6a0f5 Merge pull request #37 from pydot/bug/36
Adjusted quoting to DOT lang specification
2015-03-15 21:26:32 +01:00
Sebastian Kalinowski 9d2f8fa558 Add test case for #24 2015-03-15 20:55:57 +01:00
Sebastian Kalinowski 64e3a636df Adjusted quoting to DOT lang specification
There was some differences between how pydot quotes IDs (names, attrs)
and how it is defined in DOT language specification (and how pygraphviz
does it).
New test with covered cases has been added and new regexpes
for checking IDs has been also added.
Fixes #36
2015-03-15 20:55:57 +01:00
Sebastian Kalinowski a142f0ab8e Merge pull request #28 from pydot/fix-flakes8
Fixes #2 - fix flakes8 and improve readability
2015-03-15 20:53:15 +01:00
Kamil Sambor f794a85300 Fix rest of e123 errors 2015-03-15 20:41:38 +01:00
Sebastian Kalinowski e70977a576 Revert "Updated changelog with quoting change"
This reverts commit ed30bebc10.
2015-03-14 21:21:02 +01:00
Sebastian Kalinowski ed30bebc10 Updated changelog with quoting change 2015-03-14 21:20:34 +01:00
Sebastian Kalinowski e263d22247 Ignore H105
H105 checks for "Authors" tags in files. We want (and need) to keep
such checks.
2015-03-14 16:59:02 +01:00
Kamil Sambor acec98fe2b Fix wrong import 2015-03-14 13:25:16 +01:00
Kamil Sambor e26b824fdf Merge branch 'fix-flakes8' of https://github.com/pydot/pydot-ng into fix-flakes8
Conflicts:
	pydot_ng/__init__.py
	pydot_ng/_dotparser.py
2015-03-14 13:16:56 +01:00
Kamil Sambor d70e9762ce Fix flakes8 and improve readability 2015-03-14 13:09:57 +01:00
Sebastian Kalinowski 1e9274785f Enable flake8 checks on CI 2015-03-08 23:05:02 +01:00
Kamil Sambor d7c49b1389 Fix flakes8 and improve readability 2015-03-08 20:00:54 +01:00
Sebastian Kalinowski 6b816be37c Added homepage to setup.py 2015-02-28 09:40:03 +01:00
Sebastian Kalinowski c6fa1de4bb Back to development: 1.0.1 2015-02-28 09:38:19 +01:00
Sebastian Kalinowski 9692b5394a Preparing release 1.0.0 2015-02-26 11:26:38 +01:00
Sebastian Kalinowski 7f00068c5f Back to development: 1.0.0 2015-02-26 11:26:24 +01:00
Sebastian Kalinowski 9deb271384 Added MANIFEST.in 2015-02-26 11:19:48 +01:00
Sebastian Kalinowski b15ede7861 prepare for first release 2015-02-26 11:09:07 +01:00
Sebastian Kalinowski 30a17f88e2 Skip tests that fail because of checksum fail 2015-02-26 10:23:39 +01:00
Sebastian Kalinowski e6c8c519ce Set test files path dynamically 2015-02-26 10:22:59 +01:00
Sebastian Kalinowski 336739f29d Renamed test file to enble autodiscover 2015-02-26 10:05:03 +01:00
Sebastian Kalinowski 03efd551c5 Added tox conf and disabled pep8 2015-02-26 10:00:53 +01:00
Sebastian Kalinowski cbe9d2a992 Add build status image 2015-02-25 21:58:37 +01:00
Sebastian Kalinowski 22174b2204 Renamaed README -> README.rst 2015-02-25 21:54:42 +01:00
Sebastian Kalinowski a37cf8779d Added Travis conf & empty tox.ini 2015-02-25 21:21:45 +01:00
Sebastian Kalinowski 681c3939ec Renamed pydot to pydot-ng 2015-02-25 19:58:39 +01:00
Lance Hepler adf18a858a Merge pull request #8 from gustavla/master
Fixes syntax error in older versions of graphviz.
2014-07-30 21:07:55 -07:00
Gustav Larsson 13686776b9 Fixes syntax error in older versions of graphviz.
Older versions of graphviz (tested on version 2.26.3 (20100126.1600))
complains when an attribute is empty without quotes. [label=] fails but
[label=""] works, so the quote_if_necessary function has been updated to
accommodate this.
2014-07-30 18:25:42 -05:00
Lance Hepler 875bbfd89c Merge pull request #7 from graingert/patch-1
add pyparsing dep
2014-06-20 20:16:50 -07:00
Thomas Grainger ba5d32bcc2 fix install_requires format 2014-06-02 11:43:15 +01:00
Thomas Grainger 83cabc4ce2 add pyparsing dep 2014-06-02 11:42:01 +01:00
Lance Hepler e4311a3590 Merge pull request #4 from chebee7i/syntaxerror
Fix syntax error in Python 3: u'' -> ''. Also add .gitignore.
2013-09-09 12:06:14 -07:00
Lance Hepler 8d9ed45a15 Merge pull request #5 from chebee7i/pydotwrite
Allow Dot.write() to work with file-like objects as well.
2013-09-09 12:05:25 -07:00
chebee7i e53dc722fb Allow Dot.write() to work with file-like objects as well. 2013-09-09 12:58:06 -05:00
chebee7i 2a03630c0a Fix syntax error in Python 3: u'' -> ''. Also add .gitignore. 2013-09-09 12:55:54 -05:00
Lance Hepler 9be233d50f modularize into a directory, hide dot_parser, and flake8 everything 2013-07-29 04:05:52 -07:00
Lance Hepler 687eb7e18c py2/3 compatibility 2013-07-26 03:06:12 -07:00
Lance Hepler 4504fce247 remove unnecessary whitespace 2013-07-26 00:15:57 -07:00
Ero Carrera 9875c08935 -Fixed issue 52. Improved handling of BOM-less UTF-8 encoded files.
git-svn-id: http://pydot.googlecode.com/svn/trunk@28 06aa9b79-7134-0410-ae7e-c1cd3e483e87
2012-01-02 23:24:38 +00:00
Ero Carrera 9999c00c26 -Fixed issue 52. Improved handling of BOM-less UTF-8 encoded files.
-Fixed issue 55 regarding unicode handling.
-Fixed issue 50 where an ending colon in a node name was understood as a port separator. Colons as the last character of node names will be left as-is.
-Issue 59 (and duplicate issue 62): Program arguments are mishandled in Dot.create - Patch merged.
-Fixed issue 49, handling of quotes in unicode html-labels.
-Fixed issue 60. Added an additional check in __get_attribute__ to not assume the parent graph is always retrievable.
-Fixed issue 61. Graph names will be adequately quoted when necessary.

git-svn-id: http://pydot.googlecode.com/svn/trunk@27 06aa9b79-7134-0410-ae7e-c1cd3e483e87
2012-01-02 23:21:31 +00:00
Ero Carrera ef97949461 -Improved the message raised by TypeErrors
-Added information in create()'s docstring about optional command-line arguments and how to provide them

git-svn-id: http://pydot.googlecode.com/svn/trunk@25 06aa9b79-7134-0410-ae7e-c1cd3e483e87
2011-04-10 15:39:01 +00:00
Ero Carrera e4e03aeadd -Improved parsing of DOT files where a subgraph was given inline as the source or destination of an edge. Still, it won't be listed in the list of subgraphs because doing so implies a different treatment that won't represent the file correctly. When an element is added to one of the lists it starts existing explicitly and the layout might be different. Elements defined inline, without a previous declaration, behave differently and to mirror the behavior of GraphViz it's simpler to not add them to the list of elements in the graph.
-If arguments need to be specified for 'dot', 'neato' and rest of graph layout engines they can now be passed to the create() and create_*() family of functions. If a string is passed it's expected to be simply the name of the program. If a list is passed it's assumed to contain strings, the name of the layout engine as the first element, followed by any optional arguments that will be later appended to the command line.

git-svn-id: http://pydot.googlecode.com/svn/trunk@24 06aa9b79-7134-0410-ae7e-c1cd3e483e87
2011-04-10 15:10:45 +00:00
Ero Carrera 4f5ec786a9 Adding revision number to the version string. There'll be a bit of a jump in the minor version number but now it'll be automatically kept up-to-date by Subversion
git-svn-id: http://pydot.googlecode.com/svn/trunk@23 06aa9b79-7134-0410-ae7e-c1cd3e483e87
2011-03-03 15:47:24 +00:00
Ero Carrera ec92de3a5a Fixed Issue 46
git-svn-id: http://pydot.googlecode.com/svn/trunk@22 06aa9b79-7134-0410-ae7e-c1cd3e483e87
2011-03-03 11:55:20 +00:00
Ero Carrera 9c0c48c434 Changed the order of loading the package setup utilities
git-svn-id: http://pydot.googlecode.com/svn/trunk@21 06aa9b79-7134-0410-ae7e-c1cd3e483e87
2010-12-31 16:18:32 +00:00
Ero Carrera 839fae8491 Updated version to 1.0.4
git-svn-id: http://pydot.googlecode.com/svn/trunk@19 06aa9b79-7134-0410-ae7e-c1cd3e483e87
2010-12-31 15:55:39 +00:00
Ero Carrera b59b4d0169 Merged fixes by Nelson Elhage
- The "id_re_with_port" regex was too lax, and let through many illegal strings just because they contained colons. Fix it to require that both the ID and port component be independently safe.
- Even when the code detected that a string needed quoting, ", \n, and \r were left alone inside the double quotes, which is illegal. Replace them with appropriately escaped versions.

We also add a test that pydot is correctly able to quote Python's "string.printable" string, which exercises both of the above cases.

git-svn-id: http://pydot.googlecode.com/svn/trunk@18 06aa9b79-7134-0410-ae7e-c1cd3e483e87
2010-12-31 15:51:12 +00:00
Ero Carrera 8f6e324d32 Added testing script and test data
git-svn-id: http://pydot.googlecode.com/svn/trunk@14 06aa9b79-7134-0410-ae7e-c1cd3e483e87
2010-11-06 21:06:28 +00:00
Ero Carrera b26ac91bca Fixed issue 42. Graphviz's executable "sfdp" has been included in the list of executables to search for and will now be found if available.
git-svn-id: http://pydot.googlecode.com/svn/trunk@13 06aa9b79-7134-0410-ae7e-c1cd3e483e87
2010-11-06 20:45:35 +00:00