-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
39 lines (29 loc) · 1.03 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
import os
import re
from setuptools import setup, find_packages
def read(*names, **kwargs):
with open(os.path.join(os.path.dirname(__file__), *names)) as fp:
return fp.read()
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
with open('requirements.txt') as f:
required = f.read().splitlines()
VERSION = find_version('wym', '__init__.py')
long_description = read('README.rst')
setup(
name='wym',
description='An intrisecally explainable model for Entity Matching',
long_description=long_description,
version=VERSION,
author='Andrea Baraldi',
author_email='[email protected]',
url='https://github.com/softlab-unimore/wym',
license='MIT',
packages=find_packages(exclude=('*test*','*run_experiments*')),
install_requires=required,
python_requires='>=3.7'
)