forked from online-judge-tools/api-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·45 lines (39 loc) · 1.12 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
#!/usr/bin/env python3
import imp
from setuptools import find_packages, setup
def load_module(module_path):
path = None
for name in module_path.split('.'):
file, path, description = imp.find_module(name, path)
path = [path]
return imp.load_module(name, file, path[0], description)
version = load_module('onlinejudge.__about__')
setup(
name=version.__package_name__,
version=version.__version__,
author=version.__author__,
author_email=version.__email__,
url=version.__url__,
license=version.__license__,
description=version.__description__,
python_requires='>=3.5',
install_requires=[
'appdirs >= 1',
'beautifulsoup4 >= 4',
'colorlog >= 4.1.0',
'lxml >= 4',
'requests >= 2',
'toml >= 0.10',
'jsonschema >= 3.2',
],
packages=find_packages(exclude=('tests', 'docs')),
package_data={
"onlinejudge": ["py.typed"],
"onlinejudge_workaround_for_conflict": ["py.typed"],
},
entry_points={
'console_scripts': [
'oj-api = onlinejudge_api.main:main',
],
},
)