Merge pull request #377 from pylast/speedup
This commit is contained in:
commit
4d4d167394
|
@ -6,6 +6,7 @@ long_description_content_type = text/markdown
|
||||||
url = https://github.com/pylast/pylast
|
url = https://github.com/pylast/pylast
|
||||||
author = Amr Hassan <amr.hassan@gmail.com> and Contributors
|
author = Amr Hassan <amr.hassan@gmail.com> and Contributors
|
||||||
author_email = amr.hassan@gmail.com
|
author_email = amr.hassan@gmail.com
|
||||||
|
maintainer = Hugo van Kemenade
|
||||||
license = Apache-2.0
|
license = Apache-2.0
|
||||||
license_file = LICENSE.txt
|
license_file = LICENSE.txt
|
||||||
classifiers =
|
classifiers =
|
||||||
|
@ -31,6 +32,8 @@ keywords =
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
packages = find:
|
packages = find:
|
||||||
|
install_requires =
|
||||||
|
importlib-metadata;python_version < '3.8'
|
||||||
python_requires = >=3.6
|
python_requires = >=3.6
|
||||||
package_dir = =src
|
package_dir = =src
|
||||||
setup_requires =
|
setup_requires =
|
||||||
|
|
|
@ -33,13 +33,18 @@ from http.client import HTTPSConnection
|
||||||
from urllib.parse import quote_plus
|
from urllib.parse import quote_plus
|
||||||
from xml.dom import Node, minidom
|
from xml.dom import Node, minidom
|
||||||
|
|
||||||
import pkg_resources
|
try:
|
||||||
|
# Python 3.8+
|
||||||
|
import importlib.metadata as importlib_metadata
|
||||||
|
except ImportError:
|
||||||
|
# Python 3.7 and lower
|
||||||
|
import importlib_metadata
|
||||||
|
|
||||||
__author__ = "Amr Hassan, hugovk, Mice Pápai"
|
__author__ = "Amr Hassan, hugovk, Mice Pápai"
|
||||||
__copyright__ = "Copyright (C) 2008-2010 Amr Hassan, 2013-2021 hugovk, 2017 Mice Pápai"
|
__copyright__ = "Copyright (C) 2008-2010 Amr Hassan, 2013-2021 hugovk, 2017 Mice Pápai"
|
||||||
__license__ = "apache2"
|
__license__ = "apache2"
|
||||||
__email__ = "amr.hassan@gmail.com"
|
__email__ = "amr.hassan@gmail.com"
|
||||||
__version__ = pkg_resources.get_distribution(__name__).version
|
__version__ = importlib_metadata.version(__name__)
|
||||||
|
|
||||||
|
|
||||||
# 1 : This error does not exist
|
# 1 : This error does not exist
|
||||||
|
|
Loading…
Reference in a new issue