-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
71 lines (58 loc) · 1.5 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import distutils.cmd
import os
import subprocess
import sys
from setuptools import setup, find_packages
import setuptools.command.build_py
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))
__author__ = "Yixiong Chen"
__email__ = "[email protected]"
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
"""
Utility function to read the README file.
:param fname: Path to file to read
:rtype: String
Returns file content
"""
return open(os.path.join(os.path.dirname(__file__), fname)).read()
requirements = [
'scancode-toolkit==31.0.1',
'beautifulsoup4==4.11.1',
'grimoirelab_toolkit==0.1.12',
'isort==5.10.1',
'jsonpath==0.82',
'perceval==0.17.17',
'perceval_weblate==0.1.2',
'PyMySQL==0.9.3',
'pyrpm==0.4',
'PyYAML==6.0'
'requests==2.26.0',
'scipy==1.7.1',
'setuptools==58.1.0',
'SQLAlchemy==1.3.24',
'tornado==6.1',
'tqdm==4.62.3',
'urllib3==1.25.8'
'python-rpm-spec==0.11'
'rarfile==4.0'
'GitPython==3.1.27'
'DBUtils==1.3'
'APScheduler==3.10.1'
]
metadata = dict(
name = "scraw",
version = "0.0.1",
author = "Yixiong Chen",
author_email = "[email protected]",
description = ("An license scanner."),
license = "",
python_requires = ">=3.5",
install_requires = requirements,
)
setup(**metadata)