Loading .gitlab-ci.yml +7 −20 Original line number Diff line number Diff line image: python image: python:slim stages: - test Loading @@ -9,28 +9,15 @@ before_script: - apt-get update -qq && apt-get install -y -q ghostscript - pip install -r requirements.txt python36: image: python:3.6 test: stage: test script: tox -e py36 python37: image: python:3.7 stage: test script: tox -e py37 python38: image: python:3.8 stage: test script: tox -e py38 python39: image: python:3.9 stage: test script: tox -e py39 image: python:${PYTHON_VERSION}-slim script: tox -e "py${PYTHON_VERSION/./}" parallel: matrix: - PYTHON_VERSION: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] linters: image: python:3.9 stage: test script: tox -e linters Loading .readthedocs.yaml 0 → 100644 +19 −0 Original line number Diff line number Diff line # Documentation: https://docs.readthedocs.io/en/stable/config-file/ version: 2 build: os: "ubuntu-22.04" tools: python: "3.11" jobs: pre_build: - python3 setup.py egg_info --egg-base docs/ # Build from the docs/ directory with Sphinx sphinx: configuration: docs/conf.py # Explicitly set the version of Python and its requirements python: install: - requirements: requirements.txt CHANGES.txt +60 −7 Original line number Diff line number Diff line Changes ================== 0.8 (2025-05-28) ---------------- Bugfixes: * Fix unnecessary runtime dependency on setuptools. High-level API: * Explicitly require a first argument called "progname". This is to avoid the common error not passing a progname by pointing users to it. This is fully backward compatible * Issue a warning if first argument looks like an option. * Fix crash if gs.new_instance() fails. Low-level API: * Breaking change (only effecting the low-level API): init_with_args() no longer catches e_Quit, but raises an exception like for any other error except e_Info. * Pass correct value to gslib if user_error is set. Improved Documentation: * Enhance documentation * Add some doc-strings. * Fix some linting issues. Misc: * Add testing with Python 3.10, 3.11, 3.12 and 3.13. * Revise testing, packaging and CI/CD. * Make tests independent of fonts, thus avoiding test failures. * Enhance examples. 0.7 (2021-03-06) ---------------- Loading Loading @@ -30,7 +76,8 @@ Changes Minimum required Python version is now 3.6. :0.6 (2018-01-16): 0.6 (2018-01-16) ---------------- * Add support for Python 3.x (tested with Python 3.4). Minimum required Python version is now 2.7. Loading @@ -57,19 +104,22 @@ Changes * Set up continuous integration tests. :0.5 (skipped): 0.5 (skipped) ------------- * v0.5 was skipped to avoid version conflicts with fork `python3-ghostscript`. All changes of that fork are integrated into v0.6. :0.4.1 (2011-02-09): 0.4.1 (2011-02-09) ------------------ * Fixed import module on Windows XP. Thanks to Akihiro Takizawa for the patch. :0.4 (2011-01-29): 0.4 (2011-01-29) ---------------- * Fixed typo in function call name ctypes.util.find_library Loading @@ -86,7 +136,8 @@ Changes * Added win32 example-batch file for testing and other improvements/fixes on examples an documentation. :0.3 (2010-08-12): 0.3 (2010-08-12) ---------------- * Added support for win32: The DLL to load is searched in registry. Loading @@ -100,11 +151,13 @@ Changes * Added nice project logo :0.2 (2010-08-06): 0.2 (2010-08-06) ---------------- * Fixed several bugs, esp. for running strings by Ghostscript. :0.1 (2010-08-06): 0.1 (2010-08-06) ---------------- * This is the first public release of the Python Ghostscript C-API interface. Loading COPYING +4 −4 Original line number Diff line number Diff line GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Loading Loading @@ -645,7 +645,7 @@ the "copyright" line and a pointer to where the full notice is found. GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>. Also add information on how to contact you by electronic and paper mail. Loading @@ -664,11 +664,11 @@ might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <http://www.gnu.org/licenses/>. <https://www.gnu.org/licenses/>. The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <http://www.gnu.org/philosophy/why-not-lgpl.html>. <https://www.gnu.org/philosophy/why-not-lgpl.html>. MANIFEST.in +3 −3 Original line number Diff line number Diff line include COPYING include README.txt exclude .gitgnore recursive-include test *.xml *.py *.bmp include README.rst exclude .gitignore recursive-include test *.xml *.py *.bmp *.ps #recursive-include doc *.html *.1 Loading
.gitlab-ci.yml +7 −20 Original line number Diff line number Diff line image: python image: python:slim stages: - test Loading @@ -9,28 +9,15 @@ before_script: - apt-get update -qq && apt-get install -y -q ghostscript - pip install -r requirements.txt python36: image: python:3.6 test: stage: test script: tox -e py36 python37: image: python:3.7 stage: test script: tox -e py37 python38: image: python:3.8 stage: test script: tox -e py38 python39: image: python:3.9 stage: test script: tox -e py39 image: python:${PYTHON_VERSION}-slim script: tox -e "py${PYTHON_VERSION/./}" parallel: matrix: - PYTHON_VERSION: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] linters: image: python:3.9 stage: test script: tox -e linters Loading
.readthedocs.yaml 0 → 100644 +19 −0 Original line number Diff line number Diff line # Documentation: https://docs.readthedocs.io/en/stable/config-file/ version: 2 build: os: "ubuntu-22.04" tools: python: "3.11" jobs: pre_build: - python3 setup.py egg_info --egg-base docs/ # Build from the docs/ directory with Sphinx sphinx: configuration: docs/conf.py # Explicitly set the version of Python and its requirements python: install: - requirements: requirements.txt
CHANGES.txt +60 −7 Original line number Diff line number Diff line Changes ================== 0.8 (2025-05-28) ---------------- Bugfixes: * Fix unnecessary runtime dependency on setuptools. High-level API: * Explicitly require a first argument called "progname". This is to avoid the common error not passing a progname by pointing users to it. This is fully backward compatible * Issue a warning if first argument looks like an option. * Fix crash if gs.new_instance() fails. Low-level API: * Breaking change (only effecting the low-level API): init_with_args() no longer catches e_Quit, but raises an exception like for any other error except e_Info. * Pass correct value to gslib if user_error is set. Improved Documentation: * Enhance documentation * Add some doc-strings. * Fix some linting issues. Misc: * Add testing with Python 3.10, 3.11, 3.12 and 3.13. * Revise testing, packaging and CI/CD. * Make tests independent of fonts, thus avoiding test failures. * Enhance examples. 0.7 (2021-03-06) ---------------- Loading Loading @@ -30,7 +76,8 @@ Changes Minimum required Python version is now 3.6. :0.6 (2018-01-16): 0.6 (2018-01-16) ---------------- * Add support for Python 3.x (tested with Python 3.4). Minimum required Python version is now 2.7. Loading @@ -57,19 +104,22 @@ Changes * Set up continuous integration tests. :0.5 (skipped): 0.5 (skipped) ------------- * v0.5 was skipped to avoid version conflicts with fork `python3-ghostscript`. All changes of that fork are integrated into v0.6. :0.4.1 (2011-02-09): 0.4.1 (2011-02-09) ------------------ * Fixed import module on Windows XP. Thanks to Akihiro Takizawa for the patch. :0.4 (2011-01-29): 0.4 (2011-01-29) ---------------- * Fixed typo in function call name ctypes.util.find_library Loading @@ -86,7 +136,8 @@ Changes * Added win32 example-batch file for testing and other improvements/fixes on examples an documentation. :0.3 (2010-08-12): 0.3 (2010-08-12) ---------------- * Added support for win32: The DLL to load is searched in registry. Loading @@ -100,11 +151,13 @@ Changes * Added nice project logo :0.2 (2010-08-06): 0.2 (2010-08-06) ---------------- * Fixed several bugs, esp. for running strings by Ghostscript. :0.1 (2010-08-06): 0.1 (2010-08-06) ---------------- * This is the first public release of the Python Ghostscript C-API interface. Loading
COPYING +4 −4 Original line number Diff line number Diff line GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Loading Loading @@ -645,7 +645,7 @@ the "copyright" line and a pointer to where the full notice is found. GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>. Also add information on how to contact you by electronic and paper mail. Loading @@ -664,11 +664,11 @@ might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <http://www.gnu.org/licenses/>. <https://www.gnu.org/licenses/>. The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <http://www.gnu.org/philosophy/why-not-lgpl.html>. <https://www.gnu.org/philosophy/why-not-lgpl.html>.
MANIFEST.in +3 −3 Original line number Diff line number Diff line include COPYING include README.txt exclude .gitgnore recursive-include test *.xml *.py *.bmp include README.rst exclude .gitignore recursive-include test *.xml *.py *.bmp *.ps #recursive-include doc *.html *.1