1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-08-04 12:22:09 +03:00
Commit Graph

121 Commits

Author SHA1 Message Date
379773594d python: Add a distutils build system
Add a template setup.py.in which will be used by the win32 Makefiles so that we
can generate the full setup.py which can be used to build the libxslt Python
bindings, if chosen to do so when configuring via 'cscript configure.js'.
2022-03-10 10:05:25 +08:00
05cea0c72c Update links
Documentation and releases are now available on gitlab.gnome.org.
2022-02-14 22:31:18 +01:00
b3076bccdb Finish and clean up Python 3 support
- Handle Python 3 types similar to libxml2
- Copy new versions of libxml_xmlXPathDestructNsNode and
  libxml_xmlXPathObjectPtrConvert from libxml2
- Fix compiler warnings
- Fix whitespace
- Remove unneeded imports from __future__
- Remove test in extelem.py (StringIO can't be converted to FILE under
  Python 3)
- string.lower() works in both Python 2 and 3

Closes #25.
2020-11-19 17:59:37 +01:00
a2db8da1ac Initial support for Python 3
Squashed merge of pull request !19.
2020-11-19 17:08:37 +01:00
e9709fa901 Candidate release 1 of libxslt 1.1.34
* doc/xsltproc.xml: moved to new place for docbook stylesheet and work
  around a missing / inrewrite of  docbook xsl catalog in Fedora 30
* tests/fuzz/Makefile.am: add fuzz.h to sources
* python/Makefile.am: there is no more TODO
* libxslt.spec.in: run make tests instead of check to avoid fuzz in that
  environment, and drop python TODO
2019-10-23 20:49:08 +02:00
7a9b9e5300 Remove empty TODO file 2019-10-21 12:53:46 +02:00
5307ec9978 Remove generated file libxsltclass.txt from version control 2019-10-21 12:52:54 +02:00
47c8300023 Make sure that Python tests exit with error code 2019-10-21 12:52:41 +02:00
e176258ef6 Remove WIN32_EXTRA_* variables
Simply use LDFLAGS and LIBS instead.
2019-02-12 12:31:20 +01:00
d5d511f0b7 Fix vsnprintf in Python bindings on Windows
- Fix vsnprintf on older MSVC versions
- Stop using _vsnprintf on MinGW
2019-02-12 12:31:20 +01:00
51b79bfa90 Fix callback signatures in Python bindings 2018-01-16 19:04:33 +01:00
3bea417b5e Fix extension callback signatures 2017-11-29 16:52:13 +01:00
9210e72590 Fix typos
Fixes bug 788668.
2017-11-04 16:07:59 +01:00
8760bb2276 Fix Windows compiler warnings
Fixes bug 788317. Thanks to J. Peter Mugaas for the initial patch.
2017-10-25 16:21:23 +02:00
477f5779ed Fix compiler warnings in Python bindings 2017-10-08 14:26:56 +02:00
90e8b9066d Fix a couple of places where (f)printf parameters were broken
As reported by Thomas Jarosch <thomas.jarosch@intra2net.com>
2013-01-30 17:31:37 +01:00
358bd4e46c Fix python build by using libxsltmod_la_CPPFLAGS instead of AM_CPPFLAGS
Commit a2cd8a03 broke the --with-python build by moving includes from
INCLUDES to AM_CPPFLAGS. AM_CPPFLAGS gets ignored when a target-specific
*_CPPFLAGS variable exists, but at least some automake versions
automatically add "libxsltmod_la_CPPFLAGS = -shared" to python/Makefile.in

https://bugzilla.gnome.org/show_bug.cgi?id=684637
2012-11-21 14:25:45 +08:00
a27de70018 Release of libxslt-1.1.27
* configure.in doc/symbols.xml doc/xslt.html: updated for the release
* NEWS config.h.in doc/* */*.syms : regenerated
2012-09-12 14:37:09 +08:00
0ca0a15ffb Big space and tabs cleanup
Remove spaces followed by tabs, and space and tabs at the end of lines
2012-09-12 14:07:24 +08:00
39b0c27af8 Remove .cvsignore files which are not needed anymore 2012-09-04 14:28:28 +08:00
a2cd8a03ac Various "make distcheck" and other fixes
Makefile.am:

* Use $(VAR), not @VAR@, as the former is the correct form for AC_SUBST'ed
   variables in Makefile.am files

* Touch these *.xml/*.syms files in the "dist-hook" target to prevent them
   from being regenerated, because the "make dist" process in itself
   updates the timestamps of the source files when it copies them into
   $(distdir)

* Add EXTRA_LIBS (-lrt on my system) to xsltConf.sh, as this is a required
   dependency when client applications link against -lxslt

   (note that the definition of EXTRA_LIBS has been changed; see below)

* Removed MAKEFLAGS+=--silent bits, as this is not compatible with non-GNU
   Make programs

autogen.sh:

* Add --warnings=all options to automake and autoconf invocations, to
   better catch potential problems (most of which I've fixed in this patch)

configure.in:

* Replaced obsolete macros with their current equivalents; for reference,
   see

     http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html

   (I removed AC_ISC_POSIX outright because the doc states it is no longer
   useful)

* test(1) uses "=" as an operator, not "=="

* Fixed quoting on an AC_LINK_IFELSE() invocation to quell Autoconf errors

* Don't add redundant libraries to EXTRA_LIBS, because (1) this variable
   already contains LibXSLT's own additional system-library deps, and is
   useful in that form, and (2) the LibXML2 deps are already handled by
   Libtool

* Don't delete files in srcdir, and don't create the symlink to
   "Copyright" there either

   (I don't understand why this is being symlinked in the first place...)

doc/Makefile.am:

* Can't use wildcards in EXTRA_DIST, because this breaks dependencies
   (e.g. you can't "make EXSLT/\*.html"), and they only work properly when
   building inside the source tree; these have been replaced with their
   expansions. Other entries have been added here in lieu of the wildcards
   in the dist-hook target, as well as opportunistic use of the $(*PAGES)
   variables.

* Don't define an "all" target, because this steps on Automake's toes; use
   "all-local" instead

* Define and use an "xsltproc" variable to reference an in-tree-built
   version of xsltproc, instead of e.g. $(bindir)/xsltproc

   NOTE: The makefile also uses $(XSLTPROC), which names an external
   instance of the program found at configure time. Some instances of this
   could probably be changed to $(xsltproc) to remove the dependency on an
   existing installed program.

* Qualified various filenames as appropriate with $(srcdir)

* Use $(XMLLINT) consistently instead of $(bindir)/xmllint

* In the "libxslt-api.xml ..." rule, cd into $(srcdir) before invoking
   apibuild.py as this script has to run in srcdir anyway

* In the "clean-local" rule, clear out some additional files to allow
   "make distcheck" to pass

* Eliminated the redundant "maintainer-clean-local" rule

* Added a "distclean-local" rule to clear out the build directory in an
   out-of-source build to allow "make distcheck" to pass

* Added a "check-extra-dist" target to make it easier to check that
   EXTRA_DIST isn't missing anything

* Use $(MKDIR_P), not $(mkinstalldirs), as the latter name is obsolete

* Use $(VAR) instead of @VAR@

* The "dist-hook" target didn't work (if any generated files were in
   builddir and not in srcdir), and is no longer needed thanks to the
   comprehensive EXTRA_DIST variable

* Added an "uninstall-local" rule to allow "make distcheck" to pass

* Updated the .PHONY target list, removed non-existent targets

doc/symbols.xml:

* Needed to add this bit to make the generation scripts shut up

libexslt/Makefile.am:

* AM_CPPFLAGS should be used instead of INCLUDES, as the latter is an
   obsolete name

* Moved $(LIBXML_CFLAGS) to AM_CFLAGS, to segregate CFLAGS from CPPFLAGS

   (Note that $(CFLAGS) need not be added to AM_CFLAGS, because Automake
   already references both in the build rules)

* Use $(VAR) instead of @VAR@

libxslt.pc.in:

* Add EXTRA_LIBS (-lrt on my system), as this is a required dependency
   when client applications link against -lxslt

libxslt/Makefile.am:

* AM_CPPFLAGS should be used instead of INCLUDES, as the latter is an
   obsolete name

* Moved $(LIBXML_CFLAGS) to AM_CFLAGS, to segregate CFLAGS from CPPFLAGS

* Use $(VAR) instead of @VAR@, $(MKDIR_P) instead of $(mkinstalldirs)

* Use $(MKDIR_P), not $(mkinstalldirs), as the latter name is obsolete

libxslt/xsltutils.c:

* Some systems don't know about CLOCK_MONOTONIC; older Solaris knows about
   CLOCK_HIGHRES. Some systems, alas, have no usable alternative to
   CLOCK_REALTIME.

python/Makefile.am:

* AM_CPPFLAGS should be used instead of INCLUDES, as the latter is an
   obsolete name

* Moved $(LIBXML_CFLAGS) to AM_CFLAGS, to segregate CFLAGS from CPPFLAGS

* Because libxslt-py.c is (presumably) supposed to be generated every time
   at build time, don't bundle it in the dist tarball

* Use $(VAR) instead of @VAR@

* libxsltclass.py is a generated file, so it doesn't get qualified with
   $(srcdir)

* Use $(MKDIR_P) instead of (mkinstalldirs)

* Added an uninstall-local rule so that "make distcheck" passes

* Removed the $(srcdir) qualifications in the GENERATED file list, as
   these files may exist in builddir

* In the gen_prog rule, qualify the script invocation with $(srcdir), and
   set the SRCDIR environment variable so that the script can find the
   files it needs when builddir != srcdir

* Don't define an "all" target, as this steps on Automake's toes

python/generator.py:

* Get the source directory from the SRCDIR environment variable, and use
   it appropriately

python/tests/Makefile.am:

* Set CLEANFILES instead of defining a "clean" rule

* Use $(VAR) instead of @VAR@, $(MKDIR_P) instead of $(mkinstalldirs)

tests/*/Makefile.am, tests/exslt/*/Makefile.am:

* Need to clean up .memdump files for "make distcheck" to pass

* Don't define an "all" target, as this steps on Automake's toes

tests/REC/Makefile.am:

* Added two missing *.stand.out files to EXTRA_DIST

tests/XSLTMark/Makefile.am:

* Replaced the GNU-Make-specific %.out bit with a more broadly compatible
   rule

   (the "dummy" bit shuts up Automake)

* Use "$(xsltproc)" instead of "$(top_builddir)/xsltproc/xsltproc"

* Use a less $(MAKE)-heavy invocation in the "tests" target

* Replaced a conflicting "clean" target with CLEANFILES

* Added a dependency on $(xsltproc) to all the test targets

* Added a .PHONY target list

tests/docbook/Makefile.am:

* Ditched the "echo -n" bit, because it wasn't working as advertised

* Create output directories for out-of-source builds

* "$(basename $$i)" is a typo in a makefile

* Don't embed $(srcdir) in $out/$html/$fo/$msg/$xhtml, so that we can
   refer to these files in builddir or srcdir

* Add a trailing "echo" to complete the "echo -n"

* Don't output files unconditionally to srcdir (it may be read-only, for
   starters)

tests/plugins/Makefile.am:

* AM_CPPFLAGS should be used instead of INCLUDES, as the latter is an
   obsolete name

   (Note that the "$(LIBXML_CFLAGS) $(LIBXSLT_CFLAGS)" bit that was here
   can be dropped entirely, because these already appear in
   xmlsoft_org_xslt_testplugin_la_CFLAGS)

* Use noinst_LTLIBRARIES inside the WITH_MODULES conditional instead of
   EXTRA_LTLIBRARIES, as this is cleaner (and disallows building the plugin
   if module support is disabled)

* Need to clean up *.res files for "make distcheck" to pass

* Use the abs_builddir variable conveniently provided to us by Automake
   instead of a GNU Make $(shell ...) construct

xslt-config.in:

* Add EXTRA_LIBS (-lrt on my system), as this is a required dependency
   when client applications link against -lxslt

xsltproc/Makefile.am:

* AM_CPPFLAGS should be used instead of INCLUDES, as the latter is an
   obsolete name

* Moved $(LIBXML_CFLAGS) into AM_CFLAGS

* Use $(VAR) instead of @VAR@

* Need to clean .memdump for "make distcheck" to pass

* Added rules to build lib[e]xslt.la if needed, which allows test
   makefiles to build xsltproc on the fly even if nothing else has been
   built already

* Create .memdump file in the "tests" target, as it's being grepped
   afterward
2012-08-09 19:46:03 +08:00
afa29e64cc Fix python generator to not use deprecated xmllib
* python/generator.py: use xml.sax instead, patch based on similar
  fix for libvirt by Cole Robinson <crobinso@redhat.com>
2010-01-13 15:41:06 +01:00
a1981a0da0 link python module with python library
libxslt python module wasn't linked with python library
* configure.in python/Makefile.am: detect and add appropriate linking
  flags
2009-09-24 18:16:07 +02:00
482e7b7e12 Add API versioning and various cleanups
* doc/symbols.xml doc/syms.xsl doc/checkapisym.xsl libxslt/libxslt.syms:
  the new symbol files, checking and stylesheets, based on libxml2 ones
* configure.in doc/Makefile.am libxslt/Makefile.am: modifications needed
  to activate the symbol versioning
* doc/libxslt-api.xml doc/libxslt-refs.xml doc/EXSLT/libexslt-api.xml
  doc/EXSLT/libexslt-refs.xml: regenerated
* libexslt/crypto.c libxslt/Makefile.am libxslt/keys.c libxslt/variables.c
  libxslt/xslt.c libxslt/xsltInternals.h libxslt/xsltlocale.c
  libxslt/xsltlocale.h: various cleanups
2009-09-16 16:16:21 +02:00
eac88d34bf applied patch from Roumen Petrov for mingw cross compilation problems
* python/Makefile.am libxslt/Makefile.am configure.in
  libexslt/Makefile.am: applied patch from Roumen Petrov for
  mingw cross compilation problems raised by Rich Jones
daniel

svn path=/trunk/; revision=1493
2008-11-14 14:08:37 +00:00
ec5c63b43a release of 1.1.24 syntactic cleanup (Martin) Daniel
* configure.in doc/*: release of 1.1.24
* python/generator.py: syntactic cleanup (Martin)
Daniel

svn path=/trunk/; revision=1473
2008-05-13 15:52:56 +00:00
a91a7c5717 release of 1.1.23 Daniel
* configure.in doc/*: release of 1.1.23
Daniel

svn path=/trunk/; revision=1467
2008-04-08 17:17:46 +00:00
ce765ab890 fix an infinite loop bug Daniel
* python/generator.py: fix an infinite loop bug
Daniel

svn path=/trunk/; revision=1464
2008-04-08 08:22:14 +00:00
3c0b01fbdc patch from Rob Richards for VS 2008 fix a problem with namespace nodes
* libxslt/win32config.h: patch from Rob Richards for VS 2008
* python/types.c: fix a problem with namespace nodes coming from
  XPath nodesets.
Daniel

svn path=/trunk/; revision=1458
2008-03-13 08:39:24 +00:00
98893b611b applied a portability patch from Stephane Bidoul Daniel
* python/tests/pyxsltproc.py: applied a portability patch from 
  Stephane Bidoul
Daniel

svn path=/trunk/; revision=1454
2008-02-05 07:37:55 +00:00
f9876fd931 changed iterator argument for Py_Dict_Next from int to ssize_t to fix
* python/libxslt.c: changed iterator argument for Py_Dict_Next
  from int to ssize_t to fix x86_64 bug #489854

svn path=/trunk/; revision=1447
2007-10-25 00:43:22 +00:00
66af4a3907 applied patch from Daniel Gryniewicz to fix a segfault caused by a
* python/libxslt.c: applied patch from Daniel Gryniewicz to
  fix a segfault caused by a parameter array not being preset
  to zero.

svn path=/trunk/; revision=1444
2007-08-30 00:17:46 +00:00
f13db5792e fixed tab/space inconsistency with patch provided by Andreas Hanke (bug
* python/libxsl.py: fixed tab/space inconsistency with patch provided by Andreas Hanke (bug #409193)

svn path=/trunk/; revision=1422
2007-02-18 16:58:11 +00:00
40e7c29b35 added new function replace from Joel Reed. added new test case for above.
* libexslt/strings.c: added new function replace from Joel
          Reed.
        * tests/exslt/Makefile.am, replace.1.xml, replace.1.xsl,
          replace.1.out: added new test case for above.
        * libxslt.spec.in: trivial change from Gnome to GNOME
        * configure.in: trivial change for flags on my compilations
        * libxslt/documents.c, libxslt/documents.h, libxslt/keys.c,
          libxslt/keys.h, libxslt/variables.c, libxslt/templates.c,
          libxslt/transform.c, libxslt/variables.c, libxslt/xslt.c,
          libxslt/xsltutils.c: fixed some documentation/comments and
          compilation warnings - no change to logic.
        * re-generated the documentation.

svn path=/trunk/; revision=1413
2007-01-11 03:13:13 +00:00
c2d91bc1cb applied patch supplied by Kjartan Maraas (bug #388567).
* python/libxslt.c: applied patch supplied by Kjartan Maraas
  (bug #388567).
2006-12-22 17:12:57 +00:00
50605fed22 applied patch from Nic James Ferrier to make stylesheets comparable and to
* configure python/generator.py python/libxsl.py
  python/libxslt-python-api.xml python/libxslt.c
  python/tests/2stage.py python/tests/loader.py: applied patch from
  Nic James Ferrier to make stylesheets comparable and to add
  transformContext handling
Daniel
2006-12-11 11:11:06 +00:00
951beb01d4 preparing release of libxslt-1.1.18, this bumps libxml2 requirement to
* NEWS configure.in doc//*: preparing release of libxslt-1.1.18,
  this bumps libxml2 requirement to 1.6.27
* libexslt/date.c libxslt/namespaces.h libxslt/xslt.c
  libxslt/xsltInternals.h: cosmetic cleanups to restore the
  API extraction
Daniel
2006-10-26 13:32:42 +00:00
f32d5c181d applied fix for accessor functions of a stylesheet returning pointers to
* python/libxslt-python-api.xml: applied fix for accessor functions
  of a stylesheet returning pointers to immutable strings, patch
  from #320540
* xsltproc/xsltproc.c: fix the xinclude on stylehseet problem
  by adding a new parameter to xsltproc names --xincludestyle
Daniel
2006-10-11 21:19:49 +00:00
7f5d411685 a missing DESTDIR fix reference to build paths in python module fix the
* libxslt/Makefile.am: a missing DESTDIR
* python/Makefile.am: fix reference to build paths in python module
* libexslt/exsltconfig.h.in libxslt/xsltconfig.h.in: fix the header
  comments on version values, the 3 are patches from Peter
  Breitenlohner   and should fix #340995
Daniel
2006-10-11 19:36:45 +00:00
96f2cda8a7 applied patch from Daniel Leidert to fix some typo applied another patch
* doc/xslt.html python/tests/pyxsltproc.py xsltproc/xsltproc.c:
  applied patch from Daniel Leidert to fix some typo
* xsltproc.xml xsltproc.1: applied another patch from Daniel Leidert
  and regenerated
Daniel
2006-08-21 08:46:05 +00:00
1564b7c617 *** empty log message *** 2006-08-04 13:01:17 +00:00
d3eaa2f845 fix float and boolean XPath conversions try to fix Stephane Bidoul attempt
* python/types.c: fix float and boolean XPath conversions
* libxslt/xsltutils.c: try to fix Stephane Bidoul attempt
  at setting XInclude support.
Daniel
2006-07-19 19:04:52 +00:00
63b4680f80 Fixed regression tests wrt usage of the attributes
* tests/general/bug-36-inc.xsl tests/general/bug-37-inc.xsl
  tests/general/bug-65-inc.xsl tests/general/bug-100.xsl
  tests/REC/test-15-1.xsl tests/REC/test-7.1.1-3.xsl
  tests/namespaces/extra2.xsl tests/extensions/module.xsl
  tests/plugins/plugin.xsl python/tests/extelem.py
  python/tests/extfunc.py: Fixed regression tests wrt
  usage of the attributes "exclude-result-prefixes"
  and "extension-element-prefixes". test-7.1.1-3.xsl fails
  now, since the code still does not exclude ns-decls
  correctly.
2006-03-30 15:31:11 +00:00
1255ae2e9a Nic Ferrier found debug statement left in the XPath conversion code Daniel
* python/types.c: Nic Ferrier found debug statement left in the
  XPath conversion code
Daniel
2006-02-22 15:11:07 +00:00
36006fefbe fixed type for doctypeSystem and doctypePublic (problem reported on the
* python/libxslt-python-api.xml: fixed type for doctypeSystem
  and doctypePublic (problem reported on the list by Sitsofe
  Wheeler)
* doc/libxslt-api.xml: updated database.
2004-07-12 00:29:20 +00:00
23fd193621 fixes Python on 64bits box problem. Daniel
* python/libxsl.py: fixes Python on 64bits box problem.
Daniel
2004-07-09 09:52:33 +00:00
a3a4c25d47 convenience change try to avoid calling libxml2 cleanup function directly
* configure.in: convenience change
* python/libxsl.py python/libxslt-python-api.xml python/libxslt.c:
  try to avoid calling libxml2 cleanup function directly but go
  though the python wrapper of libxml2 for memory debug accounting.
Daniel
2004-07-02 13:53:31 +00:00
95439b2714 release of libxslt-1.1.7 Daniel
* configure.in: release of libxslt-1.1.7
Daniel
2004-05-17 04:14:57 +00:00
acfb1b9dd3 Add generated files, to make cvs silent.
* python/.cvsignore: Add generated files, to make cvs silent.

	* .cvsignore: Add missing libexslt.pc and stamp-h1
2004-04-01 14:18:32 +00:00
675732396c updated and rebuilt the documentation preparing release of 1.1.3 cleanup
* configure.in, doc/*: updated and rebuilt the documentation
  preparing release of 1.1.3
* libxslt/attrvt.c libxslt/xsltInternals.h: cleanup
Daniel
2004-02-16 15:07:47 +00:00