mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
chore(release): prepare for 6.2.1
Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
This commit is contained in:
parent
ef2baad7b3
commit
8b25d11a3a
3 changed files with 34 additions and 12 deletions
|
@ -2,10 +2,7 @@ import configparser
|
|||
import os
|
||||
from typing import Any
|
||||
|
||||
# Publicly visible version of aurweb. This is used to display
|
||||
# aurweb versioning in the footer and must be maintained.
|
||||
# Todo: Make this dynamic/automated.
|
||||
AURWEB_VERSION = "v6.2.0"
|
||||
import tomlkit
|
||||
|
||||
_parser = None
|
||||
|
||||
|
@ -42,6 +39,18 @@ def get(section, option):
|
|||
return _get_parser().get(section, option)
|
||||
|
||||
|
||||
def _get_project_meta():
|
||||
with open(os.path.join(get("options", "aurwebdir"), "pyproject.toml")) as pyproject:
|
||||
file_contents = pyproject.read()
|
||||
|
||||
return tomlkit.parse(file_contents)["tool"]["poetry"]
|
||||
|
||||
|
||||
# Publicly visible version of aurweb. This is used to display
|
||||
# aurweb versioning in the footer and must be maintained.
|
||||
AURWEB_VERSION = str(_get_project_meta()["version"])
|
||||
|
||||
|
||||
def getboolean(section, option):
|
||||
return _get_parser().getboolean(section, option)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue