forked from kmkurn/pytorch-crf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
30 lines (28 loc) · 993 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
import os
import re
from setuptools import setup, find_packages
here = os.path.dirname(os.path.realpath(__file__))
with open(os.path.join(here, 'README.rst')) as f:
readme = f.read()
with open(os.path.join(here, 'torchcrf', '__init__.py')) as f:
version = re.search(r'__version__ = (["\'])([^"\']*)\1', f.read())[2]
setup(
name='pytorch-crf',
version=version,
description='Conditional random field in PyTorch',
long_description=readme,
url='https://github.com/kmkurn/pytorch-crf',
author='Kemal Kurniawan',
author_email='kemal@kkurniawan.com',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
keywords='torch',
packages=find_packages(),
python_requires='>=3.6, <4')