From cb67d08d04368a3e2314fbacb269fa3deedc279c Mon Sep 17 00:00:00 2001 From: Unrud Date: Wed, 29 Aug 2018 05:18:18 +0200 Subject: Move VERSION to setup.py --- radicale_infcloud/__init__.py | 2 -- setup.py | 9 +++------ 2 files changed, 3 insertions(+), 8 deletions(-) mode change 100755 => 100644 setup.py diff --git a/radicale_infcloud/__init__.py b/radicale_infcloud/__init__.py index 22157f0..f7509ba 100644 --- a/radicale_infcloud/__init__.py +++ b/radicale_infcloud/__init__.py @@ -23,8 +23,6 @@ from http import client from radicale import storage, web from radicale.web import NOT_FOUND, MIMETYPES, FALLBACK_MIMETYPE -VERSION = "2.0.0" - class Web(web.Web): def __init__(self, *args, **kwargs): diff --git a/setup.py b/setup.py old mode 100755 new mode 100644 index 968faa1..423a443 --- a/setup.py +++ b/setup.py @@ -1,14 +1,11 @@ #!/usr/bin/env python3 import os -import re from setuptools import setup -init_path = os.path.join(os.path.dirname(__file__), - "radicale_infcloud", "__init__.py") -with open(init_path) as f: - version = re.search(r'VERSION = "([^"]+)"', f.read()).group(1) +VERSION = "2.0.0" + os.chdir("radicale_infcloud") web_data = sum(([os.path.join(root, f) for f in files if not f.startswith(".") and not f.endswith("~")] @@ -17,7 +14,7 @@ os.chdir(os.pardir) setup( name="Radicale_InfCloud", - version=version, + version=VERSION, description="InfCloud for Radicale", author="Unrud", author_email="unrud@openaliasbox.org", -- cgit