Skip to content

Commit

Permalink
rename package
Browse files Browse the repository at this point in the history
  • Loading branch information
FriedrichFroebel committed Dec 13, 2024
1 parent 9f3cbb2 commit 5e2eb4d
Show file tree
Hide file tree
Showing 30 changed files with 159 additions and 88 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
- name: uninstall
run: |
cd /
pip uninstall -y python-djvulibre
pip uninstall -y djvulibre-python
set +e; python -c 'import djvu'; [ $? -eq 1 ]
- name: build sdist
run:
Expand All @@ -115,7 +115,7 @@ jobs:
- name: uninstall
run: |
cd /
pip uninstall -y python-djvulibre
pip uninstall -y djvulibre-python
set +e; python -c 'import djvu'; [ $? -eq 1 ]
- name: build wheel
run:
Expand All @@ -135,7 +135,7 @@ jobs:
- name: uninstall
run: |
cd /
pip uninstall -y python-djvulibre
pip uninstall -y djvulibre-python
set +e; python -c 'import djvu'; [ $? -eq 1 ]
- name: install directly
run:
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Publish Python distribution

on:
release:
types: [published]

jobs:
build:
name: Build distribution
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a source tarball
run: python3 -m build --sdist
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/

publish-to-pypi:
name: Publish Python distribution to PyPI
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/djvulibre-python
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
6 changes: 3 additions & 3 deletions djvu/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Copyright © 2015-2021 Jakub Wilk <[email protected]>
# Copyright © 2022-2024 FriedrichFroebel
#
# This file is part of python-djvulibre.
# This file is part of djvulibre-python.
#
# python-djvulibre is free software; you can redistribute it and/or modify it
# djvulibre-python is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
#
# python-djvulibre is distributed in the hope that it will be useful, but
# djvulibre-python is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
6 changes: 3 additions & 3 deletions djvu/common.pxi
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Copyright © 2008-2018 Jakub Wilk <[email protected]>
# Copyright © 2022-2024 FriedrichFroebel
#
# This file is part of python-djvulibre.
# This file is part of djvulibre-python.
#
# python-djvulibre is free software; you can redistribute it and/or modify it
# djvulibre-python is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
#
# python-djvulibre is distributed in the hope that it will be useful, but
# djvulibre-python is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
Expand Down
6 changes: 3 additions & 3 deletions djvu/const.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Copyright © 2008-2015 Jakub Wilk <[email protected]>
# Copyright © 2022-2024 FriedrichFroebel
#
# This file is part of python-djvulibre.
# This file is part of djvulibre-python.
#
# python-djvulibre is free software; you can redistribute it and/or modify it
# djvulibre-python is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
#
# python-djvulibre is distributed in the hope that it will be useful, but
# djvulibre-python is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
Expand Down
6 changes: 3 additions & 3 deletions djvu/decode.pxd
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Copyright © 2007-2020 Jakub Wilk <[email protected]>
# Copyright © 2022-2024 FriedrichFroebel
#
# This file is part of python-djvulibre.
# This file is part of djvulibre-python.
#
# python-djvulibre is free software; you can redistribute it and/or modify it
# djvulibre-python is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
#
# python-djvulibre is distributed in the hope that it will be useful, but
# djvulibre-python is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
Expand Down
6 changes: 3 additions & 3 deletions djvu/decode.pyx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Copyright © 2007-2022 Jakub Wilk <[email protected]>
# Copyright © 2022-2024 FriedrichFroebel
#
# This file is part of python-djvulibre.
# This file is part of djvulibre-python.
#
# python-djvulibre is free software; you can redistribute it and/or modify it
# djvulibre-python is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
#
# python-djvulibre is distributed in the hope that it will be useful, but
# djvulibre-python is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
Expand Down
6 changes: 3 additions & 3 deletions djvu/sexpr.pxd
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Copyright © 2007-2018 Jakub Wilk <[email protected]>
# Copyright © 2022-2024 FriedrichFroebel
#
# This file is part of python-djvulibre.
# This file is part of djvulibre-python.
#
# python-djvulibre is free software; you can redistribute it and/or modify it
# djvulibre-python is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
#
# python-djvulibre is distributed in the hope that it will be useful, but
# djvulibre-python is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
Expand Down
6 changes: 3 additions & 3 deletions djvu/sexpr.pyx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Copyright © 2007-2019 Jakub Wilk <[email protected]>
# Copyright © 2022-2024 FriedrichFroebel
#
# This file is part of python-djvulibre.
# This file is part of djvulibre-python.
#
# python-djvulibre is free software; you can redistribute it and/or modify it
# djvulibre-python is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
#
# python-djvulibre is distributed in the hope that it will be useful, but
# djvulibre-python is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
Expand Down
19 changes: 16 additions & 3 deletions doc/README
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Overview
========

**python-djvulibre** is a set of Python bindings for
**djvulibre-python** is a set of Python bindings for
the DjVuLibre_ library, an open source implementation of DjVu_.

.. _DjVuLibre:
Expand All @@ -12,7 +12,7 @@ the DjVuLibre_ library, an open source implementation of DjVu_.
Prerequisites
=============

The following software is required to build python-djvulibre:
The following software is required to build djvulibre-python:

* DjVuLibre (≥ 3.5.26)
* Python_ (≥ 3.6)
Expand All @@ -33,6 +33,19 @@ Additionally, the following software is needed to run the tests:
.. _Ghostscript:
https://www.ghostscript.com/

Installation
============

The easiest way to install djvulibre-python is from PyPI::

pip install djvulibre-python

Alternatively, you can use djvulibre-python without installing it, straight out of an unpacked source tarball or a VCS checkout.

It's also possible to install it from source for the current interpreter with::

pip install .

About this fork
===============

Expand All @@ -55,6 +68,6 @@ Differences from upstream
Acknowledgment
==============

python-djvulibre development was supported by the Polish Ministry of Science
Initial python-djvulibre development was supported by the Polish Ministry of Science
and Higher Education's grant no. N N519 384036 (2009–2012,
https://bitbucket.org/jsbien/ndt).
8 changes: 4 additions & 4 deletions doc/api/conf.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Copyright © 2009-2021 Jakub Wilk <[email protected]>
# Copyright © 2022-2024 FriedrichFröbel
#
# This file is part of python-djvulibre.
# This file is part of djvulibre-python.
#
# python-djvulibre is free software; you can redistribute it and/or modify it
# djvulibre-python is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
#
# python-djvulibre is distributed in the hope that it will be useful, but
# djvulibre-python is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
Expand All @@ -31,7 +31,7 @@
version = release = _setup.py_version
except ImportError:
from importlib.metadata import version as _version
project = 'python-djvulibre'
project = 'djvulibre-python'
version = _version(project)

pygments_style = 'sphinx'
Expand Down
8 changes: 8 additions & 0 deletions doc/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
djvulibre-python (0.9.1) unstable; urgency=low

[ FriedrichFroebel ]
* Migrate package name to djvulibre-python as the original
package name is blocked on PyPI.

-- FriedrichFroebel <> Fri, 13 Dec 2024 15:20:00 +0100

python-djvulibre (0.9.0) unstable; urgency=low

[ FriedrichFroebel ]
Expand Down
6 changes: 3 additions & 3 deletions examples/djvu-crop-text
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
# Copyright © 2008-2018 Jakub Wilk <[email protected]>
# Copyright © 2022-2024 FriedrichFroebel
#
# This file is part of python-djvulibre.
# This file is part of djvulibre-python.
#
# python-djvulibre is free software; you can redistribute it and/or modify it
# djvulibre-python is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
#
# python-djvulibre is distributed in the hope that it will be useful, but
# djvulibre-python is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
Expand Down
6 changes: 3 additions & 3 deletions examples/djvu-dump-text
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
# Copyright © 2008-2018 Jakub Wilk <[email protected]>
# Copyright © 2022-2024 FriedrichFroebel
#
# This file is part of python-djvulibre.
# This file is part of djvulibre-python.
#
# python-djvulibre is free software; you can redistribute it and/or modify it
# djvulibre-python is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
#
# python-djvulibre is distributed in the hope that it will be useful, but
# djvulibre-python is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
Expand Down
6 changes: 3 additions & 3 deletions examples/djvu2png
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
# Copyright © 2010-2021 Jakub Wilk <[email protected]>
# Copyright © 2022-2024 FriedrichFroebel
#
# This file is part of python-djvulibre.
# This file is part of djvulibre-python.
#
# python-djvulibre is free software; you can redistribute it and/or modify it
# djvulibre-python is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
#
# python-djvulibre is distributed in the hope that it will be useful, but
# djvulibre-python is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
Expand Down
6 changes: 3 additions & 3 deletions private/check-for-updates
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

# Copyright © 2023-2024 FriedrichFroebel
#
# This file is part of python-djvulibre.
# This file is part of djvulibre-python.
#
# python-djvulibre is free software; you can redistribute it and/or modify it
# djvulibre-python is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation. If you like, you might use the
# `check-for-updates` script under the terms of the MIT license as well, id
# est this file can be considered "GPL-2.0-only OR MIT".
#
# python-djvulibre is distributed in the hope that it will be useful, but
# djvulibre-python is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
Expand Down
6 changes: 3 additions & 3 deletions private/check-rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
# Copyright © 2016-2022 Jakub Wilk <[email protected]>
# Copyright © 2022-2024 FriedrichFroebel
#
# This file is part of python-djvulibre.
# This file is part of djvulibre-python.
#
# python-djvulibre is free software; you can redistribute it and/or modify it
# djvulibre-python is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
#
# python-djvulibre is distributed in the hope that it will be useful, but
# djvulibre-python is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
Expand Down
Loading

0 comments on commit 5e2eb4d

Please sign in to comment.