-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
51 lines (44 loc) · 1.41 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import os
from distutils.core import setup
from setuptools import find_packages # type: ignore
def read(fname):
print("installing inspect4py")
return open(os.path.join(os.path.dirname(__file__), fname)).read()
with open('requirements.txt', 'r') as f:
install_requires = list()
dependency_links = list()
for line in f:
re = line.strip()
if re:
if re.startswith('git+') or re.startswith('svn+') or re.startswith('hg+'):
dependency_links.append(re)
else:
install_requires.append(re)
packages = find_packages()
version = {}
with open("inspect4py/__init__.py") as fp:
exec(fp.read(), version)
setup(
name='inspect4py',
version=version["__version__"],
packages=packages,
url='https://github.com/SoftwareUnderstanding/inspect4py',
license='BSD-3-Clause',
author='Rosa Filgueira and Daniel Garijo',
description='Static code analysis package for Python repositories',
long_description=read("README.md"),
long_description_content_type="text/markdown",
include_package_data=True,
install_requires=install_requires,
dependency_links=dependency_links,
python_requires=">=3.6",
classifiers=[
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
],
entry_points={
'console_scripts': [
'inspect4py = inspect4py.cli:main',
],
}
)