|
1 | 1 | #!/usr/bin/env python |
2 | | -""" |
3 | | -Sentry |
4 | | -====== |
5 | | -
|
6 | | -Sentry is a realtime event logging and aggregation platform. It specializes |
7 | | -in monitoring errors and extracting all the information needed to do a proper |
8 | | -post-mortem without any of the hassle of the standard user feedback loop. |
9 | | -
|
10 | | -Sentry is a Server |
11 | | ------------------- |
12 | | -
|
13 | | -The Sentry package, at its core, is just a simple server and web UI. It will |
14 | | -handle authentication clients (such as `the Python one |
15 | | -<https://github.com/getsentry/sentry-python>`_) |
16 | | -and all of the logic behind storage and aggregation. |
17 | | -
|
18 | | -That said, Sentry is not limited to Python. The primary implementation is in |
19 | | -Python, but it contains a full API for sending events from any language, in |
20 | | -any application. |
21 | | -
|
22 | | -:copyright: (c) 2011-2014 by the Sentry Team, see AUTHORS for more details. |
23 | | -:license: BSD, see LICENSE for more details. |
24 | | -""" |
25 | 2 | from __future__ import absolute_import |
26 | 3 |
|
27 | | -# if sys.version_info[:2] != (2, 7): |
28 | | -# print 'Error: Sentry requires Python 2.7' |
29 | | -# sys.exit(1) |
| 4 | +import sys |
| 5 | + |
| 6 | +if sys.version_info[:2] != (2, 7): |
| 7 | + sys.exit("Error: Sentry requires Python 2.7.") |
30 | 8 |
|
31 | 9 | import os |
32 | 10 | import os.path |
33 | | -import sys |
34 | 11 |
|
35 | 12 | from distutils.command.build import build as BuildCommand |
36 | 13 | from setuptools import setup, find_packages |
|
39 | 16 |
|
40 | 17 | ROOT = os.path.realpath(os.path.join(os.path.dirname(sys.modules["__main__"].__file__))) |
41 | 18 |
|
42 | | -# Add Sentry to path so we can import distutils |
| 19 | +# add sentry to path so we can import distutils |
| 20 | +# XXX: consequentially, this means sentry must be pip installed with --no-use-pep517 |
43 | 21 | sys.path.insert(0, os.path.join(ROOT, "src")) |
44 | 22 |
|
45 | 23 | from sentry.utils.distutils import ( |
|
48 | 26 | BuildJsSdkRegistryCommand, |
49 | 27 | ) |
50 | 28 |
|
51 | | -# The version of sentry |
52 | 29 | VERSION = "10.0.0.dev0" |
53 | | - |
54 | | -# Hack to prevent stupid "TypeError: 'NoneType' object is not callable" error |
55 | | -# in multiprocessing/util.py _exit_function when running `python |
56 | | -# setup.py test` (see |
57 | | -# http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html) |
58 | | -for m in ("multiprocessing", "billiard"): |
59 | | - try: |
60 | | - __import__(m) |
61 | | - except ImportError: |
62 | | - pass |
63 | | - |
64 | 30 | IS_LIGHT_BUILD = os.environ.get("SENTRY_LIGHT_BUILD") == "1" |
65 | 31 |
|
66 | | -# we use pip requirements files to improve Docker layer caching |
67 | | - |
68 | 32 |
|
69 | 33 | def get_requirements(env): |
70 | 34 | with open(u"requirements-{}.txt".format(env)) as fp: |
@@ -134,7 +98,7 @@ def run(self): |
134 | 98 | packages=find_packages("src"), |
135 | 99 | zip_safe=False, |
136 | 100 | install_requires=install_requires, |
137 | | - extras_require={"dev": dev_requires, "postgres": []}, |
| 101 | + extras_require={"dev": dev_requires}, |
138 | 102 | cmdclass=cmdclass, |
139 | 103 | license="BSL-1.1", |
140 | 104 | include_package_data=True, |
|
0 commit comments