From 23393777632d4cc774d28c7ced16428de6ad9cc9 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 21 Sep 2021 00:14:17 +0200 Subject: [PATCH] Fix version in setup.py --- setup.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index bf6a482d..e9b72a7d 100755 --- a/setup.py +++ b/setup.py @@ -2,9 +2,12 @@ import os import sys +import subprocess + from setuptools import setup, find_packages from moulinette import env +version = subprocess.check_output("head debian/changelog -n1 | awk '{print $2}' | tr -d '()'", shell=True).decode().strip() LOCALES_DIR = env["LOCALES_DIR"] @@ -36,19 +39,19 @@ test_deps = [ "requests-mock", "webtest", ] + extras = { "install": install_deps, "tests": test_deps, } - setup( name="Moulinette", - version="2.0.0", + version=version, description="Prototype interfaces quickly and easily", author="Yunohost Team", author_email="yunohost@yunohost.org", - url="http://yunohost.org", + url="https://yunohost.org", license="AGPL", packages=find_packages(exclude=["test"]), data_files=[(LOCALES_DIR, locale_files)],