-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
66 lines (58 loc) · 1.97 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
#!/usr/bin/python
# -*- coding: utf-8 -*-
import io
import os
import re
from setuptools import setup
name = 'solidwebpush'
description = """
This package lets your server send Web Push Notifications to your clients.
NOTE: No particular web framework are required (e.g. Django, Flask, Pyramid,
etc.), since it was originally designed to run on a Raspberry Pi with no web
server installed (only a bare Python program listening on a port for HTTP
requests).
"""
CWD = os.path.abspath(os.path.dirname(__file__))
with io.open(os.path.join(CWD, '%s/__init__.py' % name), encoding='utf8') as __init__py:
__init__src = __init__py.read()
RE = r"%s\s*=\s*['\"]([^'\"]+)['\"]"
package = {
'__version__': re.search(RE % '__version__', __init__src).group(1),
'__license__': re.search(RE % '__license__', __init__src).group(1)
}
with io.open(os.path.join(CWD, 'README.md'), encoding='utf8') as README:
long_description = README.read()
setup(
name=name,
version=package['__version__'],
description=description,
author='Sergio Burdisso',
author_email='[email protected]',
url='https://github.com/sergioburdisso/%s' % name,
packages=[name],
long_description=long_description,
license=package['__license__'],
download_url='https://github.com/sergioburdisso/%s/tarball/v%s'
% (name, package['__version__']),
keywords=[
'web push notifications', 'notifications',
'web notifications', 'push', "webpush",
'raspberry pi'
],
classifiers=[
"Topic :: Internet :: WWW/HTTP",
"Programming Language :: Python :: Implementation :: PyPy",
'Programming Language :: Python',
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
],
zip_safe=False,
include_package_data=True,
install_requires=[
'future',
'py-vapid==0.7.1',
'http_ece==0.7.0',
'pyelliptic==1.5.7',
'requests==2.20.0'
]
)