Skip to content

Commit 7090de5

Browse files
authored
Remove python 3.7 (#99)
* remove python 3.7 support * version bump 0.10.0 -> 0.11.0
1 parent 2ec339a commit 7090de5

10 files changed

Lines changed: 19 additions & 15 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121
strategy:
2222
matrix:
23-
python-version: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12-dev']
23+
python-version: [3.8, 3.9, '3.10', '3.11', '3.12-dev']
2424
steps:
2525
- uses: actions/checkout@v2
2626
- name: Set up Python ${{ matrix.python-version }}

.sourcery.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ ignore:
1212
- docs/build
1313

1414
rule_settings:
15-
python_version: 3.7
15+
python_version: 3.8

CHANGELOG.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.11.0] - 2023-06-27
11+
1012
### Changed
1113

1214
- Updated README to more accurately describe current OSIS parser and Bible text formatting functionality
1315
- Minor code quality improvements based on static code analysis
1416

15-
## [0.10.0]
17+
### Removed
18+
19+
- Python 3.7 support (due to official end of life on June 27, 2021)
20+
21+
## [0.10.0] - 2023-05-27
1622

1723
The goal of this release was to address [Issue #90], and to make things related to Books, BookGroups, and Versions structured in a more object-oriented way.
1824

1925
### Added
2026

21-
- started this Changlog
27+
- started this Changelog
2228
- new abbreviations list property of Book Enum
2329
- Jupyter notebook for Basic Usage documentation
2430
- Jupyter notebook for Advanced Usage, Single Chapter Books documentation
@@ -96,7 +102,8 @@ The goal of this release was to address [Issue #90], and to make things related
96102

97103
## [0.0.1] - 2020-10-08
98104

99-
[unreleased]: https://github.com/avendesora/pythonbible/compare/v0.10.0...HEAD
105+
[unreleased]: https://github.com/avendesora/pythonbible/compare/v0.11.0...HEAD
106+
[0.11.0]: https://github.com/avendesora/pythonbible/compare/v0.10.0...v0.11.0
100107
[0.10.0]: https://github.com/avendesora/pythonbible/compare/v0.9.1...v0.10.0
101108
[0.9.1]: https://github.com/avendesora/pythonbible/compare/v0.9.0...v0.9.1
102109
[0.9.0]: https://github.com/avendesora/pythonbible

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The pythonbible library serves several purposes related to the Christian Bible a
3232
</tr>
3333
<tr>
3434
<td>Supported Python Versions</td>
35-
<td><a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.7%20%7C%203.8%20%7C%203.9%20%7C%203.10%20%7C%203.11%20%7C%203.12%20dev-blue?logo=python&logoColor=lightgray"></a></td>
35+
<td><a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.8%20%7C%203.9%20%7C%203.10%20%7C%203.11%20%7C%203.12%20dev-blue?logo=python&logoColor=lightgray"></a></td>
3636
</tr>
3737
</table>
3838

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
author = "Nathan Patton"
2424

2525
# The full version, including alpha/beta/rc tags
26-
release = "0.10.0"
26+
release = "0.11.0"
2727

2828

2929
# -- General configuration ---------------------------------------------------

docs/source/installation.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Requirements
66

77
**pythonbible** requires Python and is tested with the following versions:
88

9-
* 3.7 (soon to be deprecated due to end-of-life on 2023-06-27 and, therefore, not recommended)
109
* 3.8
1110
* 3.9
1211
* 3.10

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ classifiers = [
1717
"Programming Language :: Python",
1818
"Programming Language :: Python :: 3",
1919
"Programming Language :: Python :: 3 :: Only",
20-
"Programming Language :: Python :: 3.7",
2120
"Programming Language :: Python :: 3.8",
2221
"Programming Language :: Python :: 3.9",
2322
"Programming Language :: Python :: 3.10",
@@ -26,7 +25,7 @@ classifiers = [
2625
]
2726
requires = []
2827
description-file = "README.md"
29-
requires-python = ">=3.7"
28+
requires-python = ">=3.8"
3029

3130
[tool.flit.metadata.urls]
3231
Documentation = "https://docs.python.bible"

pythonbible/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from __future__ import annotations
1010

11-
__version__ = "0.10.0"
11+
__version__ = "0.11.0"
1212

1313
from .bible.bible import Bible
1414
from .book_groups import BOOK_GROUPS

pythonbible/parser.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,11 @@ def normalize_reference(reference: str) -> list[NormalizedReference]:
7474
book_found = False
7575

7676
for book in Book:
77-
reference_match: Match[str] | None = re.search(
77+
if reference_match := re.search(
7878
book.regular_expression,
7979
reference_without_books,
8080
re.IGNORECASE,
81-
)
82-
83-
if reference_match:
81+
):
8482
start, end = reference_match.regs[0]
8583

8684
if start != 0 and not books:

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ ignore =
1818
WPS237,
1919
WPS305,
2020
WPS306,
21+
WPS332,
2122
WPS337,
2223
WPS473,
2324
WPS508

0 commit comments

Comments
 (0)