Skip to content

Commit

Permalink
Use latest sphinx for python_version >= 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed Jun 13, 2022
1 parent a628fa0 commit 1bbca14
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
@@ -1,4 +1,4 @@
# Copyright (C) 2020, 2021 Serghei Iakovlev <egrep@protonmail.ch>
# Copyright (C) 2020, 2021, 2022 Serghei Iakovlev <egrep@protonmail.ch>
#
# This file is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
1 change: 1 addition & 0 deletions requirements/requirements-dev.in
Expand Up @@ -27,6 +27,7 @@ furo
# freeze sphinx because flake8 requires importlib-metadata<4.3
# for python<3.8 but sphinx>=4.4.0 requires importlib-metadata>=4.4
sphinx>=3.5.0,<=4.3.2; python_version < '3.8'
sphinx>=3.5.0; python_version >= '3.8'

# develop
twine
Expand Down
5 changes: 3 additions & 2 deletions requirements/requirements-dev.txt
Expand Up @@ -130,8 +130,9 @@ snowballstemmer==2.2.0
# via sphinx
soupsieve==2.3.2.post1
# via beautifulsoup4
sphinx==5.0.1
sphinx==5.0.1 ; python_version >= "3.8"
# via
# -r requirements/requirements-dev.in
# furo
# sphinx-basic-ng
sphinx-basic-ng==0.0.1a11
Expand Down Expand Up @@ -182,7 +183,7 @@ zipp==3.8.0
# via importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
setuptools==62.3.4
setuptools==62.4.0
# via
# astroid
# check-manifest
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements.in
@@ -1,4 +1,4 @@
# Copyright (C) 2020, 2021 Serghei Iakovlev <egrep@protonmail.ch>
# Copyright (C) 2020, 2021, 2022 Serghei Iakovlev <egrep@protonmail.ch>
#
# This file is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
14 changes: 11 additions & 3 deletions setup.py
@@ -1,4 +1,4 @@
# Copyright (C) 2020, 2021 Serghei Iakovlev <egrep@protonmail.ch>
# Copyright (C) 2020, 2021, 2022 Serghei Iakovlev <egrep@protonmail.ch>
#
# This file is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down Expand Up @@ -175,8 +175,14 @@ def get_version_string():
'flake8-blind-except>=0.2.0', # Checks for blind except: statements
'check-manifest>=0.45', # Check MANIFEST.in
],
'docs': [
# freeze sphinx because flake8 requires importlib-metadata<4.3
# for python<3.8 but sphinx>=4.4.0 requires importlib-metadata>=4.4
'docs:python_version < "3.8"': [
'furo>=2022.4.7,==2022.4.*', # Sphinx documentation theme
'sphinx>=3.5.0,<=4.3.2', # Python documentation generator
],
'docs:python_version >= "3.8"': [
'furo>=2022.6.4.1,==2022.6.*', # Sphinx documentation theme
'sphinx>=3.5.0', # Python documentation generator
],
}
Expand All @@ -190,7 +196,9 @@ def get_version_string():
]

EXTRAS_REQUIRE['develop'] = \
DEVELOP_REQUIRE + EXTRAS_REQUIRE['testing'] + EXTRAS_REQUIRE['docs']
DEVELOP_REQUIRE + EXTRAS_REQUIRE['testing'] + \
EXTRAS_REQUIRE['docs:python_version < "3.8"'] + \
EXTRAS_REQUIRE['docs:python_version >= "3.8"']

# Project's URLs
PROJECT_URLS = {
Expand Down

0 comments on commit 1bbca14

Please sign in to comment.