-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsetup.py
50 lines (43 loc) · 1.47 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
#!/usr/bin/python3
'''
@Author: Liu Shaoweihua
@Site: https://github.com/liushaoweihua
'''
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import setuptools
from setuptools import setup
from setuptools.command.develop import develop
from setuptools.command.install import install
from subprocess import call
with open('README.md','r') as f:
long_description = f.read()
class Installation(install):
def run(self):
call(['pip install -r requirements.txt --no-clean'], shell=True)
install.run(self)
setuptools.setup(
name='PyCLUE',
version='0.1.2',
author='Liu Shaoweihua',
author_email='liushaoweihua@126.com',
maintainer='CLUE',
maintainer_email='chineseGLUE@163.com',
description='Python toolkit for Chinese Language Understanding Evaluation benchmark.',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/CLUEBenchmark/PyCLUE',
include_package_data=True,
packages=setuptools.find_packages(),
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent'],
install_requires=[
'tensorflow-gpu==1.15.2',
'requests==2.23.0',
'numpy==1.18.2',
'matplotlib==3.2.1',
'hnswlib==0.3.4'],
cmdclass={'install': Installation})