Skip to content

Commit

Permalink
Drop python3.6 support (#2499)
Browse files Browse the repository at this point in the history
* Drop python3.6 support

* Fix CI

* Fix CI

* Fix CI

* Fix CI
  • Loading branch information
sobolevn authored Sep 25, 2022
1 parent 45cd76a commit 534008b
Show file tree
Hide file tree
Showing 32 changed files with 660 additions and 851 deletions.
4 changes: 3 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ build:
- asdf global poetry latest
- poetry config virtualenvs.create false
post_install:
- poetry install -E docs --no-dev
- |
. "$(pwd | rev | sed 's/stuokcehc/svne/' | rev)/bin/activate"
&& poetry install --only main --only docs
sphinx:
configuration: 'docs/conf.py'
Expand Down
8 changes: 3 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,16 @@
import os
import sys

import tomlkit
import tomli

sys.path.insert(0, os.path.abspath('..'))


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

def _get_project_meta():
with open('../pyproject.toml') as pyproject:
file_contents = pyproject.read()

return tomlkit.parse(file_contents)['tool']['poetry']
with open('../pyproject.toml', mode='rb') as pyproject:
return tomli.load(pyproject)['tool']['poetry']


pkg_meta = _get_project_meta()
Expand Down
Loading

0 comments on commit 534008b

Please sign in to comment.