Skip to content

Commit f174770

Browse files
authored
Merge branch 'master' into pyup-update-cryptography-42.0.7-to-44.0.0
2 parents 2b42a89 + cc1faa4 commit f174770

10 files changed

Lines changed: 264 additions & 379 deletions

File tree

.github/workflows/test.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ on: [push]
55
jobs:
66
build:
77

8-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-22.04 # 22.04 has python 3.7, see https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json
99
strategy:
1010
matrix:
11-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
11+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1212

1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1515
- name: Set up Python ${{ matrix.python-version }}
16-
uses: actions/setup-python@v4
16+
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
1717
with:
1818
python-version: ${{ matrix.python-version }}
1919
- name: Run test

HISTORY.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,9 @@ Mimicing Python file object behavior.
5858
------------------
5959

6060
* Officially support Python 3.7 - 3.12
61+
62+
3.2.0 (2025-04-21)
63+
------------------
64+
65+
* Officially support Python 3.13.
66+

Makefile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,15 @@ lint: ## check style with flake8
5151
flake8 file_read_backwards tests
5252

5353
test: ## run tests quickly with the default Python
54-
55-
python setup.py test
54+
pytest tests
5655

5756
test-all: ## run tests on every Python version with tox
5857
tox
5958

6059
coverage: ## check code coverage quickly with the default Python
61-
62-
coverage run --source file_read_backwards setup.py test
63-
64-
coverage report -m
65-
coverage html
66-
$(BROWSER) htmlcov/index.html
60+
pytest --cov=file_read_backwards tests
61+
coverage html
62+
$(BROWSER) htmlcov/index.html
6763

6864
docs: ## generate Sphinx HTML documentation, including API docs
6965
rm -f docs/file_read_backwards.rst

file_read_backwards/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
__author__ = """Robin Robin"""
66
__email__ = 'robinsquare42@gmail.com'
7-
__version__ = '3.1.0'
7+
__version__ = '3.2.0'

requirements_dev.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ coverage==7.2.7
33
cryptography==44.0.0
44
flake8==5.0.4 # pyup: ignore, latest version does not with python 3.7
55
PyYAML==6.0.1
6+
pytest==7.4.0
7+
pytest-mock==3.10.0
8+
pytest-cov==4.1.0
69
Sphinx==4.3.2 # pyup: ignore, latest version does not work with python 3.7
710
tox==3.28.0 # pyup: ignore, latest version does not work with python 3.7
811
watchdog==3.0.0
9-
wheel==0.41.1
12+
wheel==0.45.1

setup.cfg

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 3.1.0
2+
current_version = 3.2.0
33
commit = True
44
tag = True
55

@@ -18,3 +18,7 @@ universal = 1
1818
exclude = docs
1919
max-line-length = 120
2020
ignore = D100
21+
22+
[tool:pytest]
23+
testpaths = tests
24+
addopts = --verbose

setup.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
setup(
2020
name='file_read_backwards',
21-
version='3.1.0',
21+
version='3.2.0',
2222
description="Memory efficient way of reading files line-by-line from the end of file",
2323
long_description=readme + '\n\n' + history,
2424
author="Robin Robin",
@@ -31,21 +31,19 @@
3131
'file_read_backwards'},
3232
include_package_data=True,
3333
install_requires=requirements,
34-
license="MIT license",
34+
license="MIT",
3535
zip_safe=False,
3636
keywords='file_read_backwards',
3737
classifiers=[
3838
'Development Status :: 5 - Production/Stable',
3939
'Intended Audience :: Developers',
40-
'License :: OSI Approved :: MIT License',
4140
'Natural Language :: English',
4241
'Programming Language :: Python :: 3',
43-
'Programming Language :: Python :: 3.7',
44-
'Programming Language :: Python :: 3.8',
4542
'Programming Language :: Python :: 3.9',
4643
'Programming Language :: Python :: 3.10',
4744
'Programming Language :: Python :: 3.11',
4845
'Programming Language :: Python :: 3.12',
46+
'Programming Language :: Python :: 3.13',
4947
],
5048
test_suite='tests',
5149
tests_require=test_requirements

0 commit comments

Comments
 (0)