-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use latest sphinx for python_version >= 3.8
- Loading branch information
1 parent
a67dbc4
commit 4b8f602
Showing
5 changed files
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright (C) 2020, 2021 Serghei Iakovlev <[email protected]> | ||
# Copyright (C) 2020, 2021, 2022 Serghei Iakovlev <[email protected]> | ||
# | ||
# This file is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright (C) 2020, 2021 Serghei Iakovlev <[email protected]> | ||
# Copyright (C) 2020, 2021, 2022 Serghei Iakovlev <[email protected]> | ||
# | ||
# This file is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright (C) 2020, 2021 Serghei Iakovlev <[email protected]> | ||
# Copyright (C) 2020, 2021, 2022 Serghei Iakovlev <[email protected]> | ||
# | ||
# This file is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License | ||
|
@@ -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 | ||
], | ||
} | ||
|
@@ -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 = { | ||
|