-
Notifications
You must be signed in to change notification settings - Fork 125
/
setup.py
42 lines (35 loc) · 1.26 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
import codecs
from setuptools import setup, find_packages
from pkg_resources import parse_version
from configparser import ConfigParser
import setuptools
assert parse_version(setuptools.__version__) >= parse_version('36.2')
# note: all settings are in settings.ini; edit there, not here
config = ConfigParser(delimiters=['='])
config.read('settings.ini')
cfg = config['DEFAULT']
with codecs.open('README.md', 'r', 'utf8') as reader:
long_description = reader.read()
with codecs.open('requirements.txt', 'r', 'utf8') as reader:
install_requires = list(map(lambda x: x.strip(), reader.readlines()))
setup(
name='m3tl',
version=cfg['version'],
packages=find_packages(),
url='https://github.com/JayYip/m3tl',
license='MIT',
author='Jay Yip',
author_email='junpang.yip@gmail.com',
description='BERT for Multi-task Learning',
long_description_content_type='text/markdown',
long_description=long_description,
python_requires='>=3.5.0',
install_requires=install_requires,
classifiers=(
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.5",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
),
)