1
0
mirror of https://github.com/enpaul/keyosk.git synced 2024-11-24 23:47:49 +00:00

Update about module to pull from pyproject

This commit is contained in:
Ethan Paul 2020-02-18 22:58:33 -05:00
parent c79112eb6a
commit 0516970935
2 changed files with 13 additions and 8 deletions

View File

@ -1,8 +1,12 @@
# pylint: disable=missing-docstring
__title__ = "front-desk"
__version__ = "0.1.0"
__summary__ = "Web application for managing JSON Web Tokens"
__author__ = "Ethan Paul"
__author_email__ = "e@enp.one"
__url__ = "http://github.com/enpaul/front-desk"
__license__ = "MIT"
"""Access package info programatically without duplication"""
import importlib.resources
import toml
PYPROJECT = toml.loads(importlib.resources.read_text("keyosk", "pyproject.toml"))
__authors__ = PYPROJECT["tool"]["poetry"]["authors"]
__summary__ = PYPROJECT["tool"]["poetry"]["description"]
__title__ = PYPROJECT["tool"]["poetry"]["name"]
__url__ = PYPROJECT["tool"]["poetry"]["repository"]
__version__ = PYPROJECT["tool"]["poetry"]["version"]

1
keyosk/pyproject.toml Symbolic link
View File

@ -0,0 +1 @@
../pyproject.toml