-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathsetup.py
executable file
·44 lines (38 loc) · 1.14 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
#!/usr/bin/env python3
import importlib
import importlib.util
from setuptools import find_packages, setup # pylint: disable=import-error
def load_module(name, location):
spec = importlib.util.spec_from_file_location(name, location)
version = importlib.util.module_from_spec(spec)
spec.loader.exec_module(version)
return version
about = load_module('onlinejudge.__about__', 'onlinejudge/__about__.py')
setup(
name=about.__package_name__,
version=about.__version__,
author=about.__author__,
author_email=about.__email__,
url=about.__url__,
license=about.__license__,
description=about.__description__,
python_requires='>=3.6',
install_requires=[
'appdirs >= 1',
'beautifulsoup4 >= 4',
'colorlog >= 4.1.0',
'lxml >= 4',
'requests >= 2',
'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',
],
},
)