Skip to content

Commit

Permalink
Drop py3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
ewjoachim committed Jul 25, 2023
1 parent e0e237a commit 3ae4af5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Expand Up @@ -4,21 +4,22 @@ on:
pull_request:
push:
branches:
- 'main'
- "main"
tags:
- '*'
- "*"

jobs:
build:

strategy:
matrix:
include:
- python_version: 3.7
- python_version: "3.8"
script: tests
- python_version: "3.9"
script: tests
- python_version: 3.8
- python_version: "3.10"
script: tests
- python_version: 3.9
- python_version: "3.11"
script: tests

name: "py${{ matrix.python_version }} / ${{ matrix.script }}"
Expand Down
12 changes: 6 additions & 6 deletions README.rst
Expand Up @@ -143,12 +143,12 @@ Extension options (``conf.py``)
-------------------------------

- ``sphinx_github_changelog_token``: GitHub API token.
If the repository is public, the token doesn't need any special access (you can uncheck
eveything). If the repository is private, you'll need to give your token enough access
to read the releases.
Defaults to the value of the environment variable ``SPHINX_GITHUB_CHANGELOG_TOKEN``.
If no value is provided, the build will still pass but the changelog will not be
built, and a link to the ``changelog-url`` will be displayed (if provided).
If the repository is public, the token doesn't need any special access (you
can uncheck eveything). If the repository is private, you'll need to give
your token enough access to read the releases. Defaults to the value of the
environment variable ``SPHINX_GITHUB_CHANGELOG_TOKEN``. If no value is
provided, the build will still pass but the changelog will not be built, and
a link to the ``changelog-url`` will be displayed (if provided).

.. _ReadTheDocs: https://readthedocs.org/

Expand Down
7 changes: 1 addition & 6 deletions sphinx_github_changelog/metadata.py
@@ -1,11 +1,6 @@
import sys
import importlib.metadata as importlib_metadata
from typing import Mapping

if sys.version_info[:2] >= (3, 8): # pragma: no cover
import importlib.metadata as importlib_metadata
else: # pragma: no cover
import importlib_metadata


def extract_metadata() -> Mapping[str, str]:
# Backport of Python 3.8's future importlib.metadata()
Expand Down

0 comments on commit 3ae4af5

Please sign in to comment.