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 os
import sys import sys
import subprocess
from setuptools import setup, find_packages from setuptools import setup, find_packages
from moulinette import env 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"] LOCALES_DIR = env["LOCALES_DIR"]
@ -36,19 +39,19 @@ test_deps = [
"requests-mock", "requests-mock",
"webtest", "webtest",
] ]
extras = { extras = {
"install": install_deps, "install": install_deps,
"tests": test_deps, "tests": test_deps,
} }
setup( setup(
name="Moulinette", name="Moulinette",
version="2.0.0", version=version,
description="Prototype interfaces quickly and easily", description="Prototype interfaces quickly and easily",
author="Yunohost Team", author="Yunohost Team",
author_email="yunohost@yunohost.org", author_email="yunohost@yunohost.org",
url="http://yunohost.org", url="https://yunohost.org",
license="AGPL", license="AGPL",
packages=find_packages(exclude=["test"]), packages=find_packages(exclude=["test"]),
data_files=[(LOCALES_DIR, locale_files)], data_files=[(LOCALES_DIR, locale_files)],