File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11from dxfeed .wrappers .endpoint import Endpoint
22from dxfeed .core .utils .handler import EventHandler , DefaultHandler
33import pkg_resources
4+ import toml
5+ from pathlib import Path
6+
47
58try :
69 __version__ = pkg_resources .get_distribution ('dxfeed' ).version
710except pkg_resources .DistributionNotFound :
8- import toml
9- from pathlib import Path
10- pyproject = toml .load (Path (__file__ ).parents [1 ].joinpath ('pyproject.toml' ))
11+ pyproject = toml .load (Path (__file__ ).parents [1 ] / 'pyproject.toml' )
1112 __version__ = pyproject ['tool' ]['poetry' ]['version' ]
Original file line number Diff line number Diff line change @@ -31,25 +31,24 @@ exclude = ['dxfeed/dxfeed-c-api/wrappers*',
3131[tool .poetry .dependencies ]
3232python = ' ^3.6'
3333pandas = ' ^0.25.1'
34+ toml = ' ^0.10.0'
3435# The following dependencies are used for docs generation when installed as extras
3536# (e.g. pip install nornir[docs])
3637# Currently they have to be specified as non-dev dependencies with optional = true
3738# Refer to: https://github.com/sdispater/poetry/issues/129
3839# Issue to watch for: https://github.com/python-poetry/poetry/issues/1644
39- toml = { version = ' ^0.10.0' , optional = true }
4040jupyter = { version = ' ^1.0.0' , optional = true }
4141
4242[tool .poetry .dev-dependencies ]
4343cython = ' ^0.29.13'
4444taskipy = ' ^1.1.3'
4545pytest = ' ^5.3.5'
4646sphinx = ' ^2.4.4'
47- toml = ' ^0.10.0'
4847sphinx_rtd_theme = ' ^0.4.3'
4948pygments = ' ^2.6.1'
5049
5150[tool .poetry .extras ]
52- docs = [' toml ' , ' jupyter' ]
51+ docs = [' jupyter' ]
5352
5453[tool .taskipy .tasks ]
5554clear = ' find dxfeed/core -type f \( -iname *.c -o -iname *.cpp -o -iname *.pyd -o -iname *.so \) -delete'
You can’t perform that action at this time.
0 commit comments