forked from urschrei/pyzotero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·70 lines (62 loc) · 2.1 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
setup.py
Created by Stephan Hügel on 2011-03-04
"""
import os
import re
import io
from setuptools import setup, find_packages
def read(*names, **kwargs):
with io.open(
os.path.join(os.path.dirname(__file__), *names),
encoding=kwargs.get("encoding", "utf8")
) 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.")
version=find_version("pyzotero/zotero.py")
setup(
name='Pyzotero',
version=version,
description='Python wrapper for the Zotero API',
author='Stephan Hügel',
author_email='[email protected]',
license='MIT License',
url='https://github.com/urschrei/pyzotero',
include_package_data=True,
download_url='https://github.com/urschrei/pyzotero/tarball/v%s' % version,
keywords=['zotero'],
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages=find_packages(),
install_requires=['feedparser >= 5.1.0', 'pytz', 'requests', 'pathlib'],
extras_require={
'ordereddict': ['ordereddict==1.1']
},
long_description="""\
A Python wrapper for the Zotero Server v3 API
---------------------------------------------
Provides methods for accessing Zotero Server API v3.
For full documentation see http://pyzotero.readthedocs.org/en/latest/
This version requires Python 2.7.x / 3.4.x / 3.5.x / 3.6.x"""
)