import version from __init__, bump version

This commit is contained in:
iuvbio 2020-02-23 17:07:18 +01:00
parent 9fda0f0e83
commit 26c1fe1f00
2 changed files with 13 additions and 3 deletions

View File

@ -1 +1,5 @@
from .parser import read_ods
__version__ = '0.0.8'

View File

@ -1,13 +1,19 @@
from setuptools import setup, find_packages
VERSION = "0.0.7"
version = None
with open('pandas_ods_reader/__init__.py') as f:
for line in f.readlines():
if not line.startswith('__version__'):
continue
version = line.split(' = ')[1].strip()[1:-1]
with open("README.md", "r") as fh:
long_description = fh.read()
setup(name="pandas_ods_reader",
version=VERSION,
version=version,
description="Read in an ODS file and return it as a pandas.DataFrame",
long_description=long_description,
long_description_content_type="text/markdown",
@ -25,6 +31,6 @@ setup(name="pandas_ods_reader",
packages=find_packages(),
zip_safe=False,
install_requires=["ezodf", "pandas", "lxml"],
setup_requires=["pytest-runner"],
setup_requires=["pytest-runner"], # TODO: remove pytest-runner
tests_require=["pytest"]
)