Skip to content

Commit baed654

Browse files
committed
Merge branch 'develop' into master
* develop: Update CHANGELOG.md Drop 3.7 support in pyproject.toml (#871) Fix CI badge (#869) Bump softprops/action-gh-release in the github-actions group (#867) Fix release.sh merge message and final merge (#868)
2 parents e1bd807 + aed8895 commit baed654

File tree

10 files changed

+32
-23
lines changed

10 files changed

+32
-23
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
python -m build
3333
3434
- name: Upload package distributions as release assets
35-
uses: softprops/action-gh-release@v2.2.1
35+
uses: softprops/action-gh-release@v2.3.2
3636
with:
3737
files: dist/*
3838

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# 7.3.0.post1, 2025-07-03
2+
3+
- Fix release.sh merge message and final merge (PR [#868](https://github.com/piskvorky/smart_open/pull/868), [@ddelange](https://github.com/ddelange))
4+
- Bump softprops/action-gh-release from 2.2.1 to 2.3.2 in the github-actions group (PR [#867](https://github.com/piskvorky/smart_open/pull/867), [@dependabot[bot]](https://github.com/apps/dependabot))
5+
- Fix CI badge (PR [#869](https://github.com/piskvorky/smart_open/pull/869), [@ddelange](https://github.com/ddelange))
6+
- Drop 3.7 support in pyproject.toml (PR [#871](https://github.com/piskvorky/smart_open/pull/871), [@ddelange](https://github.com/ddelange))
7+
18
# 7.3.0, 2025-07-01
29

310
- Remove head_bucket call from s3.SinglepartWriter (PR [#857](https://github.com/piskvorky/smart_open/pull/857), [@ddelange](https://github.com/ddelange))

README.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ smart_open — utils for streaming large files in Python
33
======================================================
44

55

6-
|License|_ |GHA|_ |Coveralls|_ |Downloads|_
6+
|License|_ |CI|_ |Coveralls|_ |Downloads|_
77

88
.. |License| image:: https://img.shields.io/pypi/l/smart_open.svg
9-
.. |GHA| image:: https://github.com/piskvorky/smart_open/workflows/Test/badge.svg
9+
.. |CI| image:: https://github.com/piskvorky/smart_open/actions/workflows/python-package.yml/badge.svg?branch=develop&event=push
1010
.. |Coveralls| image:: https://coveralls.io/repos/github/RaRe-Technologies/smart_open/badge.svg?branch=develop
1111
.. |Downloads| image:: https://pepy.tech/badge/smart-open/month
1212
.. _License: https://github.com/piskvorky/smart_open/blob/master/LICENSE
13-
.. _GHA: https://github.com/piskvorky/smart_open/actions?query=workflow%3ATest
13+
.. _CI: https://github.com/piskvorky/smart_open/actions/workflows/python-package.yml
1414
.. _Coveralls: https://coveralls.io/github/RaRe-Technologies/smart_open?branch=HEAD
1515
.. _Downloads: https://pypi.org/project/smart-open/
1616

@@ -51,16 +51,16 @@ How?
5151
'User-Agent: *\n'
5252
5353
>>> # stream from/to compressed files, with transparent (de)compression:
54-
>>> for line in open('smart_open/tests/test_data/1984.txt.gz', encoding='utf-8'):
54+
>>> for line in open('tests/test_data/1984.txt.gz', encoding='utf-8'):
5555
... print(repr(line))
5656
'It was a bright cold day in April, and the clocks were striking thirteen.\n'
5757
'Winston Smith, his chin nuzzled into his breast in an effort to escape the vile\n'
5858
'wind, slipped quickly through the glass doors of Victory Mansions, though not\n'
5959
'quickly enough to prevent a swirl of gritty dust from entering along with him.\n'
6060
6161
>>> # can use context managers too:
62-
>>> with open('smart_open/tests/test_data/1984.txt.gz') as fin:
63-
... with open('smart_open/tests/test_data/1984.txt.bz2', 'w') as fout:
62+
>>> with open('tests/test_data/1984.txt.gz') as fin:
63+
... with open('tests/test_data/1984.txt.bz2', 'w') as fout:
6464
... for line in fin:
6565
... fout.write(line)
6666
74
@@ -246,7 +246,7 @@ By default, ``smart_open`` determines the compression algorithm to use based on
246246
.. code-block:: python
247247
248248
>>> from smart_open import open, register_compressor
249-
>>> with open('smart_open/tests/test_data/1984.txt.gz') as fin:
249+
>>> with open('tests/test_data/1984.txt.gz') as fin:
250250
... print(fin.read(32))
251251
It was a bright cold day in Apri
252252
@@ -256,7 +256,7 @@ To disable compression:
256256
.. code-block:: python
257257
258258
>>> from smart_open import open, register_compressor
259-
>>> with open('smart_open/tests/test_data/1984.txt.gz', 'rb', compression='disable') as fin:
259+
>>> with open('tests/test_data/1984.txt.gz', 'rb', compression='disable') as fin:
260260
... print(fin.read(32))
261261
b'\x1f\x8b\x08\x08\x85F\x94\\\x00\x031984.txt\x005\x8f=r\xc3@\x08\x85{\x9d\xe2\x1d@'
262262
@@ -266,7 +266,7 @@ To specify the algorithm explicitly (e.g. for non-standard file extensions):
266266
.. code-block:: python
267267
268268
>>> from smart_open import open, register_compressor
269-
>>> with open('smart_open/tests/test_data/1984.txt.gzip', compression='.gz') as fin:
269+
>>> with open('tests/test_data/1984.txt.gzip', compression='.gz') as fin:
270270
... print(fin.read(32))
271271
It was a bright cold day in Apri
272272
@@ -283,7 +283,7 @@ For example, to open xz-compressed files:
283283
284284
>>> register_compressor('.xz', _handle_xz)
285285
286-
>>> with open('smart_open/tests/test_data/1984.txt.xz') as fin:
286+
>>> with open('tests/test_data/1984.txt.xz') as fin:
287287
... print(fin.read(32))
288288
It was a bright cold day in Apri
289289
@@ -482,7 +482,7 @@ This can be helpful when e.g. working with compressed files.
482482
>>>
483483
>>> _ = patch_pathlib() # replace `Path.open` with `smart_open.open`
484484
>>>
485-
>>> path = Path("smart_open/tests/test_data/crime-and-punishment.txt.gz")
485+
>>> path = Path("tests/test_data/crime-and-punishment.txt.gz")
486486
>>>
487487
>>> with path.open("r") as infile:
488488
... print(infile.readline()[:41])

help.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,16 +289,16 @@ FUNCTIONS
289289
'User-Agent: *\n'
290290

291291
>>> # stream from/to compressed files, with transparent (de)compression:
292-
>>> for line in open('smart_open/tests/test_data/1984.txt.gz', encoding='utf-8'):
292+
>>> for line in open('tests/test_data/1984.txt.gz', encoding='utf-8'):
293293
... print(repr(line))
294294
'It was a bright cold day in April, and the clocks were striking thirteen.\n'
295295
'Winston Smith, his chin nuzzled into his breast in an effort to escape the vile\n'
296296
'wind, slipped quickly through the glass doors of Victory Mansions, though not\n'
297297
'quickly enough to prevent a swirl of gritty dust from entering along with him.\n'
298298

299299
>>> # can use context managers too:
300-
>>> with open('smart_open/tests/test_data/1984.txt.gz') as fin:
301-
... with open('smart_open/tests/test_data/1984.txt.bz2', 'w') as fout:
300+
>>> with open('tests/test_data/1984.txt.gz') as fin:
301+
... with open('tests/test_data/1984.txt.bz2', 'w') as fout:
302302
... for line in fin:
303303
... fout.write(line)
304304
74
@@ -333,7 +333,7 @@ FUNCTIONS
333333

334334
See Also
335335
--------
336-
- `Standard library reference <https://docs.python.org/3.7/library/functions.html#open>`__
336+
- `Standard library reference <https://docs.python.org/3.13/library/functions.html#open>`__
337337
- `smart_open README.rst
338338
<https://github.com/piskvorky/smart_open/blob/master/README.rst>`__
339339

integration-tests/test_http.py

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

1515
GZIP_MAGIC = b'\x1f\x8b'
1616
BASE_URL = ('https://raw.githubusercontent.com/RaRe-Technologies/smart_open/'
17-
'master/smart_open/tests/test_data/')
17+
'master/tests/test_data/')
1818

1919

2020
class ReadTest(unittest.TestCase):

integration-tests/test_s3_ported.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def test_write(self):
204204

205205
def test_multipart(self):
206206
"""Does s3 multipart chunking work correctly?"""
207-
data_dir = os.path.join(os.path.dirname(__file__), "../smart_open/tests/test_data")
207+
data_dir = os.path.join(os.path.dirname(__file__), "../tests/test_data")
208208
with open(os.path.join(data_dir, "crime-and-punishment.txt"), "rb") as fin:
209209
crime = fin.read()
210210
data = b''

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description = "Utils for streaming large files (S3, HDFS, GCS, SFTP, Azure Blob
1111
readme = "README.rst"
1212
urls = {Repository = "https://github.com/piskvorky/smart_open"}
1313
authors = [{name = "Radim Rehurek", email = "[email protected]"}]
14-
requires-python = ">=3.7,<4.0" # sync with classifiers below
14+
requires-python = ">=3.8,<4.0" # sync with classifiers below
1515
classifiers = [
1616
"Development Status :: 5 - Production/Stable",
1717
"Environment :: Console",
@@ -20,7 +20,6 @@ classifiers = [
2020
"Operating System :: OS Independent",
2121
"Programming Language :: Python",
2222
"Programming Language :: Python :: 3",
23-
"Programming Language :: Python :: 3.7",
2423
"Programming Language :: Python :: 3.8",
2524
"Programming Language :: Python :: 3.9",
2625
"Programming Language :: Python :: 3.10",

release/release.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ git push
1818
git checkout master
1919
git pull
2020
# Merge `develop` into `master` and push
21-
git pull . develop --no-ff --no-edit
21+
git merge develop --no-ff -m "Merge branch 'develop' into master"
22+
git push
23+
# Merge `master` back into `develop` and push
24+
git merge master --no-ff -m "Merge branch 'master' into develop"
2225
git push
2326
# Open the new GitHub Release page for convenience
2427
new_release_url="https://github.com/piskvorky/smart_open/releases/new"

smart_open/smart_open_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def open(
151151
152152
See Also
153153
--------
154-
- `Standard library reference <https://docs.python.org/3.7/library/functions.html#open>`__
154+
- `Standard library reference <https://docs.python.org/3.13/library/functions.html#open>`__
155155
- `smart_open README.rst
156156
<https://github.com/piskvorky/smart_open/blob/master/README.rst>`__
157157

smart_open/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def safe_urlsplit(url):
169169
See Also
170170
--------
171171
https://bugs.python.org/issue43882
172-
https://github.com/python/cpython/blob/3.7/Lib/urllib/parse.py
172+
https://github.com/python/cpython/blob/3.13/Lib/urllib/parse.py
173173
https://github.com/piskvorky/smart_open/issues/285
174174
https://github.com/piskvorky/smart_open/issues/458
175175
smart_open/utils.py:QUESTION_MARK_PLACEHOLDER

0 commit comments

Comments
 (0)