mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-06 12:27:45 +00:00
Fix ReadTheDocs config for Poetry (#1663)
This commit is contained in:
@@ -3,10 +3,16 @@ version: 2
|
|||||||
sphinx:
|
sphinx:
|
||||||
configuration: docs/conf.py
|
configuration: docs/conf.py
|
||||||
|
|
||||||
python:
|
build:
|
||||||
version: 3.7
|
os: "ubuntu-22.04"
|
||||||
install:
|
tools:
|
||||||
- method: pip
|
python: "3.8"
|
||||||
path: .
|
jobs:
|
||||||
extra_requirements:
|
post_create_environment:
|
||||||
- docs
|
# Install poetry
|
||||||
|
- pip install poetry
|
||||||
|
# Tell poetry to not use a virtual environment
|
||||||
|
- poetry config virtualenvs.create false
|
||||||
|
post_install:
|
||||||
|
# Install dependencies with 'docs' dependency group
|
||||||
|
- poetry install --with docs
|
||||||
|
|||||||
@@ -62,12 +62,12 @@ copyright = '2018, Zalando SE'
|
|||||||
# |version| and |release|, also used in various other places throughout the
|
# |version| and |release|, also used in various other places throughout the
|
||||||
# built documents.
|
# built documents.
|
||||||
#
|
#
|
||||||
import connexion
|
from importlib.metadata import version
|
||||||
|
|
||||||
# The short X.Y version.
|
|
||||||
version = connexion.__version__.rsplit('.', 1)[0]
|
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = connexion.__version__
|
release = version('connexion')
|
||||||
|
# The short X.Y version.
|
||||||
|
version = release.rsplit('.', 1)[0]
|
||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
|
|||||||
Reference in New Issue
Block a user