Skip to content

Commit b13b1ea

Browse files
committed
updated setup script
1 parent 28d5199 commit b13b1ea

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

btplotting/version.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '0.1.1'

setup.py

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
1-
#!/usr/bin/env python
2-
# -*- coding: utf-8; py-indent-offset:4 -*-
31
import setuptools
2+
from distutils.util import convert_path
43

54
with open("README.md", "r") as fh:
65
long_description = fh.read()
76

7+
main_ns = {}
8+
ver_path = convert_path('btplotting/version.py')
9+
with open(ver_path) as ver_file:
10+
exec(ver_file.read(), main_ns)
11+
812
setuptools.setup(
913
name='btplotting',
10-
11-
version='0.1.0',
12-
14+
version=main_ns['__version__'],
1315
description='Plotting package for Backtrader (Bokeh)',
14-
1516
python_requires='>=3.6',
16-
1717
author='happydasch',
1818
author_email='[email protected]',
19-
2019
long_description=long_description,
2120
long_description_content_type="text/markdown",
22-
2321
license='GPLv3+',
2422
url="https://github.com/happydasch/btplotting",
2523
project_urls={

0 commit comments

Comments
 (0)