-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
49 lines (43 loc) · 1.44 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
39
40
41
42
43
44
45
46
47
48
49
import codecs
import re
from setuptools import setup
from setuptools import find_packages
version = ''
with open('pyminer/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('Cannot find version information')
with codecs.open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
with codecs.open('Changelog.rst', 'r', 'utf-8') as f:
changes = f.read()
long_description = readme + '\n\n' + changes
setup(
name = 'pyminer',
version = version,
description = 'Python client for text mining via Crossref metadata',
long_description = long_description,
author = 'Scott Chamberlain',
author_email = 'myrmecocystus@gmail.com',
url = 'https://github.com/sckott/pyminer',
license = "MIT",
packages = find_packages(exclude=['test-*']),
install_requires = [
'requests>=2.21.0',
'habanero>=0.6.2',
'pdftotext>=2.1.1',
'lxml>=4.2.5',
'appdirs>=1.4.3'
],
classifiers = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'
]
)