-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
39 lines (30 loc) · 953 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
30
31
32
33
34
35
36
37
38
39
# -*- coding: utf-8 -*-
import os
import re
from setuptools import find_packages, setup
def find_version(*paths):
with open(os.path.join(os.path.dirname(__file__), *paths)) as f:
text = f.read()
match = re.search(
r'^__version__ = (?P<quote>["\'])(?P<ver>[^"\']+)(?P=quote)', text, re.M
)
if not match:
raise RuntimeError("Unable to find version string.")
return match.group("ver")
VERSION = find_version("pybrat", "__init__.py")
setup(
name="pybrat",
description="Parser for brat rapid annotation tool (Brat).",
version=VERSION,
url="https://github.com/Yevgnen/pybrat",
author="Yevgnen Koh",
author_email="wherejoystarts@gmail.com",
packages=find_packages(exclude=("tests", "tests.*")),
package_data={
"pybrat": ["py.typed"],
},
include_package_data=True,
install_requires=[],
test_suite="tests",
zip_safe=False,
)