Skip to content

Commit

Permalink
update requirements (#85)
Browse files Browse the repository at this point in the history
fixes #84 
- Only require backport dependencies for python version older than their implementation
- use `ordered-set`, instead of `oset` dependency, since it is better maintained
  • Loading branch information
chrisjsewell authored May 17, 2019
1 parent ff1ceec commit c2658ac
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"restructuredtext.preview.scrollPreviewWithEditor": false,
"restructuredtext.updateOnTextChanged": "false",
"restructuredtext.updateDelay": 100000,
"python.unitTest.unittestEnabled": false,
"python.unitTest.nosetestsEnabled": false,
"python.unitTest.pyTestEnabled": true,
"python.testing.unittestEnabled": false,
"python.testing.nosetestsEnabled": false,
"python.testing.pyTestEnabled": true,
"python.linting.pylintEnabled": false,
"python.linting.pylamaEnabled": false,
"python.linting.enabled": true,
Expand Down
6 changes: 5 additions & 1 deletion ipypublish/scripts/nb_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,11 @@ def setup_matplotlib(
from IPython import get_ipython
from IPython.display import set_matplotlib_formats
import matplotlib as mpl
from shutilwhich import which

try:
from shutil import which
except ImportError:
from shutilwhich import which

ipython = get_ipython()
latex_available = which('latex') is not None
Expand Down
4 changes: 2 additions & 2 deletions ipypublish/sphinx/gls/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import ast
import collections
import copy
from oset import oset
from ordered_set import OrderedSet
import re


Expand Down Expand Up @@ -182,7 +182,7 @@ def __init__(self):

self.bibfiles = {}
self._bibliographies = collections.defaultdict(dict)
self._cited = collections.defaultdict(oset)
self._cited = collections.defaultdict(OrderedSet)
self._enum_count = {}

def purge(self, docname):
Expand Down
7 changes: 3 additions & 4 deletions requirements-lock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,19 @@ mistune==0.8.4 # via nbconvert
mock==2.0.0 # via jupytext
nbconvert==5.4.0
nbformat==4.4.0
oset==0.1.3
ordered-set==3.1.1
pandocfilters==1.4.2 # via nbconvert
panflute==1.11.2
pathlib2==2.3.3
pathlib2==2.3.3 # via jsonextended
pbr==5.1.2 # via mock
pygments==2.3.1 # via nbconvert
pyparsing==2.3.1 # via bibtexparser
pyyaml==3.13 # via jupytext, panflute
ruamel.yaml==0.15.87
shutilwhich==1.1.0
shutilwhich==1.1.0 # via panflute
six==1.12.0
testfixtures==6.5.0 # via jupytext
testpath==0.4.2 # via nbconvert
tornado==5.1.1
traitlets==4.3.2
typing==3.6.6
webencodings==0.5.1 # via bleach
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ jsonschema
jupytext
nbconvert
nbformat
oset
pathlib2
ordered-set
pathlib2; python_version < '3.4'
panflute
ruamel.yaml
shutilwhich
shutilwhich; python_version < '3.3'
six>=1.11.0
traitlets
typing
typing; python_version < '3.5'
tornado

0 comments on commit c2658ac

Please sign in to comment.