Commit 7f0febb9 authored by mathieui's avatar mathieui

Merge branch 'use-runpy-for-version-data' into 'master'

fix: use runpy to get versiion-data

See merge request !158
parents 0d52344a 44392fa2
Pipeline #3926 passed with stages
in 7 minutes and 53 seconds
......@@ -7,6 +7,7 @@
# This software is licensed as described in the README.rst and LICENSE
# file, which you should have received as part of this distribution.
import runpy
import os
from pathlib import Path
from subprocess import call, DEVNULL, check_output, CalledProcessError
......@@ -17,9 +18,10 @@ except ImportError:
from distutils.core import setup
from run_tests import TestCommand
from slixmpp.version import __version__
VERSION = __version__
version_mod = runpy.run_path('slixmpp/version.py')
VERSION = version_mod['__version__']
DESCRIPTION = ('Slixmpp is an elegant Python library for XMPP (aka Jabber).')
with open('README.rst', encoding='utf8') as readme:
LONG_DESCRIPTION = readme.read()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment