mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Fix version in setup.py
This commit is contained in:
parent
86b29b14b2
commit
2339377763
1 changed files with 6 additions and 3 deletions
9
setup.py
9
setup.py
|
@ -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)],
|
||||||
|
|
Loading…
Add table
Reference in a new issue