Skip to content

Commit

Permalink
fix docs build 2, drop python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
gpchelkin committed Oct 13, 2024
1 parent 27ee7d4 commit c11e569
Show file tree
Hide file tree
Showing 8 changed files with 247 additions and 300 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
python-version: ['3.10', '3.11', '3.12', '3.13']

steps:
- uses: actions/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Requirements

Those should be available in your ``PATH``:

- `Python 3.9+ <https://www.python.org>`__
- `Python 3.10+ <https://www.python.org>`__
(`pyenv <https://github.com/pyenv/pyenv>`__ and `poetry <https://python-poetry.org/>`__ are recommended)
- `yt-dlp strongly recommended dependencies <https://github.com/yt-dlp/yt-dlp#strongly-recommended>`__, including:
- `FFmpeg 6.1+ <https://ffmpeg.org/download.html>`__ (in your `$PATH`) (if not running on Heroku/Render)
Expand Down
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def _get_project_meta():

pkg_meta = _get_project_meta()
project = str(pkg_meta['name'])
copyright = '2023, gpchelkin' # noqa: A001 # skipcq: PYL-W0622
copyright = '2024, gpchelkin' # noqa: A001 # skipcq: PYL-W0622
author = 'gpchelkin'

# The short X.Y version
Expand Down Expand Up @@ -56,7 +56,8 @@ def _get_project_meta():
'sphinx.ext.napoleon',

# Used to include .md files:
'm2r2',
# 'm2r2',
"myst_parser",

# Used to insert typehints into the final docs:
'sphinx_autodoc_typehints',
Expand Down
155 changes: 51 additions & 104 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ include = ["AUTHORS.rst", "CONTRIBUTING.md", "CHANGELOG.rst", "LICENSE", "README
scdlbot = "scdlbot.__main__:main"

[tool.poetry.dependencies]
python = "^3.9"
python = "^3.10"
python-telegram-bot = { version = "21.6", extras = ["webhooks", "job-queue", "http2", "rate-limiter"] }
#ptbcontrib = { git = "https://github.com/python-telegram-bot/ptbcontrib.git", branch = "main", extras = ["postgres-persistence"] }
# https://python-poetry.org/docs/dependency-specification#path-dependencies
Expand Down Expand Up @@ -110,7 +110,8 @@ sphinx-autodoc-typehints = "^2.3.0"
#m2r2 = "^0.3"
# https://github.com/CrossNox/m2r2/issues/68
# https://github.com/CrossNox/m2r2/pull/69
m2r2 = { git = "https://github.com/adrien-berchet/m2r2.git", branch = "patch-1" }
#m2r2 = { git = "https://github.com/adrien-berchet/m2r2.git", branch = "patch-1" }
myst-parser = "^4.0.0"
tomli = "^2.0"
recommonmark = "^0.7"
typing-extensions = "^4.9"
Expand Down Expand Up @@ -169,7 +170,6 @@ envlist = py39, py310, py311
[gh-actions]
#tox-gh-actions: run tox only on envs which match github actions workflow python version (one env per job)
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
Expand Down
Loading

0 comments on commit c11e569

Please sign in to comment.