Unverified Commit 9ed2542e authored by Zsolt Dollenstein's avatar Zsolt Dollenstein Committed by GitHub
Browse files

Omit commit hash and date stamp from doc version (#1322)


This also removes the dependency on setuptools-scm while building the
docs.

Fixes #1104.
parent 7e4c6bf7
Loading
Loading
Loading
Loading
+3 −3
Changes for docs/conf.py: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
import shutil
import string

from setuptools_scm import get_version
from pkg_resources import get_distribution
from recommonmark.parser import CommonMarkParser


@@ -83,8 +83,8 @@ def generate_sections_from_readme():
author = "Łukasz Langa and contributors to Black"

# Autopopulate version
# The full version, including alpha/beta/rc tags.
release = get_version(root=CURRENT_DIR.parent)
# The version, including alpha/beta/rc tags, but not commit hash and datestamps
release = get_distribution("black").version.split("+")[0]
# The short X.Y version.
version = release
for sp in "abcfr":
+0 −1
Changes for docs/requirements.txt: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
recommonmark==0.4.0
Sphinx==1.7.2
setuptools_scm==3.3.3
+2 −0
Changes for readthedocs.yml: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -3,3 +3,5 @@ python:
  version: 3.8
  install:
    - requirements: docs/requirements.txt
    - method: setuptools
      path: .