Skip to content

Commit

Permalink
py-X: update to 0.15
Browse files Browse the repository at this point in the history
(Spurred by the fact net/scapy expects the SVG support introduced back
in 2015.)

0.15 (2019/07/14):
  - text module:
    - introduce UnicodeEngine
    - MultiEngineText to express combined text data for TeX based engines and
      the new UnicodeEngine
    - Text and StackedText classes for simple typesetting operations on
      UnicodeEngine text
    - rename TexRunner and LatexRunner to TexEngine and LatexEngine
    - rename cls argument of text.set to engine (with fallback and
      deprecation warning in place)
    - improve error handling when input cannot be encoded by texenc
    - add support for virtual fonts in virtual fonts
    - font maps: treat font files without extension as Type 1 (to
      prevent warnings occuring especially with Minion or Libertine fonts)
    - fix UnicodeDecodeError for invalid character responses by TeX/LaTeX
      (reported by Gert Ingold)
  - new examples:
    - non-ASCII TeX encoding
  - t1font:
    - use integers in auto-guessed font descriptors to prevent an issue in pdftex
      (reported by Michael Hartmann)
    - fix typo: ItalicAngles -> ItalicAngle (thanks to Ross Moore)
  - graph.axis.texter:
    - unify exponential and mixed texter to default texter
    - use MultiEngineText in all texters (decimal, default, factional)
  - pdfwriter, pswriter, svgwriter:
    - removed underscore in  PS and PDF and SVG writer options strip_fonts,
      text_as_path, mesh_as_bitmap, mesh_as_bitmap_resolution
      (new: stripfonts, textaspath, meshasbitmap and meshasbitmapresolution)
      to prevent ambiquity with write_ prefixes.
    - Fix color output in SVG (reported by Michael Hartmann)
  - deformer:
    - Fix parallel deformer for empty normsubpaths (thanks to Michael J Gruber)
  - graph.style:
    - Use RGBA instead of ARGB in the bitmap fallback of graph.style.density
      Fix saving SVG as supported modes are limited (thanks to Michael J Gruber)
  - pattern:
    - inject default linewidth (reported by Michael J Gruber)
  - version control:
    - switched to git on 2018/07/16 with main repository on GitHub

0.14.1 (2015/11/02):
  - distribution:
    - upload to PyPI (including old releases)
    - remove old releases from sourceforge
  - text module:
    - fix load_def message parser (reported by Mico Filós)
  - normpath:
    - fix intersect with empty normsubpaths (bug #62, thanks to Florent Hivert)

0.14 (2015/04/30):
  - new svgwriter module:
    - complete SVG output
    - SVG font output disabled by default due to missing support by
      most browsers, fallback by rendering fonts as paths
  - new svgfile module:
    - SVG reader
    - unparsed mode: embedd svg in other svg
    - parsed mode: supports reading paths (including styles,
      tranformations, etc.) into a PyX canvas
  - bitmap module:
    - using bytes in image type conversions and channel extraction
  - color module:
    - fix grey class
    - fix rgb css binary issue and short code index error
  - epsfile module:
    - fix parsing of bounding box
  - text module:
    - no end of pages test when no dvi is created at all
    - add chroot config option needed to use a chrooted TeX installation
  - graph module:
    - add xy12axesat feature to graphxyz
  - canvas module:
    - fix clipping and transformation applied together
    - provide _repr_svg_ in canvas for use by IPython
    - new constructor argument ipython_bboxenlarge
  - deco module:
    - remove shortcut for ornaments only to not skip global styles
  • Loading branch information
dhgutteridge committed Mar 1, 2020
1 parent 067948a commit 36c46dd
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 18 deletions.
10 changes: 6 additions & 4 deletions textproc/py-X/DESCR
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
PyX is a Python package for the creation of PostScript and PDF files. It
combines an abstraction of the PostScript drawing model with a TeX/LaTeX
PyX is a Python package for the creation of PostScript, PDF, and SVG files.
It combines an abstraction of the PostScript drawing model with a TeX/LaTeX
interface. Complex tasks like 2d and 3d plots in publication-ready quality
are built out of these primitives.

Features
* PostScript and PDF output for device independent, freely scalable figures
* PostScript, PDF, and SVG output for device independent, freely scalable
figures
* seamless TeX/LaTeX integration
* full access to PostScript features like paths, linestyles, fill patterns,
transformations, clipping, bitmap inclusion, etc.
* advanced geometric operations on paths like intersections, transformations,
splitting, smoothing, etc.
* sophisticated graph generation: modular design, pluggable axes, axes
partitioning based on rational number arithmetics, flexible graph styles, etc.
partitioning based on rational number arithmetics, flexible graph styles,
etc.
15 changes: 7 additions & 8 deletions textproc/py-X/Makefile
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
# $NetBSD: Makefile,v 1.18 2020/01/18 23:35:31 rillig Exp $
# $NetBSD: Makefile,v 1.19 2020/03/01 02:56:41 gutteridge Exp $

DISTNAME= PyX-0.13
DISTNAME= PyX-0.15
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/Py//}
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyx/}
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pyx/}

MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://pyx.sourceforge.net/
COMMENT= Package for the creation of PostScript and PDF files
HOMEPAGE= https://pyx-project.org/
COMMENT= Package for the creation of PostScript, PDF, and SVG files
LICENSE= gnu-gpl-v2 # or later

DEPENDS+= kpathsea-[0-9]*:../../print/kpathsea
DEPENDS+= dvipsk-[0-9]*:../../print/dvipsk
DEPENDS+= tex-latex-bin-[0-9]*:../../print/tex-latex-bin
DEPENDS+= tex-tex-[0-9]*:../../print/tex-tex

USE_LANGUAGES= #none
USE_LANGUAGES= # none

CONF_FILES= ${PYSITELIB}/pyx/data/pyxrc \
${PKG_SYSCONFDIR}/pyxrc

PYTHON_SELF_CONFLICT= yes
PYTHON_VERSIONS_INCOMPATIBLE= 27
PYTHON_VERSIONS_INCLUDE_3X= yes

.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"
11 changes: 10 additions & 1 deletion textproc/py-X/PLIST
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.7 2014/01/20 12:37:04 wiz Exp $
@comment $NetBSD: PLIST,v 1.8 2020/03/01 02:56:41 gutteridge Exp $
${PYSITELIB}/${EGG_FILE}
${PYSITELIB}/pyx/__init__.py
${PYSITELIB}/pyx/__init__.pyc
Expand Down Expand Up @@ -196,6 +196,12 @@ ${PYSITELIB}/pyx/reader.pyo
${PYSITELIB}/pyx/style.py
${PYSITELIB}/pyx/style.pyc
${PYSITELIB}/pyx/style.pyo
${PYSITELIB}/pyx/svgfile.py
${PYSITELIB}/pyx/svgfile.pyc
${PYSITELIB}/pyx/svgfile.pyo
${PYSITELIB}/pyx/svgwriter.py
${PYSITELIB}/pyx/svgwriter.pyc
${PYSITELIB}/pyx/svgwriter.pyo
${PYSITELIB}/pyx/text.py
${PYSITELIB}/pyx/text.pyc
${PYSITELIB}/pyx/text.pyo
Expand All @@ -205,6 +211,9 @@ ${PYSITELIB}/pyx/trafo.pyo
${PYSITELIB}/pyx/unit.py
${PYSITELIB}/pyx/unit.pyc
${PYSITELIB}/pyx/unit.pyo
${PYSITELIB}/pyx/utils.py
${PYSITELIB}/pyx/utils.pyc
${PYSITELIB}/pyx/utils.pyo
${PYSITELIB}/pyx/version.py
${PYSITELIB}/pyx/version.pyc
${PYSITELIB}/pyx/version.pyo
Expand Down
10 changes: 5 additions & 5 deletions textproc/py-X/distinfo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$NetBSD: distinfo,v 1.4 2015/11/04 02:00:01 agc Exp $
$NetBSD: distinfo,v 1.5 2020/03/01 02:56:41 gutteridge Exp $

SHA1 (PyX-0.13.tar.gz) = 1c5d100250358897ca8c6f2237a35f1d69b1ae6d
RMD160 (PyX-0.13.tar.gz) = 0cbd1da09ae9670bb8b42a59a103d0c8a53175c3
SHA512 (PyX-0.13.tar.gz) = cab0c22f0862ae20cff92504ededf4fcf5820d5773130fb258de1a95d295ca4fe657b85d5ccd52021a4f84403e6db8eebe9f676fa405781738502456123eb05c
Size (PyX-0.13.tar.gz) = 1237082 bytes
SHA1 (PyX-0.15.tar.gz) = d9ceb19fbfe64fe488fff74d1e486d33483cde56
RMD160 (PyX-0.15.tar.gz) = 61ec70ac7fb7b7b8a6fdac5cdb5c9328775c7018
SHA512 (PyX-0.15.tar.gz) = c312b38b9f204b8a8832ab71da5be8c9afc417a095c8ccf242b3d3ebec63338a9d55abab4e548d1718abadf12ea7652cdad51731acdc8f6acd3d8608aa919919
Size (PyX-0.15.tar.gz) = 2559840 bytes

0 comments on commit 36c46dd

Please sign in to comment.