-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
53 lines (45 loc) · 1.64 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
import os
import sys
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
README = f.read()
with open(os.path.join(here, 'CHANGES.rst')) as f:
CHANGES = f.read()
# trying to run python setup.py install or python setup.py develop
if len(sys.argv) >= 2:
if sys.argv[0] == "setup.py" and sys.argv[1] in ("install", "develop"):
# Otherwise so much stuff would be broken later...
raise RuntimeError("It is not possible to install this package with setup.py. Use pip to install this package as instructed in Websauna tutorial.")
setup(name='websauna.sentry',
namespace_packages=['websauna'],
version='0.0',
description='Sentry integration for Websauna',
long_description=README + '\n\n' + CHANGES,
classifiers=[
"Programming Language :: Python",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='',
author_email='',
url='',
keywords='web websauna pyramid',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
test_suite='websauna.sentry',
install_requires=['pyramid_raven'],
extras_require={
# Dependencies for running test suite
'test': ['websauna[test]'],
# Dependencies to make releases
'dev': ['websauna[dev]'],
},
# Define where this application starts as referred by WSGI web servers
entry_points="""\
[paste.app_factory]
main = websauna.sentry.demo:main
""",
)