From 69b6e4b1ee4dab12e164849fe0a6bc82f4971fc8 Mon Sep 17 00:00:00 2001 From: Marco Heinemann Date: Tue, 23 Jan 2024 21:09:24 +0100 Subject: [PATCH] Preparation for 0.1.0 --- .readthedocs.yml | 2 +- docs/contents/changelog.rst | 9 ++++----- libpdf/__init__.py | 6 ++---- libpdf/core.py | 3 +-- pyproject.toml | 2 +- 5 files changed, 9 insertions(+), 13 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index afed517..4ba854a 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -4,7 +4,7 @@ sphinx: configuration: docs/conf.py python: - version: 3.8 + version: 3.11 install: - method: pip path: . diff --git a/docs/contents/changelog.rst b/docs/contents/changelog.rst index 0d19565..cec756c 100644 --- a/docs/contents/changelog.rst +++ b/docs/contents/changelog.rst @@ -6,16 +6,15 @@ All notable changes to this project will be documented in this file. The format is based on `Keep a Changelog `_, and this project adheres to `Semantic Versioning `_. -__ https://github.com/useblocks/libpdf/compare/v0.0.1...HEAD +__ https://github.com/useblocks/libpdf/compare/v0.1.0...HEAD `Unreleased`__ -------------- -.. - __ https://github.com/useblocks/libpdf/compare/v0.0.1...v0.0.2 +__ https://github.com/useblocks/libpdf/compare/v0.0.1...v0.1.0 - `0.0.2`__ - 2020-09-30 - ---------------------- +`0.1.0`__ - 2024-01-23 +---------------------- Added ~~~~~ diff --git a/libpdf/__init__.py b/libpdf/__init__.py index 6442077..9c6a5a7 100644 --- a/libpdf/__init__.py +++ b/libpdf/__init__.py @@ -9,10 +9,8 @@ :copyright: © 2020 by team useblocks :license: MIT, see LICENSE for more details """ # needed for autodoc -try: - import importlib_metadata # Python 3.6 and 3.7 -except ImportError: - import importlib.metadata as importlib_metadata # Python 3.8, 3.9 + +import importlib.metadata as importlib_metadata # Python 3.8, 3.9 __version__: str = importlib_metadata.version("libpdf") __summary__: str = importlib_metadata.metadata("libpdf")["Summary"] diff --git a/libpdf/core.py b/libpdf/core.py index fc7bac9..21a9c82 100644 --- a/libpdf/core.py +++ b/libpdf/core.py @@ -474,8 +474,7 @@ def handle_parse_result(self, ctx, opts, args): "--no-rects", is_flag=True, show_default=True, - help="Skip rects. rects will not be part of the output JSON/YAML structures and also not saved if" - " --save-rects is given.", + help="Skip rectangles. Rectangles will not be part of the output JSON/YAML structures.", ) @click.option("-vd", "--visual-debug", is_flag=True, help="Visual debug libpdf.") @click.option( diff --git a/pyproject.toml b/pyproject.toml index 899746d..d810eeb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "libpdf" -version = "0.0.1" +version = "0.1.0" description = "Extract structured data from PDFs." authors = [ "Marco Heinemann ",