This repository has been archived by the owner on Oct 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
47 lines (43 loc) · 1.63 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
from setuptools import setup, find_packages
import re
with open("README.rst", mode='r') as readme_file:
text = readme_file.read()
#below version code pulled from requests module
with open('__init__.py', 'r') as fd:
version_number = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
if not version_number:
raise RuntimeError('Cannot find version information')
setup(
name='pyautoupdate',
version=version_number,
author='Ryan Lee',
author_email='[email protected]',
packages=find_packages(),
description='Auto-update API for Python programs',
long_description=text,
url='https://github.com/rlee287/pyautoupdate',
options={'bdist_wheel':{'universal':'1'}},
classifiers=(
'Intended Audience :: Developers',
'Development Status :: 4 - Beta',
'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy'
),
install_requires=['requests', 'setuptools'],
extras_require={
'testing': ['pytest', 'coverage']
},
package_data={
'testing':['*.rst']},
license="LGPL 2.1",
zip_safe=False
)