mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-05 03:47:57 +03:00
[Common] Replace platform.linux_distribution function
As of python 3.5, this function is marked as deprecated. So, [distro][1] is the one we will use (this package is listed at the example package in the python's [docs][2]). [1] https://pypi.org/project/distro/ [2] https://docs.python.org/3/library/platform.html#platform.dist
This commit is contained in:
parent
1a134cab1b
commit
2296906ed3
4 changed files with 15 additions and 3 deletions
1
setup.py
1
setup.py
|
@ -551,6 +551,7 @@ install_requires = [
|
|||
"py2-ipaddress; sys_platform == 'win32' and python_version == '2'",
|
||||
"certifi; sys_platform == 'win32'",
|
||||
'zope.interface',
|
||||
"distro; 'win' not in sys_platform",
|
||||
]
|
||||
tests_require = ['pytest', 'pytest-twisted']
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue