Browse Source

Handle version string in setup.py

This fixes the issue with importing the package in setup.py which fails
when the dependencies aren't already available.

Reported by Carsten Tschense.
master
Georg Sauthoff 2 years ago
parent
commit
5cc7591415
  1. 3
      inema/inema.py
  2. 3
      setup.py

3
inema/inema.py

@ -9,11 +9,12 @@ from lxml import etree
from zeep import Client
from zeep.wsse.username import UsernameToken
from pkg_resources import resource_stream, resource_listdir
import pkg_resources
import requests, zipfile
import io
import logging
__version__ = "0.8.1"
__version__ = pkg_resources.require(__name__)[0].version
_logger = logging.getLogger(__name__)

3
setup.py

@ -1,5 +1,4 @@
from setuptools import find_packages, setup
from inema import __version__
install_requires = [
'zeep >= 0.12.0',
@ -9,7 +8,7 @@ install_requires = [
setup(
name='inema',
version=__version__,
version='0.8.1',
description='A Python interface to the Deutsche Post Internetmarke Online Franking',
long_description=open('README.rst').read(),
author='Harald Welte',

Loading…
Cancel
Save