/
setup.py
50 lines (43 loc) · 1.66 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
from setuptools import setup, find_packages
import sys, os
INSTALL_REQUIRES = [
'IPy',
]
major, minor, micro, releaselevel, serial = sys.version_info
if (major, minor) < (2, 7):
INSTALL_REQUIRES.append('importlib')
VERSION = '0.3.0'
setup(name='uamobile',
version=VERSION,
description="WSGIUserAgentMobile - mobile user agent string parser for WSGI applications",
long_description="""\
WSGIUserAgentMobile is HTTP mobile user agent string parser. It'll be useful in parsing HTTP_USER_AGENT strings of (mainly Japanese) mobile devices.
This library is ported from similar libraries in Perl and PHP and owes a lot to them.
HTTP-MobileAgent? http://search.cpan.org/~kurihara/HTTP-MobileAgent-0.26/lib/HTTP/MobileAgent.pm
PEAR::Net_UserAgent_Mobile? http://pear.php.net/package/Net_UserAgent_Mobile
""",
classifiers=filter(None, map(str.strip, """\
Development Status :: 4 - Beta
License :: OSI Approved :: MIT License
Programming Language :: Python
Operating System :: OS Independent
Topic :: Software Development :: Libraries :: Python Modules
Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware
""".splitlines())),
keywords='',
author='Chihiro Sakatoku',
author_email='csakatoku@gmail.com',
url='http://github.com/csakatoku/uamobile',
license='MIT License',
platforms=["any"],
packages=find_packages(exclude=['examples', 'tests']),
include_package_data=True,
zip_safe=False,
install_requires=INSTALL_REQUIRES,
entry_points="""
# -*- Entry points: -*-
[console_scripts]
uamobile-scrape = uamobile.scrapers.command:main
""",
test_suite='nose.collector'
)