PyYAML is a YAML parser and emitter for the Python programming language.
PyYAML features:
* a complete YAML 1.1 parser. In particular, PyYAML can parse all examples
from the specification. The parsing algorithm is simple enough to be a
reference for YAML parser implementors.
* Unicode support including UTF-8/UTF-16 input/output and \u escape
sequences.
* low-level event-based parser and emitter API (like SAX).
* high-level API for serializing and deserializing native Python objects
(like DOM or pickle).
* support for all types from the YAML types repository. A simple extension
API is provided.
* relatively sensible error messages.
===> The following configuration options are available for py39-yaml-6.0.1:
EXAMPLES=on: Build and/or install examples
LIBYAML=on: Use textproc/libyaml for faster parsing
===> Use 'make config' to modify these settings
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568>
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
Switch the optional libyaml to be on by default
There are software packages that expect pyyaml to be compiled
with libyaml support. Switching the default eases using the port
as a dep.
Reported by: thierry
Relax hardcoded paths to fix build with Python 3.8.7
Since r558913 Python 3.8 incorporates BPO-42604 [1] which changed the
shared libs naming scheme. This means "EXT_SUFFIX" is now derived from
SOABI and yields with Python 3.8 to ".cpython-38.so" instead of ".so".
The affected ports strip the libaries in the "post-install" target via
hardcoded path(s) and the build fails at the end because the new extension
is not expected at this place.
Remedy the issue by adding wildcards to these paths. This should also
prepare the ports for future Python releases, which will use the new shared
libs naming scheme.
[1] https://bugs.python.org/issue42604
PR: 252057
Reported by: John Kennedy
Reviewed by: fluffy, koobs
Approved by: koobs (python)
Update to 5.2
Repair incompatibilities introduced with 5.1. The default Loader was changed,
but
several methods like add_constructor still used the old default
A more flexible fix for custom tag constructors
Change default loader for yaml.add_constructor
Change default loader for add_implicit_resolver, add_path_resolver
Make FullLoader safer by removing python/object/apply from the default
FullLoader
Move constructor for object/apply to UnsafeConstructor
Fix bug introduced in 5.1 where quoting went wrong on systems with
sys.maxunicode <= 0xffff
Fix logic for quoting special characters
Convert Python ports to FLAVORS.
Ports using USE_PYTHON=distutils are now flavored. They will
automatically get flavors (py27, py34, py35, py36) depending on what
versions they support.
There is also a USE_PYTHON=flavors for ports that do not use distutils
but need FLAVORS to be set. A USE_PYTHON=noflavors can be set if
using distutils but flavors are not wanted.
A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
added to cope with Python ports that did not have the Python
PKGNAMEPREFIX but are flavored.
USES=python now also exports a PY_FLAVOR variable that contains the
(Only the first 15 lines of the commit message are shown above )
devel/py-yaml: Remove redundant bsd.port.options.mk include
Save one extra parse of bsd.port.mk by moving PORT_OPTIONS:MEXAMPLES under
the bsd.port.pre.mk include and removing bsd.port.options.mk.
Reported by: mat
Use setuptools for all Python ports.
Setuptools is the preferred method to manage Python distributions after
many changes to the packaging ecosystem over the past couple of years.
Only ports using USE_PYDISTUTILS= yes are affected by this commit, ports using
USE_PYDISTUTILS= easy_install remains the same however this usage is now
deprecated and should be converted to USE_PYDISTUTILS= yes.
Some Python distributions do not work with setuptools out of the box because
they extend the install command from distutils and not setuptools, and
so they need to be patched accordingly.
pip (which leverages setuptools) works around the issue by using eggs, however
we want to get rid of those as well, as support for "flat" installation is
(Only the first 15 lines of the commit message are shown above )
Make port option less confusing.
In the context of this port, turning on yaml support
doesn't enable the optional yaml support like it does
for other ports. It compiles the yaml support against
textproc/libyaml, which provides for yaml parsing with
the speed of C in the ease of use of a scripting language.
PR: ports/183763
Submitted by: Michael Gmelin <freebsd@grem.de>
- Make Python 2.5.1 the default Python version
- Add significantly better support in bsd.python.mk for working with
Python Eggs and the easy_install system
Tested by: pointyhat runs
Approved by: pav (portmgr)
Most work by: perky
Thanks to: pav
Fix a ZeroDivisionError on FreeBSD 4, by bringing in a vendor
patch [SVN#168 at pyyaml.org].
Bump PORTREVISION.
PR: ports/99009
Submitted by: jkoshy
Approved by: Neal Nelson (neal at nelson dot name) [MAINTAINER]
update devel/py-yaml:
o Fix unfetchable distfile, but in the same time
o Update to 0.32
o Change the distinfo
PR: 53036
Submitted by: Serge Gagnon <gagnon__s@videotron.ca>