Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 74b264d

Browse files
committed
update setup.py and add Manifest
1 parent 838b6eb commit 74b264d

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

setup.py

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,24 @@
77

88
# Always prefer setuptools over distutils
99
from setuptools import setup, find_packages
10+
import pip
11+
12+
links = []
13+
requires = []
14+
15+
requirement_files = ['requirements-base.txt']
16+
17+
for req_file in requirement_files:
18+
requirements = pip.req.parse_requirements(req_file, session=pip.download.PipSession())
19+
20+
for item in requirements:
21+
# we want to handle package names and also repo urls
22+
if getattr(item, 'url', None): # older pip has url
23+
links.append(str(item.url))
24+
if getattr(item, 'link', None): # newer pip has link
25+
links.append(str(item.link))
26+
if item.req:
27+
requires.append(str(item.req))
1028

1129
description = "Binary Analysis & Management Framework"
1230

@@ -19,9 +37,12 @@
1937
long_description=description,
2038
url='http://viper.li',
2139

40+
platforms='any',
2241
scripts=['viper-cli', 'viper-api', 'viper-web', 'viper-update'],
2342
packages=find_packages(exclude=['tests', 'tests.*']),
24-
setup_requires=['pytest-runner'],
43+
install_requires=requires,
44+
dependency_links=links,
45+
2546
tests_require=['pytest'],
2647

2748
# BSD 3-Clause License:

0 commit comments

Comments
 (0)