Skip to content

Commit 90f9ca1

Browse files
authored
blurb: support Python 3.10, drop EOL 3.6, and fix README badges (#419)
1 parent 5319c58 commit 90f9ca1

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
strategy:
1414
matrix:
1515
python:
16-
- '3.6'
1716
- '3.7'
1817
- '3.8'
1918
- '3.9'
19+
- '3.10'
2020
name: ${{ matrix.python }}
2121
runs-on: ubuntu-latest
2222
steps:

README.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ core-workflow
22
=============
33
Issue tracker and relevant tools for CPython's workflow
44

5-
.. image:: https://travis-ci.org/python/core-workflow.svg?branch=master
6-
:target: https://travis-ci.org/python/core-workflow
5+
.. image:: https://github.com/python/core-workflow/actions/workflows/tests.yml/badge.svg
6+
:alt: GitHub Actions
7+
:target: https://github.com/python/core-workflow/actions
78

8-
.. image:: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg
9-
:alt: Python Zulip chat
10-
:target: https://python.zulipchat.com
9+
.. image:: https://img.shields.io/badge/Discourse-join_chat-brightgreen.svg
10+
:alt: Python Discourse chat
11+
:target: https://discuss.python.org/
1112

1213
blurb
1314
-----

blurb/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ and automatically uses the correct file paths.
2525

2626
You can install **blurb** from PyPI using ``pip``. Alternatively,
2727
simply add ``blurb`` to a directory on your path.
28-
**blurb**'s only dependency is Python 3.5+.
28+
**blurb**'s only dependency is Python 3.7+.
2929

3030

3131
Files used by blurb

blurb/blurb.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ def load(self, filename, *, metadata=None):
521521
522522
Broadly equivalent to blurb.parse(open(filename).read()).
523523
"""
524-
with open(filename, "rt", encoding="utf-8") as file:
524+
with open(filename, encoding="utf-8") as file:
525525
text = file.read()
526526
self.parse(text, metadata=metadata, filename=filename)
527527

@@ -683,7 +683,7 @@ def filename_test(self, filename):
683683

684684

685685
def run(s):
686-
process = subprocess.run(s.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
686+
process = subprocess.run(s.split(), capture_output=True)
687687
process.check_returncode()
688688
return process.stdout.decode('ascii')
689689

@@ -711,7 +711,7 @@ def chdir_to_repo_root():
711711
def test_first_line(filename, test):
712712
if not os.path.exists(filename):
713713
return False
714-
with open(filename, "rt") as file:
714+
with open(filename) as file:
715715
lines = file.read().split('\n')
716716
if not (lines and test(lines[0])):
717717
return False
@@ -1335,7 +1335,7 @@ def flush_version():
13351335
blurbs.clear()
13361336
version_count += 1
13371337

1338-
with open("NEWS", "rt", encoding="utf-8") as file:
1338+
with open("NEWS", encoding="utf-8") as file:
13391339
for line_number, line in enumerate(file):
13401340
line = line.rstrip()
13411341

blurb/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ author-email = "[email protected]"
99
maintainer = "Python Core Developers"
1010
maintainer-email = "[email protected]"
1111
home-page = "https://github.com/python/core-workflow/tree/master/blurb"
12-
requires-python = ">=3.6"
12+
requires-python = ">=3.7"
1313
description-file = "README.rst"
1414
classifiers = [
1515
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)