forked from online-judge-tools/oj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·39 lines (33 loc) · 966 Bytes
/
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
#!/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__,
install_requires=[
'appdirs >= 1',
'beautifulsoup4 >= 4',
'colorama >= 0.3',
'lxml >= 4',
'requests >= 2',
'toml >= 0.10',
],
packages=find_packages(exclude=('tests', 'docs')),
entry_points={
'console_scripts': [
'oj = onlinejudge._implementation.main:main',
],
},
)