Fix version in setup.py

This commit is contained in:
Alexandre Aubin 2021-09-21 00:14:17 +02:00
parent 86b29b14b2
commit 2339377763

View file

@ -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)],