-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
28 lines (25 loc) · 936 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
import setuptools
requirements = []
with open('requirements.txt', 'rt') as f:
for req in f.read().splitlines():
if req.startswith('git+'):
pkg_name = req.split('/')[-1].replace('.git', '')
if "#egg=" in pkg_name:
pkg_name = pkg_name.split("#egg=")[1]
requirements.append(f'{pkg_name} @ {req}')
else:
requirements.append(req)
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="mtl-gen-class",
version="0.0.1",
author="xxxx xxxx",
author_email='xxxx{at}xxxx',
description="MTL of Query Generation and Classification for Generative Conversational Question Rewriting",
long_description=long_description,
long_description_content_type="text/markdown",
packages=setuptools.find_packages(),
install_requires=requirements,
python_requires='>=3.6',
)