From d3455b74e2b986ac0737e038de70a27e8cd71d70 Mon Sep 17 00:00:00 2001 From: Greg Dubicki Date: Fri, 26 Feb 2021 22:23:58 +0100 Subject: [PATCH] Fix new releases versions as we are not using Travis anymore --- setup.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/setup.py b/setup.py index 5257f804..620e42b4 100644 --- a/setup.py +++ b/setup.py @@ -1,19 +1,14 @@ import codecs -import os -import sys +import sys from setuptools import find_packages, setup from setuptools.command.test import test as TestCommand -def rc_value(): +def version(): with open('version') as fp: val = fp.read().rstrip() - return '{}rc0'.format(val) - - -def version(): - return os.getenv('TRAVIS_TAG', rc_value()) + return val class PyTest(TestCommand):