forked from cmacdonald/pyterrier_bert
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
29 lines (27 loc) · 940 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
29
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)
#print(requirements)
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="PyTerrierBERT",
version="0.0.1",
author="Craig Macdonald",
author_email='craigm{at}.dcs.gla.ac.uk',
description="PyTerrier components for BERT",
long_description=long_description,
long_description_content_type="text/markdown",
#url="https://github.com/Georgetown-IR-Lab/cedr",
packages=setuptools.find_packages(),
install_requires=requirements,
python_requires='>=3.6',
)