From b930bb432d5997a0ebb47cebbeabb06895749971 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sun, 14 Jun 2020 21:58:35 +0200 Subject: [PATCH] add -dev flag to clearly distinguish development versions --- owrx/version.py | 8 ++++---- setup.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/owrx/version.py b/owrx/version.py index 03ac1e5..60a4954 100644 --- a/owrx/version.py +++ b/owrx/version.py @@ -1,5 +1,5 @@ -from distutils.version import StrictVersion +from distutils.version import LooseVersion -_versionstring = "0.20.0" -strictversion = StrictVersion(_versionstring) -openwebrx_version = "v{0}".format(strictversion) +_versionstring = "0.20.0-dev" +looseversion = LooseVersion(_versionstring) +openwebrx_version = "v{0}".format(looseversion) diff --git a/setup.py b/setup.py index c29fdda..e8d7524 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from glob import glob from setuptools import setup -from owrx.version import strictversion +from owrx.version import looseversion try: from setuptools import find_namespace_packages @@ -10,7 +10,7 @@ except ImportError: setup( name="OpenWebRX", - version=str(strictversion), + version=str(looseversion), packages=find_namespace_packages(include=["owrx", "owrx.source", "owrx.service", "owrx.controllers", "owrx.property", "owrx.form", "csdr", "htdocs"]), package_data={"htdocs": [f[len("htdocs/") :] for f in glob("htdocs/**/*", recursive=True)]}, entry_points={"console_scripts": ["openwebrx=owrx.__main__:main"]},