forked from selwin/python-user-agents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
41 lines (38 loc) · 1.56 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
# -*- coding: utf-8 -*-
from setuptools import setup
with open('user_agents_next/__init__.py') as f:
lines = [x for x in f if x.startswith('__version__ = ')]
assert len(lines) == 1
version = lines[0][len('__version__ = '):].replace("'", '').replace('"', '').strip()
setup(
name='user-agents-next',
version=version,
author='Selwin Ong',
author_email='[email protected]',
packages=['user_agents_next'],
url='https://github.com/soon/python-user-agents-next',
license='MIT',
description='A library to identify devices (phones, tablets) and their capabilities by parsing (browser/HTTP) user agent strings',
long_description=open('README.rst').read(),
zip_safe=False,
include_package_data=True,
package_data={'': ['README.rst']},
install_requires=['ua-parser-next>=0.9.3'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)