-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
65 lines (59 loc) · 1.82 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
from setuptools import setup, find_packages
from setuptools.command.develop import develop
from setuptools.command.install import install
from subprocess import check_call
import platform
def check():
system = platform.system()
if system == 'Linux':
check_call("sudo apt-get install pandoc git git-lfs".split())
check_call("git lfs install".split())
elif system == 'Darwin':
check_call("brew update".split())
check_call("brew install pandoc".split())
check_call("brew install git".split())
check_call("brew install git-lfs".split())
check_call("git lfs install".split())
class PostDevelopCommand(develop):
"""Post-installation for development mode."""
def run(self):
#check()
develop.run(self)
class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
#check()
install.run(self)
requires = [
'jinja2 >= 3.0',
'natsort >= 6.0.0',
'pyyaml >= 5.1',
'rarfile >= 3.0',
'requests_toolbelt >= 0.9.1'
]
setup(
name = 'tuack',
version = '0.1.5.3.1',
packages = find_packages(),
author = 'Chenxu Min, Zhang Ruizhe, Liu Xiaoyi, Chen Junkun, Chen Shengqi, Luo Lingxiao, Cheng Yuxuan',
author_email = '[email protected], [email protected], [email protected], [email protected], [email protected], [email protected]',
url = '',
license = 'https://git.thusaac.com/publish/tuack/blob/master/LICENSE',
description = 'Tools for generating an Tsinghua/OI/ICPC-styled problem or contest for multiple judges.',
cmdclass={
'develop': PostDevelopCommand,
'install': PostInstallCommand,
},
#requires = requires,
install_requires = requires,
setup_requires = requires,
package_data = {
'tuack': [
'templates/*.*', 'templates/*/*/*',
'sample/*.*', 'sample/*/*',
'sample-problem/*.*', 'sample-problem/*/*',
'sample-empty/*.*', 'sample-empty/*/*',
'lex/*.*', 'lex/*'
]
}
)