mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Reverted python upgrade for now
This commit is contained in:
parent
84e8ac0139
commit
f56e23db1e
@ -9,12 +9,17 @@ try:
|
|||||||
VERSIONSTR = metadata['version']
|
VERSIONSTR = metadata['version']
|
||||||
HOMEPAGE = metadata['urls']['homepage']
|
HOMEPAGE = metadata['urls']['homepage']
|
||||||
except:
|
except:
|
||||||
|
|
||||||
# package distributrion
|
# package distributrion
|
||||||
from importlib import metadata
|
from pkg_resources import get_distribution
|
||||||
VERSIONSTR = metadata.version('maloja')
|
pkg = get_distribution('maloja') # also contains a metadata
|
||||||
urls = metadata.metadata('maloja').get_all('Project-URL')
|
VERSIONSTR = pkg.version
|
||||||
urls = [e.split(', ') for e in urls]
|
|
||||||
HOMEPAGE = [e[1] for e in urls if e[0] == 'homepage'][0]
|
#urls = metadata.metadata('maloja').get_all('Project-URL')
|
||||||
|
#urls = [e.split(', ') for e in urls]
|
||||||
|
#HOMEPAGE = [e[1] for e in urls if e[0] == 'homepage'][0]
|
||||||
|
# hardcode this for now
|
||||||
|
HOMEPAGE = "https://github.com/krateng/maloja"
|
||||||
|
|
||||||
|
|
||||||
VERSION = VERSIONSTR.split('.')
|
VERSION = VERSIONSTR.split('.')
|
||||||
|
@ -3,7 +3,7 @@ name = "maloja"
|
|||||||
version = "2.13.4"
|
version = "2.13.4"
|
||||||
description = "Self-hosted music scrobble database"
|
description = "Self-hosted music scrobble database"
|
||||||
readme = "./README.md"
|
readme = "./README.md"
|
||||||
requires-python = ">=3.8"
|
requires-python = ">=3.6"
|
||||||
license = { file="./LICENSE" }
|
license = { file="./LICENSE" }
|
||||||
authors = [ { name="Johannes Krattenmacher", email="maloja@dev.krateng.ch" } ]
|
authors = [ { name="Johannes Krattenmacher", email="maloja@dev.krateng.ch" } ]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user