[fix] use pip parse requirements in setup.py
This commit is contained in:
parent
a68a3b5cc1
commit
29fe53f63c
24
setup.py
24
setup.py
@ -1,18 +1,18 @@
|
|||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
from pip.req import parse_requirements
|
||||||
|
|
||||||
version = "6.12.6"
|
version = "6.12.6"
|
||||||
|
requirements = parse_requirements("requirements.txt", session="")
|
||||||
with open("requirements.txt", "r") as f:
|
|
||||||
install_requires = f.readlines()
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='erpnext',
|
name='erpnext',
|
||||||
version=version,
|
version=version,
|
||||||
description='Open Source ERP',
|
description='Open Source ERP',
|
||||||
author='Frappe Technologies',
|
author='Frappe Technologies',
|
||||||
author_email='info@erpnext.com',
|
author_email='info@erpnext.com',
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
install_requires=install_requires
|
install_requires=[str(ir.req) for ir in requirements],
|
||||||
|
dependency_links=[str(ir._link) for ir in requirements if ir._link]
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user