aboutsummaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorUnrud <unrud@openaliasbox.org>2018-08-29 05:18:18 +0200
committerUnrud <unrud@openaliasbox.org>2018-08-29 05:18:18 +0200
commitcb67d08d04368a3e2314fbacb269fa3deedc279c (patch)
tree0dc6e112f60aff16ed2d48589307b1d7b22ac69b /setup.py
parentUse os.walk instead of glob (fixes #2) (diff)
downloadradicaleinfcloud-cb67d08d04368a3e2314fbacb269fa3deedc279c.tar.gz
radicaleinfcloud-cb67d08d04368a3e2314fbacb269fa3deedc279c.tar.bz2
radicaleinfcloud-cb67d08d04368a3e2314fbacb269fa3deedc279c.zip
Move VERSION to setup.py
Diffstat (limited to 'setup.py')
-rw-r--r--[-rwxr-xr-x]setup.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/setup.py b/setup.py
index 968faa1..423a443 100755..100644
--- 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",
bgstack15