Skip to content

Commit

Permalink
fix #38 getting __version__ requires package installation
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatYYX committed May 7, 2021
1 parent 2bd4495 commit 83027e6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
from distutils.core import setup
from setuptools import find_packages
from rltk import __version__


with open('README.rst', 'r', encoding='utf-8') as fh:
long_description = fh.read()
with open('rltk/__init__.py', 'r') as f:
for line in f:
if line.startswith('__version__'):
exec(line) # fetch and create __version__
break

with open('README.rst', 'r', encoding='utf-8') as f:
long_description = f.read()

with open('requirements.txt', 'r') as f:
install_requires = list()
Expand Down

0 comments on commit 83027e6

Please sign in to comment.