Skip to content

Commit 06c6793

Browse files
joshStephen Cefali
authored andcommitted
ref: revise setup.py, remove stray license headers (#16174)
1 parent 8004322 commit 06c6793

File tree

4 files changed

+7
-65
lines changed

4 files changed

+7
-65
lines changed

setup.py

Lines changed: 7 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,13 @@
11
#!/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-
"""
252
from __future__ import absolute_import
263

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.")
308

319
import os
3210
import os.path
33-
import sys
3411

3512
from distutils.command.build import build as BuildCommand
3613
from setuptools import setup, find_packages
@@ -39,7 +16,8 @@
3916

4017
ROOT = os.path.realpath(os.path.join(os.path.dirname(sys.modules["__main__"].__file__)))
4118

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
4321
sys.path.insert(0, os.path.join(ROOT, "src"))
4422

4523
from sentry.utils.distutils import (
@@ -48,23 +26,9 @@
4826
BuildJsSdkRegistryCommand,
4927
)
5028

51-
# The version of sentry
5229
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-
6430
IS_LIGHT_BUILD = os.environ.get("SENTRY_LIGHT_BUILD") == "1"
6531

66-
# we use pip requirements files to improve Docker layer caching
67-
6832

6933
def get_requirements(env):
7034
with open(u"requirements-{}.txt".format(env)) as fp:
@@ -134,7 +98,7 @@ def run(self):
13498
packages=find_packages("src"),
13599
zip_safe=False,
136100
install_requires=install_requires,
137-
extras_require={"dev": dev_requires, "postgres": []},
101+
extras_require={"dev": dev_requires},
138102
cmdclass=cmdclass,
139103
license="BSL-1.1",
140104
include_package_data=True,

src/sentry/conf/urls.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
"""
2-
sentry.conf.urls
3-
~~~~~~~~~~~~~~~~
4-
5-
These are additional urls used by the Sentry-provided web server
6-
7-
:copyright: (c) 2012 by the Sentry Team, see AUTHORS for more details.
8-
:license: BSD, see LICENSE for more details.
9-
"""
101
from __future__ import absolute_import
112

123
from django.conf import settings

src/sentry/management/commands/serve_normalize.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
"""
2-
sentry.management.commands.serve_normalize
3-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4-
:copyright: (c) 2018 by the Sentry Team, see AUTHORS for more details.
5-
:license: BSD, see LICENSE for more details.
6-
"""
71
from __future__ import absolute_import, print_function
82

93
import SocketServer

src/sentry_plugins/freight/plugin.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
"""
2-
freight.plugin
3-
~~~~~~~~~~~~~~~~~~~~~
4-
5-
:copyright: (c) 2015 by Sentry Team, see AUTHORS for more details.
6-
:license: Apache 2.0, see LICENSE for more details.
7-
"""
81
from __future__ import absolute_import
92

103
import json

0 commit comments

Comments
 (0)