diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 90e05c4..5ace460 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,11 +1,6 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - version: 2 updates: - - package-ecosystem: "github-actions" # See documentation for possible values - directory: "/" # Location of package manifests + - package-ecosystem: "github-actions" + directory: "/" schedule: interval: "weekly" diff --git a/.github/requirements.txt b/.github/requirements.txt deleted file mode 100644 index 002d1b9..0000000 --- a/.github/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -Cython diff --git a/.github/workflows/check-for-updates.yml b/.github/workflows/check-for-updates.yml index 187ad3a..2bd8c30 100644 --- a/.github/workflows/check-for-updates.yml +++ b/.github/workflows/check-for-updates.yml @@ -24,5 +24,3 @@ jobs: - name: check for library updates run: ./private/check-for-updates - -# vim:ts=2 sts=2 sw=2 et diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b7d420..787bcbb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: main: strategy: matrix: - python: [3.8, 3.9, '3.10', '3.11', '3.12'] + python: ['3.8', '3.9', '3.10', '3.11', '3.12'] runs-on: ubuntu-latest name: Python ${{ matrix.python }} steps: @@ -144,5 +144,3 @@ jobs: run: | cd / python -c 'import djvu.sexpr, djvu.decode' - -# vim:ts=2 sts=2 sw=2 et diff --git a/.pylintrc b/.pylintrc index ea74f19..f7da587 100644 --- a/.pylintrc +++ b/.pylintrc @@ -13,5 +13,3 @@ msg-template = {path}:{line}: {C}: {symbol} [{obj}] {msg} [FORMAT] max-line-length = 120 expected-line-ending-format = LF - -# vim:ft=dosini ts=4 sts=4 sw=4 et diff --git a/djvu/__init__.py b/djvu/__init__.py index d4c324a..861c1d0 100644 --- a/djvu/__init__.py +++ b/djvu/__init__.py @@ -1,6 +1,5 @@ -# encoding=UTF-8 - # Copyright © 2015-2021 Jakub Wilk +# Copyright © 2022-2024 FriedrichFroebel # # This file is part of python-djvulibre. # @@ -12,8 +11,3 @@ # 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. - -type(b'') # Python >= 2.6 is required -type(u'') # Python 2.X or >= 3.3 is required - -# vim:ts=4 sts=4 sts=4 sw=4 et diff --git a/djvu/common.pxi b/djvu/common.pxi index 6c7f26d..d7dc8f7 100644 --- a/djvu/common.pxi +++ b/djvu/common.pxi @@ -1,4 +1,5 @@ # Copyright © 2008-2018 Jakub Wilk +# Copyright © 2022-2024 FriedrichFroebel # # This file is part of python-djvulibre. # @@ -122,5 +123,3 @@ cdef int typecheck(object o, object type): cdef void raise_instantiation_error(object cls) except *: raise TypeError(f"cannot create '{get_type_name(cls)}' instances") - -# vim:ts=4 sts=4 sw=4 et ft=pyrex diff --git a/djvu/const.py b/djvu/const.py index 0d4bd31..90d0c09 100644 --- a/djvu/const.py +++ b/djvu/const.py @@ -1,6 +1,5 @@ -# encoding=UTF-8 - # Copyright © 2008-2015 Jakub Wilk +# Copyright © 2022-2024 FriedrichFroebel # # This file is part of python-djvulibre. # @@ -261,5 +260,3 @@ def get_text_zone_type(symbol): 'TextZoneType', 'get_text_zone_type' ] - -# vim:ts=4 sts=4 sw=4 et diff --git a/djvu/decode.pxd b/djvu/decode.pxd index 3478b89..ee5d326 100644 --- a/djvu/decode.pxd +++ b/djvu/decode.pxd @@ -1,4 +1,5 @@ # Copyright © 2007-2020 Jakub Wilk +# Copyright © 2022-2024 FriedrichFroebel # # This file is part of python-djvulibre. # @@ -394,5 +395,3 @@ cdef class ProgressMessage(Message): cdef class Thumbnail: cdef Page _page - -# vim:ts=4 sts=4 sw=4 et ft=pyrex diff --git a/djvu/decode.pyx b/djvu/decode.pyx index a57eaa5..901bb76 100644 --- a/djvu/decode.pyx +++ b/djvu/decode.pyx @@ -1,4 +1,5 @@ # Copyright © 2007-2022 Jakub Wilk +# Copyright © 2022-2024 FriedrichFroebel # # This file is part of python-djvulibre. # @@ -3376,5 +3377,3 @@ cdef class Metadata: __author__ = 'Jakub Wilk ' __version__ = decode_utf8(PYTHON_DJVULIBRE_VERSION) - -# vim:ts=4 sts=4 sw=4 et ft=pyrex diff --git a/djvu/sexpr.pxd b/djvu/sexpr.pxd index ccb19a0..30d5ff1 100644 --- a/djvu/sexpr.pxd +++ b/djvu/sexpr.pxd @@ -1,4 +1,5 @@ # Copyright © 2007-2018 Jakub Wilk +# Copyright © 2022-2024 FriedrichFroebel # # This file is part of python-djvulibre. # @@ -30,5 +31,3 @@ cdef class _WrappedCExpr: cdef object public_c2py(cexpr_t) cdef _WrappedCExpr public_py2c(object) - -# vim:ts=4 sts=4 sw=4 et ft=pyrex diff --git a/djvu/sexpr.pyx b/djvu/sexpr.pyx index f5313e0..ca5e5fd 100644 --- a/djvu/sexpr.pyx +++ b/djvu/sexpr.pyx @@ -1,4 +1,5 @@ # Copyright © 2007-2019 Jakub Wilk +# Copyright © 2022-2024 FriedrichFroebel # # This file is part of python-djvulibre. # @@ -966,5 +967,3 @@ __all__ = ( __author__ = 'Jakub Wilk ' __version__ = decode_utf8(PYTHON_DJVULIBRE_VERSION) - -# vim:ts=4 sts=4 sw=4 et ft=pyrex diff --git a/doc/README b/doc/README index 90dbe99..7b73d52 100644 --- a/doc/README +++ b/doc/README @@ -58,5 +58,3 @@ Acknowledgment 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). - -.. vim:ft=rst ts=3 sts=3 sw=3 et diff --git a/doc/api/annotations.rst b/doc/api/annotations.rst index fba30d1..df4485d 100644 --- a/doc/api/annotations.rst +++ b/doc/api/annotations.rst @@ -421,5 +421,3 @@ The following symbols are pre-defined: >>> PRINTER_HEADER_ALIGN_RIGHT Symbol('right') - -.. vim:ts=3 sts=3 sw=3 et diff --git a/doc/api/conf.py b/doc/api/conf.py index 47f54bf..30ef3f9 100644 --- a/doc/api/conf.py +++ b/doc/api/conf.py @@ -1,6 +1,5 @@ -# encoding=UTF-8 - # Copyright © 2009-2021 Jakub Wilk +# Copyright © 2022-2024 FriedrichFröbel # # This file is part of python-djvulibre. # @@ -64,5 +63,3 @@ def setup(app): # deprecated in Sphinx 1.8, removed in 4.0 add_css_file = app.add_stylesheet add_css_file('docutils-math.css') - -# vim:ts=4 sts=4 sw=4 et diff --git a/doc/api/documents.rst b/doc/api/documents.rst index d3ab3e0..64fcd39 100644 --- a/doc/api/documents.rst +++ b/doc/api/documents.rst @@ -230,5 +230,3 @@ DjVu documents Document decoding job. Use :attr:`Document.decoding_job` to obtain instances of this class. - -.. vim:ts=3 sts=3 sw=3 et diff --git a/doc/api/event-model.rst b/doc/api/event-model.rst index 1a9f5ef..0c46d20 100644 --- a/doc/api/event-model.rst +++ b/doc/api/event-model.rst @@ -118,5 +118,3 @@ The DDJVU API hides this complexity with a familiar event model. .. method:: wait() Wait until the job is done. - -.. vim:ts=3 sts=3 sw=3 et diff --git a/doc/api/exceptions.rst b/doc/api/exceptions.rst index b58f4b4..b9e13ff 100644 --- a/doc/api/exceptions.rst +++ b/doc/api/exceptions.rst @@ -73,5 +73,3 @@ Job status .. exception:: JobStopped Operation was interrupted by user. - -.. vim:ts=3 sts=3 sw=3 et diff --git a/doc/api/expressions.rst b/doc/api/expressions.rst index 3626725..d6b7061 100644 --- a/doc/api/expressions.rst +++ b/doc/api/expressions.rst @@ -145,5 +145,3 @@ Varieties >>> EMPTY_LIST Expression([]) - -.. vim:ts=3 sts=3 sw=3 et diff --git a/doc/api/files.rst b/doc/api/files.rst index ef0eff4..c426a2a 100644 --- a/doc/api/files.rst +++ b/doc/api/files.rst @@ -102,5 +102,3 @@ Document files :attr:`~Message.page_job` may be emitted. :raise NotAvailable: see above. - -.. vim:ts=3 sts=3 sw=3 et diff --git a/doc/api/geometry.rst b/doc/api/geometry.rst index cc9809c..2c2e1d8 100644 --- a/doc/api/geometry.rst +++ b/doc/api/geometry.rst @@ -169,5 +169,3 @@ Render modes .. data:: djvu.decode.RENDER_FOREGROUND Render color foreground layer. - -.. vim:ts=3 sts=3 sw=3 et diff --git a/doc/api/index.rst b/doc/api/index.rst index 854019a..1447db3 100644 --- a/doc/api/index.rst +++ b/doc/api/index.rst @@ -19,5 +19,3 @@ Contents: exceptions * :ref:`search` - -.. vim:ts=3 sts=3 sw=3 et diff --git a/doc/api/messages.rst b/doc/api/messages.rst index a889fd3..f1ae4ac 100644 --- a/doc/api/messages.rst +++ b/doc/api/messages.rst @@ -198,5 +198,3 @@ Messages .. attribute:: status :return: a :class:`JobException` subclass indicating the current job status. - -.. vim:ts=3 sts=3 sw=3 et diff --git a/doc/api/outline.rst b/doc/api/outline.rst index e215ea2..8f52cd0 100644 --- a/doc/api/outline.rst +++ b/doc/api/outline.rst @@ -37,5 +37,3 @@ Document outline >>> EMPTY_OUTLINE Expression([Symbol('bookmarks')]) - -.. vim:ts=3 sts=3 sw=3 et diff --git a/doc/api/pages.rst b/doc/api/pages.rst index 05fb499..12f2bc8 100644 --- a/doc/api/pages.rst +++ b/doc/api/pages.rst @@ -272,5 +272,3 @@ Document pages actual image data. :raise NotAvailable: when no thumbnail is available. - -.. vim:ts=3 sts=3 sw=3 et diff --git a/doc/api/static/docutils-math.css b/doc/api/static/docutils-math.css index b90e74b..0f803ed 100644 --- a/doc/api/static/docutils-math.css +++ b/doc/api/static/docutils-math.css @@ -16,5 +16,3 @@ display: block; border-top: thin solid; } - -/* vim:set ts=4 sts=4 st=4 et:*/ diff --git a/doc/api/text-zones.rst b/doc/api/text-zones.rst index b2110e1..38ce853 100644 --- a/doc/api/text-zones.rst +++ b/doc/api/text-zones.rst @@ -122,5 +122,3 @@ Text zones : '\x1d', : '\x0b', : '\x0c'} - -.. vim:ts=3 sts=3 sw=3 et diff --git a/doc/todo b/doc/todo index ec43063..85ec405 100644 --- a/doc/todo +++ b/doc/todo @@ -12,5 +12,3 @@ * Cython ≥ 0.23 provides the plugin ``Cython.Coverage`` that can be added to ``.coveragerc``. - -.. vim:ft=rst ts=3 sts=3 sw=3 et tw=72 diff --git a/examples/djvu-crop-text b/examples/djvu-crop-text index e5ab5e4..bf6c12b 100755 --- a/examples/djvu-crop-text +++ b/examples/djvu-crop-text @@ -1,7 +1,7 @@ #!/usr/bin/env python -# encoding=UTF-8 # Copyright © 2008-2018 Jakub Wilk +# Copyright © 2022-2024 FriedrichFroebel # # This file is part of python-djvulibre. # @@ -112,5 +112,3 @@ def main(): if __name__ == '__main__': main() - -# vim:ts=4 sts=4 sw=4 et diff --git a/examples/djvu-dump-text b/examples/djvu-dump-text index 8b63728..cdc4ffb 100755 --- a/examples/djvu-dump-text +++ b/examples/djvu-dump-text @@ -1,7 +1,7 @@ #!/usr/bin/env python -# encoding=UTF-8 # Copyright © 2008-2018 Jakub Wilk +# Copyright © 2022-2024 FriedrichFroebel # # This file is part of python-djvulibre. # @@ -61,5 +61,3 @@ def main(): if __name__ == '__main__': main() - -# vim:ts=4 sts=4 sw=4 et diff --git a/examples/djvu2png b/examples/djvu2png index c1309a4..1f8a767 100755 --- a/examples/djvu2png +++ b/examples/djvu2png @@ -1,7 +1,7 @@ #!/usr/bin/env python -# encoding=UTF-8 # Copyright © 2010-2021 Jakub Wilk +# Copyright © 2022-2024 FriedrichFroebel # # This file is part of python-djvulibre. # @@ -80,5 +80,3 @@ def main(): if __name__ == '__main__': main() - -# vim:ts=4 sts=4 sw=4 et diff --git a/private/check-for-updates b/private/check-for-updates index 6837fd1..210bd3f 100755 --- a/private/check-for-updates +++ b/private/check-for-updates @@ -1,5 +1,20 @@ #!/usr/bin/env python +# Copyright © 2023-2024 FriedrichFroebel +# +# This file is part of python-djvulibre. +# +# python-djvulibre 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 +# 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. + import sys from pathlib import Path diff --git a/private/check-rst b/private/check-rst index d5f04d7..e7b5525 100755 --- a/private/check-rst +++ b/private/check-rst @@ -1,6 +1,7 @@ #!/usr/bin/env bash # Copyright © 2016-2022 Jakub Wilk +# Copyright © 2022-2024 FriedrichFroebel # # This file is part of python-djvulibre. # @@ -37,5 +38,3 @@ else printf '%s\n' "$@" fi | xargs -t -I{} "$rst2xml" $options {} /dev/null - -# vim:ts=4 sts=4 sw=4 et diff --git a/pyproject.toml b/pyproject.toml index b130a2a..5d3ec05 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,5 +4,3 @@ requires = [ 'Cython>=0.28', 'packaging', ] - -# vim:ts=4 sts=4 sw=4 et diff --git a/setup.py b/setup.py index 13cf1cc..c947ace 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,5 @@ -# encoding=UTF-8 - # Copyright © 2007-2022 Jakub Wilk +# Copyright © 2022-2024 FriedrichFroebel # # This file is part of python-djvulibre. # @@ -265,5 +264,3 @@ def make_release_tree(self, base_dir, files): if __name__ == '__main__': # Required for Sphinx. setuptools.setup(**setup_params) - -# vim:ts=4 sts=4 sw=4 et diff --git a/tests/__init__.py b/tests/__init__.py index e69de29..c5067e0 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -0,0 +1,12 @@ +# Copyright © 2024 FriedrichFroebel +# +# This file is part of python-djvulibre. +# +# python-djvulibre 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 +# 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. diff --git a/tests/examples/__init__.py b/tests/examples/__init__.py index e69de29..c5067e0 100644 --- a/tests/examples/__init__.py +++ b/tests/examples/__init__.py @@ -0,0 +1,12 @@ +# Copyright © 2024 FriedrichFroebel +# +# This file is part of python-djvulibre. +# +# python-djvulibre 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 +# 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. diff --git a/tests/examples/test_djvu2png.py b/tests/examples/test_djvu2png.py index ad80349..8b31494 100644 --- a/tests/examples/test_djvu2png.py +++ b/tests/examples/test_djvu2png.py @@ -1,3 +1,16 @@ +# Copyright © 2024 FriedrichFroebel +# +# This file is part of python-djvulibre. +# +# python-djvulibre 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 +# 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. + import os import subprocess from importlib.util import find_spec diff --git a/tests/examples/test_djvu_crop_text.py b/tests/examples/test_djvu_crop_text.py index b2a15b5..fcd545f 100644 --- a/tests/examples/test_djvu_crop_text.py +++ b/tests/examples/test_djvu_crop_text.py @@ -1,3 +1,16 @@ +# Copyright © 2024 FriedrichFroebel +# +# This file is part of python-djvulibre. +# +# python-djvulibre 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 +# 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. + import os import subprocess diff --git a/tests/examples/test_djvu_dump_text.py b/tests/examples/test_djvu_dump_text.py index bbe1d4c..c942823 100644 --- a/tests/examples/test_djvu_dump_text.py +++ b/tests/examples/test_djvu_dump_text.py @@ -1,3 +1,16 @@ +# Copyright © 2024 FriedrichFroebel +# +# This file is part of python-djvulibre. +# +# python-djvulibre 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 +# 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. + import os import subprocess diff --git a/tests/images/Makefile b/tests/images/Makefile index a501d33..1f5b39f 100644 --- a/tests/images/Makefile +++ b/tests/images/Makefile @@ -1,4 +1,5 @@ # Copyright © 2010-2018 Jakub Wilk +# Copyright © 2024 FriedrichFroebel # # This file is part of python-djvulibre. # @@ -32,5 +33,3 @@ clean: rm -f $(pdf_files) *.log *.out *.aux .error = GNU make is required - -# vim:ts=4 sts=4 sw=4 noet diff --git a/tests/sexpr-gc.py b/tests/sexpr-gc.py index 22b3809..f8dca1a 100644 --- a/tests/sexpr-gc.py +++ b/tests/sexpr-gc.py @@ -1,6 +1,5 @@ -# encoding=UTF-8 - # Copyright © 2007-2015 Jakub Wilk +# Copyright © 2022-2024 FriedrichFroebel # # This file is part of python-djvulibre. # @@ -39,5 +38,3 @@ def mem_info(key='VmSize'): mb = mem_info() / (1 << 20) print(f'{mb:.2f}M') [djvu.sexpr.Expression(4) for i in range(step)] - -# vim:ts=4 sts=4 sw=4 et diff --git a/tests/test_const.py b/tests/test_const.py index 0c25ffd..3e914f1 100644 --- a/tests/test_const.py +++ b/tests/test_const.py @@ -1,6 +1,5 @@ -# encoding=UTF-8 - # Copyright © 2008-2021 Jakub Wilk +# Copyright © 2022-2024 FriedrichFroebel # # This file is part of python-djvulibre. # @@ -164,5 +163,3 @@ def test_wildcard_import(self): 'get_text_zone_type' ] ) - -# vim:ts=4 sts=4 sw=4 et diff --git a/tests/test_decode.py b/tests/test_decode.py index ece4b20..5193ad3 100644 --- a/tests/test_decode.py +++ b/tests/test_decode.py @@ -1,6 +1,5 @@ -# encoding=UTF-8 - # Copyright © 2007-2022 Jakub Wilk +# Copyright © 2022-2024 FriedrichFroebel # # This file is part of python-djvulibre. # @@ -974,5 +973,3 @@ def test_wildcard_import(self): 'cmp_text_zone' ] ) - -# vim:ts=4 sts=4 sw=4 et diff --git a/tests/test_sexpr.py b/tests/test_sexpr.py index 7446135..d75159f 100644 --- a/tests/test_sexpr.py +++ b/tests/test_sexpr.py @@ -1,6 +1,5 @@ -# encoding=UTF-8 - # Copyright © 2007-2021 Jakub Wilk +# Copyright © 2022-2024 FriedrichFroebel # # This file is part of python-djvulibre. # @@ -717,5 +716,3 @@ def test_wildcard_import(self): 'SymbolExpression' ] ) - -# vim:ts=4 sts=4 sw=4 et diff --git a/tests/tools.py b/tests/tools.py index d03e878..6245712 100644 --- a/tests/tools.py +++ b/tests/tools.py @@ -1,6 +1,5 @@ -# encoding=UTF-8 - # Copyright © 2010-2021 Jakub Wilk +# Copyright © 2022-2024 FriedrichFroebel # # This file is part of python-djvulibre. # @@ -144,5 +143,3 @@ def wildcard_import(mod): 'skip_unless_translation_exists', 'wildcard_import', ] - -# vim:ts=4 sts=4 sw=4 et