Skip to content

Commit

Permalink
Fixes sphinx builds
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Sep 29, 2018
1 parent 193835d commit 4690064
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 6 deletions.
14 changes: 11 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,22 @@

# -- Project information -----------------------------------------------------

from wemake_python_styleguide.version import pkg_name, pkg_version
def _get_project_meta():
import tomlkit

project = pkg_name
with open('../pyproject.toml') as pyproject:
contents = pyproject.read()

return tomlkit.parse(contents)['tool']['poetry']

pkg_meta = _get_project_meta()

project = pkg_meta['name']
copyright = '2018, wemake.services'
author = 'wemake.services'

# The short X.Y version
version = pkg_version
version = pkg_meta['version']
# The full version, including alpha/beta/rc tags
release = version

Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ sphinx_autodoc_typehints==1.3.0
recommonmark==0.4.0
m2r==0.2.0
added-value==0.8
tomlkit==0.4.4
12 changes: 11 additions & 1 deletion pyproject.lock
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,15 @@ platform = "*"
python-versions = "*"
version = "6.3.0"

[[package]]
category = "dev"
description = "Style preserving TOML library"
name = "tomlkit"
optional = false
platform = "*"
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
version = "0.4.4"

[[package]]
category = "dev"
description = "a fork of Python 2 and 3 ast modules with type comment support"
Expand Down Expand Up @@ -903,7 +912,7 @@ python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4"
version = "1.23"

[metadata]
content-hash = "1e4bf81dda8ed3143dd999d1198aafd6ebf5743419f8d18236d50d681f4f8cd6"
content-hash = "7affe331e0a571d216d882f94af864d29c94542ddbe5337032a6f1c7eb661b9a"
platform = "*"
python-versions = "^3.6 || ^3.7"

Expand Down Expand Up @@ -983,6 +992,7 @@ sphinxcontrib-napoleon = ["407382beed396e9f2d7f3043fad6afda95719204a1e1a231ac865
sphinxcontrib-websupport = ["68ca7ff70785cbe1e7bccc71a48b5b6d965d79ca50629606c7861a21b206d9dd", "9de47f375baf1ea07cdb3436ff39d7a9c76042c10a769c52353ec46e4e8fc3b9"]
stevedore = ["1e153545aca7a6a49d8337acca4f41c212fbfa60bf864ecd056df0cafb9627e8", "c7eac1c0d95824c88b655273da5c17cdde6482b2739f47c30bf851dcc9d3c2c0"]
testfixtures = ["334497d26344e8c0c5d01b4d785a1c83464573151e6a5f7ab250eb7981d452ec", "53c06c1feb0bf378d63c54d1d96858978422d5a34793b39f0dcb0e44f8ec26f4"]
tomlkit = ["8ab16e93162fc44d3ad83d2aa29a7140b8f7d996ae1790a73b9a7aed6fb504ac", "ca181cee7aee805d455628f7c94eb8ae814763769a93e69157f250fe4ebe1926"]
typed-ast = ["0948004fa228ae071054f5208840a1e88747a357ec1101c17217bfe99b299d58", "25d8feefe27eb0303b73545416b13d108c6067b846b543738a25ff304824ed9a", "29464a177d56e4e055b5f7b629935af7f49c196be47528cc94e0a7bf83fbc2b9", "2e214b72168ea0275efd6c884b114ab42e316de3ffa125b267e732ed2abda892", "3e0d5e48e3a23e9a4d1a9f698e32a542a4a288c871d33ed8df1b092a40f3a0f9", "519425deca5c2b2bdac49f77b2c5625781abbaf9a809d727d3a5596b30bb4ded", "57fe287f0cdd9ceaf69e7b71a2e94a24b5d268b35df251a88fef5cc241bf73aa", "668d0cec391d9aed1c6a388b0d5b97cd22e6073eaa5fbaa6d2946603b4871efe", "68ba70684990f59497680ff90d18e756a47bf4863c604098f10de9716b2c0bdd", "6de012d2b166fe7a4cdf505eee3aaa12192f7ba365beeefaca4ec10e31241a85", "79b91ebe5a28d349b6d0d323023350133e927b4de5b651a8aa2db69c761420c6", "8550177fa5d4c1f09b5e5f524411c44633c80ec69b24e0e98906dd761941ca46", "a8034021801bc0440f2e027c354b4eafd95891b573e12ff0418dec385c76785c", "bc978ac17468fe868ee589c795d06777f75496b1ed576d308002c8a5756fb9ea", "c05b41bc1deade9f90ddc5d988fe506208019ebba9f2578c622516fd201f5863", "c9b060bd1e5a26ab6e8267fd46fc9e02b54eb15fffb16d112d4c7b1c12987559", "edb04bdd45bfd76c8292c4d9654568efaedf76fe78eb246dde69bdb13b2dad87", "f19f2a4f547505fe9072e15f6f4ae714af51b5a681a97f187971f50c283193b6"]
typing = ["4027c5f6127a6267a435201981ba156de91ad0d1d98e9ddc2aa173453453492d", "57dcf675a99b74d64dacf6fba08fb17cf7e3d5fdff53d4a30ea2a5e7e52543d4", "a4c8473ce11a65999c8f59cb093e70686b6c84c98df58c1dae9b3b196089858a"]
typing-extensions = ["1c0a8e3b4ce55207a03dd0dcb98bc47a704c71f14fe4311ec860cc8af8f4bd27", "8b0962ecb92847974514b1724c8ae2b6dd1ffe86bcdfac429517f5e583ada658", "be7b05ddab71727fabf1f071365043cf034e4cdac9cade1f1d61a6cc526aaafe"]
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ flake8-debugger = "^3.1"
flake8-isort = "^2.5"
flake8-eradicate = "^0.1"
flake8-bandit = "^1.0"
flake8-logging-format = "^0.5.0"
flake8-logging-format = "^0.5"
flake8-type-annotations = "^0.1"
pep8-naming = "^0.7"
flake8-type-annotations = "^0.1.0"

[tool.poetry.dev-dependencies]
pytest-cov = "^2.6"
Expand All @@ -78,3 +78,4 @@ doc8 = "^0.8"
m2r = "^0.2"
sphinx_readable_theme = "^1.3"
added-value = "^0.8"
tomlkit = "^0.4"

0 comments on commit 4690064

Please sign in to comment.