forked from s_ranjbar/city_retrofit
Remove deprecated waring in setup.py
This commit is contained in:
parent
0d05960102
commit
722b41aa10
7
setup.py
7
setup.py
|
@ -2,14 +2,13 @@ import glob
|
||||||
import pathlib
|
import pathlib
|
||||||
from distutils.util import convert_path
|
from distutils.util import convert_path
|
||||||
|
|
||||||
import pkg_resources
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
with pathlib.Path('requirements.txt').open() as r:
|
with pathlib.Path('requirements.txt').open() as r:
|
||||||
install_requires = [
|
install_requires = [
|
||||||
str(requirement)
|
str(requirement).replace('\n', '')
|
||||||
for requirement
|
for requirement
|
||||||
in pkg_resources.parse_requirements(r)
|
in r.readlines()
|
||||||
]
|
]
|
||||||
install_requires.append('setuptools')
|
install_requires.append('setuptools')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user