From 8b310717ca7dbf6b46c2eda2342f7d152f00bee7 Mon Sep 17 00:00:00 2001 From: Geir Arne Hjelle Date: Thu, 19 May 2022 01:34:46 -0600 Subject: [PATCH 01/13] Switch from `setup.py` to `pyproject.toml` for configuration (#15) * Switch from setup.py to pyproject.toml * Switch bumpversion to bumpver * Move to a src/ based structure * Add explicit configuration of isort * Use TOML instead of INI for configuration --- .bumpversion.cfg | 11 ------ MANIFEST.in | 2 +- pyproject.toml | 60 ++++++++++++++++++++++++++++++ reader/config.cfg | 2 - setup.cfg | 5 --- setup.py | 34 +---------------- {reader => src/reader}/__init__.py | 18 +++++---- {reader => src/reader}/__main__.py | 0 src/reader/config.toml | 2 + {reader => src/reader}/feed.py | 0 {reader => src/reader}/viewer.py | 0 11 files changed, 75 insertions(+), 59 deletions(-) delete mode 100644 .bumpversion.cfg create mode 100644 pyproject.toml delete mode 100644 reader/config.cfg delete mode 100644 setup.cfg rename {reader => src/reader}/__init__.py (56%) rename {reader => src/reader}/__main__.py (100%) create mode 100644 src/reader/config.toml rename {reader => src/reader}/feed.py (100%) rename {reader => src/reader}/viewer.py (100%) diff --git a/.bumpversion.cfg b/.bumpversion.cfg deleted file mode 100644 index ef1ab63..0000000 --- a/.bumpversion.cfg +++ /dev/null @@ -1,11 +0,0 @@ -[bumpversion] -current_version = 1.0.0 -commit = False -tag = False - -[bumpversion:file:setup.py] - -[bumpversion:file:reader/__init__.py] - -[bumpversion:file:reader/__main__.py] - diff --git a/MANIFEST.in b/MANIFEST.in index 8d401be..f3d5d65 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1 @@ -include reader/*.cfg +include src/reader/*.cfg diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..557c7b0 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,60 @@ +[build-system] +requires = ["setuptools>=61.0.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "realpython-reader" +version = "1.0.0" +description = "Read the latest Real Python tutorials" +readme = "README.md" +authors = [{ name = "Real Python", email = "info@realpython.com" }] +license = { file = "LICENSE" } +classifiers = [ + "License :: OSI Approved :: MIT License", + "Programming Language :: Python", + "Programming Language :: Python :: 3", +] +keywords = ["feed", "reader", "tutorial"] +dependencies = ["feedparser", "html2text", 'tomli; python_version < "3.11"'] +requires-python = ">=3.7" + + [project.optional-dependencies] + build = ["build", "twine"] + dev = ["black", "bumpver", "isort", "mypy", "pytest"] + + [project.scripts] + realpython = "reader.__main__:main" + + [project.urls] + repository = "https://github.com/realpython/reader" + documentation = "https://realpython.com/pypi-publish-python-package/" + + +[tool.bumpver] +current_version = "1.0.0" +version_pattern = "MAJOR.MINOR.PATCH" +commit_message = "bump version {old_version} -> {new_version}" +commit = true +tag = true +push = false + + [tool.bumpver.file_patterns] + "pyproject.toml" = [ + 'current_version = "{version}"', + 'version = "{version}"', + ] + "src/reader/__init__.py" = ["{version}"] + "src/reader/__main__.py" = ["- realpython-reader v{version}"] + +[tool.isort] +profile = "black" +import_heading_stdlib = "Standard library imports" +import_heading_thirdparty = "Third party imports" +import_heading_firstparty = "Reader imports" + +[tool.mypy] +strict = true + + [[tool.mypy.overrides]] + module = "feedparser" + ignore_missing_imports = true diff --git a/reader/config.cfg b/reader/config.cfg deleted file mode 100644 index 3c6ea8a..0000000 --- a/reader/config.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[feed] -url = https://realpython.com/atom.xml diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index ee4e168..0000000 --- a/setup.cfg +++ /dev/null @@ -1,5 +0,0 @@ -[mypy] -strict = True - -[mypy-feedparser.*] -ignore_missing_imports = True diff --git a/setup.py b/setup.py index d70f475..6068493 100644 --- a/setup.py +++ b/setup.py @@ -1,35 +1,3 @@ -"""Setup script for realpython-reader""" - -# Standard library imports -import pathlib - -# Third party imports from setuptools import setup -# The directory containing this file -HERE = pathlib.Path(__file__).resolve().parent - -# The text of the README file is used as a description -README = (HERE / "README.md").read_text() - -# This call to setup() does all the work -setup( - name="realpython-reader", - version="1.0.0", - description="Read the latest Real Python tutorials", - long_description=README, - long_description_content_type="text/markdown", - url="https://github.com/realpython/reader", - author="Real Python", - author_email="info@realpython.com", - license="MIT", - classifiers=[ - "License :: OSI Approved :: MIT License", - "Programming Language :: Python", - "Programming Language :: Python :: 3", - ], - packages=["reader"], - include_package_data=True, - install_requires=["feedparser", "html2text"], - entry_points={"console_scripts": ["realpython=reader.__main__:main"]}, -) +setup() diff --git a/reader/__init__.py b/src/reader/__init__.py similarity index 56% rename from reader/__init__.py rename to src/reader/__init__.py index fa1933a..df23985 100644 --- a/reader/__init__.py +++ b/src/reader/__init__.py @@ -8,15 +8,19 @@ See https://github.com/realpython/reader/ for more information. """ -from configparser import ConfigParser +# Standard library imports from importlib import resources +try: + import tomllib +except ModuleNotFoundError: + # Third party imports + import tomli as tomllib + + # Version of realpython-reader package __version__ = "1.0.0" -# Read URL of feed from config file -cfg = ConfigParser() -with resources.path("reader", "config.cfg") as path: - cfg.read(str(path)) - -URL = cfg.get("feed", "url") +# Read URL of the Real Python feed from config file +_cfg = tomllib.loads(resources.read_text("reader", "config.toml")) +URL = _cfg["feed"]["url"] diff --git a/reader/__main__.py b/src/reader/__main__.py similarity index 100% rename from reader/__main__.py rename to src/reader/__main__.py diff --git a/src/reader/config.toml b/src/reader/config.toml new file mode 100644 index 0000000..b77aa11 --- /dev/null +++ b/src/reader/config.toml @@ -0,0 +1,2 @@ +[feed] +url = "https://realpython.com/atom.xml" diff --git a/reader/feed.py b/src/reader/feed.py similarity index 100% rename from reader/feed.py rename to src/reader/feed.py diff --git a/reader/viewer.py b/src/reader/viewer.py similarity index 100% rename from reader/viewer.py rename to src/reader/viewer.py From ceec1edcaedd6c1d5007c07309de740400d4c166 Mon Sep 17 00:00:00 2001 From: Geir Arne Hjelle Date: Thu, 19 May 2022 09:38:39 +0200 Subject: [PATCH 02/13] bump version 1.0.0 -> 1.1.0 --- pyproject.toml | 4 ++-- src/reader/__init__.py | 2 +- src/reader/__main__.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 557c7b0..702e4d3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "realpython-reader" -version = "1.0.0" +version = "1.1.0" description = "Read the latest Real Python tutorials" readme = "README.md" authors = [{ name = "Real Python", email = "info@realpython.com" }] @@ -31,7 +31,7 @@ requires-python = ">=3.7" [tool.bumpver] -current_version = "1.0.0" +current_version = "1.1.0" version_pattern = "MAJOR.MINOR.PATCH" commit_message = "bump version {old_version} -> {new_version}" commit = true diff --git a/src/reader/__init__.py b/src/reader/__init__.py index df23985..5506dd6 100644 --- a/src/reader/__init__.py +++ b/src/reader/__init__.py @@ -19,7 +19,7 @@ # Version of realpython-reader package -__version__ = "1.0.0" +__version__ = "1.1.0" # Read URL of the Real Python feed from config file _cfg = tomllib.loads(resources.read_text("reader", "config.toml")) diff --git a/src/reader/__main__.py b/src/reader/__main__.py index 45a8925..f8e32f8 100644 --- a/src/reader/__main__.py +++ b/src/reader/__main__.py @@ -40,7 +40,7 @@ Version: -------- -- realpython-reader v1.0.0 +- realpython-reader v1.1.0 """ # Standard library imports import sys From 0fb69c9e03ab9f4bcd55bd2b122930937425c212 Mon Sep 17 00:00:00 2001 From: Geir Arne Hjelle Date: Thu, 19 May 2022 11:43:19 +0200 Subject: [PATCH 03/13] Update MANIFEST to include TOML file --- MANIFEST.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MANIFEST.in b/MANIFEST.in index f3d5d65..83ce77d 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1 @@ -include src/reader/*.cfg +include src/reader/*.toml From 0009bac290846d56dfe64a510789912c13c90605 Mon Sep 17 00:00:00 2001 From: Geir Arne Hjelle Date: Thu, 19 May 2022 11:43:33 +0200 Subject: [PATCH 04/13] bump version 1.1.0 -> 1.1.1 --- pyproject.toml | 4 ++-- src/reader/__init__.py | 2 +- src/reader/__main__.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 702e4d3..63c2d4d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "realpython-reader" -version = "1.1.0" +version = "1.1.1" description = "Read the latest Real Python tutorials" readme = "README.md" authors = [{ name = "Real Python", email = "info@realpython.com" }] @@ -31,7 +31,7 @@ requires-python = ">=3.7" [tool.bumpver] -current_version = "1.1.0" +current_version = "1.1.1" version_pattern = "MAJOR.MINOR.PATCH" commit_message = "bump version {old_version} -> {new_version}" commit = true diff --git a/src/reader/__init__.py b/src/reader/__init__.py index 5506dd6..d5520d9 100644 --- a/src/reader/__init__.py +++ b/src/reader/__init__.py @@ -19,7 +19,7 @@ # Version of realpython-reader package -__version__ = "1.1.0" +__version__ = "1.1.1" # Read URL of the Real Python feed from config file _cfg = tomllib.loads(resources.read_text("reader", "config.toml")) diff --git a/src/reader/__main__.py b/src/reader/__main__.py index f8e32f8..8aa7cac 100644 --- a/src/reader/__main__.py +++ b/src/reader/__main__.py @@ -40,7 +40,7 @@ Version: -------- -- realpython-reader v1.1.0 +- realpython-reader v1.1.1 """ # Standard library imports import sys From 9f3a18dc2e168a253020213248efb8c61c8efc97 Mon Sep 17 00:00:00 2001 From: Geir Arne Hjelle Date: Fri, 20 May 2022 17:06:37 +0200 Subject: [PATCH 05/13] Fix typo --- src/reader/feed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reader/feed.py b/src/reader/feed.py index 5dd0680..f8b761c 100644 --- a/src/reader/feed.py +++ b/src/reader/feed.py @@ -20,7 +20,7 @@ def _feed(url: str = URL) -> feedparser.FeedParserDict: def get_site(url: str = URL) -> str: - """Get name and link to web site of the feed.""" + """Get name and link to website of the feed.""" info = _feed(url).feed return f"{info.title} ({info.link})" From bbc8e8f39c47a0ddec1778d4ac12ebd8d9d9b36b Mon Sep 17 00:00:00 2001 From: Geir Arne Hjelle Date: Wed, 29 Mar 2023 11:13:34 +0200 Subject: [PATCH 06/13] Try to detect when users need to Install Certificates on Mac (#16) * Point users to Install Certificates on Mac * Use error message to detect certificate issue * Remove outdated noqa comment --- src/reader/feed.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/reader/feed.py b/src/reader/feed.py index f8b761c..16ad7be 100644 --- a/src/reader/feed.py +++ b/src/reader/feed.py @@ -1,6 +1,6 @@ """Interact with the Real Python feed.""" # Standard library imports -from typing import Dict, List # noqa +from typing import Dict, List # Third party imports import feedparser @@ -21,8 +21,17 @@ def _feed(url: str = URL) -> feedparser.FeedParserDict: def get_site(url: str = URL) -> str: """Get name and link to website of the feed.""" - info = _feed(url).feed - return f"{info.title} ({info.link})" + info = _feed(url) + if exception := info.get("bozo_exception"): + message = f"Could not read feed at {url}" + if "CERTIFICATE_VERIFY_FAILED" in str(exception): + message += ( + ".\n\nYou may need to manually install certificates by running " + "`Install Certificates` in your Python installation folder. " + "See https://realpython.com/installing-python/" + ) + raise SystemExit(message) + return f"{info.feed.title} ({info.feed.link})" def get_article(article_id: str, links: bool = False, url: str = URL) -> str: From 14d8dac1246f4f95d43c96cf20714d4a194678e1 Mon Sep 17 00:00:00 2001 From: Geir Arne Hjelle Date: Wed, 29 Mar 2023 12:11:10 +0200 Subject: [PATCH 07/13] Remove setup.py as it's no longer needed for editable installs (#17) --- setup.py | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 setup.py diff --git a/setup.py b/setup.py deleted file mode 100644 index 6068493..0000000 --- a/setup.py +++ /dev/null @@ -1,3 +0,0 @@ -from setuptools import setup - -setup() From b8398a3e039f672bceabccc80976bd06990ec740 Mon Sep 17 00:00:00 2001 From: Geir Arne Hjelle Date: Wed, 29 Mar 2023 12:15:56 +0200 Subject: [PATCH 08/13] bump version 1.1.1 -> 1.1.2 --- pyproject.toml | 4 ++-- src/reader/__init__.py | 2 +- src/reader/__main__.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 63c2d4d..bb37264 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "realpython-reader" -version = "1.1.1" +version = "1.1.2" description = "Read the latest Real Python tutorials" readme = "README.md" authors = [{ name = "Real Python", email = "info@realpython.com" }] @@ -31,7 +31,7 @@ requires-python = ">=3.7" [tool.bumpver] -current_version = "1.1.1" +current_version = "1.1.2" version_pattern = "MAJOR.MINOR.PATCH" commit_message = "bump version {old_version} -> {new_version}" commit = true diff --git a/src/reader/__init__.py b/src/reader/__init__.py index d5520d9..9c5c2be 100644 --- a/src/reader/__init__.py +++ b/src/reader/__init__.py @@ -19,7 +19,7 @@ # Version of realpython-reader package -__version__ = "1.1.1" +__version__ = "1.1.2" # Read URL of the Real Python feed from config file _cfg = tomllib.loads(resources.read_text("reader", "config.toml")) diff --git a/src/reader/__main__.py b/src/reader/__main__.py index 8aa7cac..57d5284 100644 --- a/src/reader/__main__.py +++ b/src/reader/__main__.py @@ -40,7 +40,7 @@ Version: -------- -- realpython-reader v1.1.1 +- realpython-reader v1.1.2 """ # Standard library imports import sys From 4238ba495629a3233b809f22fc21a072835c5f9b Mon Sep 17 00:00:00 2001 From: Ricky White Date: Mon, 30 Sep 2024 06:22:04 -0400 Subject: [PATCH 09/13] Add GitHub workflow files for CI/CD (#18) --- .github/dependabot.yaml | 12 ++++++++++++ .github/workflows/lint.yaml | 26 +++++++++++++++++++++++++ .github/workflows/publish.yaml | 35 ++++++++++++++++++++++++++++++++++ .github/workflows/test.yaml | 33 ++++++++++++++++++++++++++++++++ pyproject.toml | 2 +- 5 files changed, 107 insertions(+), 1 deletion(-) create mode 100644 .github/dependabot.yaml create mode 100644 .github/workflows/lint.yaml create mode 100644 .github/workflows/publish.yaml create mode 100644 .github/workflows/test.yaml diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 0000000..4cc0a22 --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,12 @@ +version: 2 +updates: + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: "weekly" + + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..33f5a29 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,26 @@ +name: Lint Python Code + +on: + pull_request: + branches: [ master ] + push: + branches: [ master ] + workflow_dispatch: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.12' + cache: 'pip' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install ruff + + - name: Run Ruff + run: ruff check --output-format=github diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..06ea368 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,35 @@ +name: Publish to PyPI +on: + push: + tags: + - '*.*.*' + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install .[build] + + - name: Build package + run: python -m build + + - name: Publish package + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} + + - name: Create GitHub Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release create ${{ github.ref_name }} ./dist/* --generate-notes diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..9c8b239 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,33 @@ +name: Run Tests + +on: + push: + branches: [master] + pull_request: + branches: [master] + workflow_call: + workflow_dispatch: + +jobs: + testing: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: "pip" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install .[dev] + + - name: Run Pytest + run: | + pytest diff --git a/pyproject.toml b/pyproject.toml index bb37264..90f7c3e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,4 +57,4 @@ strict = true [[tool.mypy.overrides]] module = "feedparser" - ignore_missing_imports = true + ignore_missing_imports = true \ No newline at end of file From ac72a3495e9d05d6b1839aac1ae3d9ee96b33ebf Mon Sep 17 00:00:00 2001 From: Ricky White Date: Mon, 14 Oct 2024 16:52:41 -0400 Subject: [PATCH 10/13] CI/CD updates + Bump version (#19) * Update CI/CD to reflect article changes * Version bump --- .github/dependabot.yaml | 1 + .github/workflows/publish.yaml | 7 +++++++ pyproject.toml | 4 ++-- src/reader/__init__.py | 2 +- src/reader/__main__.py | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index 4cc0a22..b783175 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -1,3 +1,4 @@ +--- version: 2 updates: - package-ecosystem: "pip" diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 06ea368..cea9dae 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -28,6 +28,13 @@ jobs: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }} + - name: Test publish package + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} + repository-url: https://test.pypi.org/legacy/ + - name: Create GitHub Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/pyproject.toml b/pyproject.toml index 90f7c3e..42e2049 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "realpython-reader" -version = "1.1.2" +version = "1.1.3" description = "Read the latest Real Python tutorials" readme = "README.md" authors = [{ name = "Real Python", email = "info@realpython.com" }] @@ -31,7 +31,7 @@ requires-python = ">=3.7" [tool.bumpver] -current_version = "1.1.2" +current_version = "1.1.3" version_pattern = "MAJOR.MINOR.PATCH" commit_message = "bump version {old_version} -> {new_version}" commit = true diff --git a/src/reader/__init__.py b/src/reader/__init__.py index 9c5c2be..c7a1d21 100644 --- a/src/reader/__init__.py +++ b/src/reader/__init__.py @@ -19,7 +19,7 @@ # Version of realpython-reader package -__version__ = "1.1.2" +__version__ = "1.1.3" # Read URL of the Real Python feed from config file _cfg = tomllib.loads(resources.read_text("reader", "config.toml")) diff --git a/src/reader/__main__.py b/src/reader/__main__.py index 57d5284..8dce069 100644 --- a/src/reader/__main__.py +++ b/src/reader/__main__.py @@ -40,7 +40,7 @@ Version: -------- -- realpython-reader v1.1.2 +- realpython-reader v1.1.3 """ # Standard library imports import sys From 63620e0ac1b3f8f428d316511fe873c60804806d Mon Sep 17 00:00:00 2001 From: Geir Arne Hjelle Date: Mon, 14 Oct 2024 23:22:35 +0200 Subject: [PATCH 11/13] Fix token for TestPyPI (#20) --- .github/workflows/publish.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index cea9dae..688ab4e 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -32,7 +32,7 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + password: ${{ secrets.TESTPYPI_API_TOKEN }} repository-url: https://test.pypi.org/legacy/ - name: Create GitHub Release From ad951f724fc14e41cef71c86c4cf45a80251e8b4 Mon Sep 17 00:00:00 2001 From: Ricky White Date: Mon, 14 Oct 2024 17:53:38 -0400 Subject: [PATCH 12/13] Add 3.13 to testing workflow and make 3.9 the min version (#21) --- .github/workflows/lint.yaml | 2 +- .github/workflows/publish.yaml | 2 +- .github/workflows/test.yaml | 2 +- pyproject.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 33f5a29..2f647cc 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: '3.13' cache: 'pip' - name: Install dependencies diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 688ab4e..512e334 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -12,7 +12,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: '3.13' - name: Install dependencies run: | diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 9c8b239..2f6ec97 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 diff --git a/pyproject.toml b/pyproject.toml index 42e2049..4a06025 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ classifiers = [ ] keywords = ["feed", "reader", "tutorial"] dependencies = ["feedparser", "html2text", 'tomli; python_version < "3.11"'] -requires-python = ">=3.7" +requires-python = ">=3.9" [project.optional-dependencies] build = ["build", "twine"] From fe3712693f6220587d76c71f777a0d71b6ba14c6 Mon Sep 17 00:00:00 2001 From: Geir Arne Hjelle Date: Mon, 14 Oct 2024 23:58:08 +0200 Subject: [PATCH 13/13] bump version 1.1.3 -> 1.1.4 --- pyproject.toml | 4 ++-- src/reader/__init__.py | 2 +- src/reader/__main__.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4a06025..b2be1ab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "realpython-reader" -version = "1.1.3" +version = "1.1.4" description = "Read the latest Real Python tutorials" readme = "README.md" authors = [{ name = "Real Python", email = "info@realpython.com" }] @@ -31,7 +31,7 @@ requires-python = ">=3.9" [tool.bumpver] -current_version = "1.1.3" +current_version = "1.1.4" version_pattern = "MAJOR.MINOR.PATCH" commit_message = "bump version {old_version} -> {new_version}" commit = true diff --git a/src/reader/__init__.py b/src/reader/__init__.py index c7a1d21..383f287 100644 --- a/src/reader/__init__.py +++ b/src/reader/__init__.py @@ -19,7 +19,7 @@ # Version of realpython-reader package -__version__ = "1.1.3" +__version__ = "1.1.4" # Read URL of the Real Python feed from config file _cfg = tomllib.loads(resources.read_text("reader", "config.toml")) diff --git a/src/reader/__main__.py b/src/reader/__main__.py index 8dce069..56e5fa7 100644 --- a/src/reader/__main__.py +++ b/src/reader/__main__.py @@ -40,7 +40,7 @@ Version: -------- -- realpython-reader v1.1.3 +- realpython-reader v1.1.4 """ # Standard library imports import sys