Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 7 additions & 43 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,36 +1,13 @@
#!/usr/bin/env python
"""
Sentry
======

Sentry is a realtime event logging and aggregation platform. It specializes
in monitoring errors and extracting all the information needed to do a proper
post-mortem without any of the hassle of the standard user feedback loop.

Sentry is a Server
------------------

The Sentry package, at its core, is just a simple server and web UI. It will
handle authentication clients (such as `the Python one
<https://github.com/getsentry/sentry-python>`_)
and all of the logic behind storage and aggregation.

That said, Sentry is not limited to Python. The primary implementation is in
Python, but it contains a full API for sending events from any language, in
any application.

:copyright: (c) 2011-2014 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import

# if sys.version_info[:2] != (2, 7):
# print 'Error: Sentry requires Python 2.7'
# sys.exit(1)
import sys

if sys.version_info[:2] != (2, 7):
sys.exit("Error: Sentry requires Python 2.7.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😿

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😿


import os
import os.path
import sys

from distutils.command.build import build as BuildCommand
from setuptools import setup, find_packages
Expand All @@ -39,7 +16,8 @@

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

# Add Sentry to path so we can import distutils
# add sentry to path so we can import distutils
# XXX: consequentially, this means sentry must be pip installed with --no-use-pep517
sys.path.insert(0, os.path.join(ROOT, "src"))

from sentry.utils.distutils import (
Expand All @@ -48,23 +26,9 @@
BuildJsSdkRegistryCommand,
)

# The version of sentry
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

VERSION = "10.0.0.dev0"

# Hack to prevent stupid "TypeError: 'NoneType' object is not callable" error
# in multiprocessing/util.py _exit_function when running `python
# setup.py test` (see
# http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html)
for m in ("multiprocessing", "billiard"):
try:
__import__(m)
except ImportError:
pass

IS_LIGHT_BUILD = os.environ.get("SENTRY_LIGHT_BUILD") == "1"

# we use pip requirements files to improve Docker layer caching
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this may stay? At least until we move to poetry? :trollface:

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The future is mysterious and hopefully bright!



def get_requirements(env):
with open(u"requirements-{}.txt".format(env)) as fp:
Expand Down Expand Up @@ -134,7 +98,7 @@ def run(self):
packages=find_packages("src"),
zip_safe=False,
install_requires=install_requires,
extras_require={"dev": dev_requires, "postgres": []},
extras_require={"dev": dev_requires},
cmdclass=cmdclass,
license="BSL-1.1",
include_package_data=True,
Expand Down
9 changes: 0 additions & 9 deletions src/sentry/conf/urls.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
"""
sentry.conf.urls
~~~~~~~~~~~~~~~~

These are additional urls used by the Sentry-provided web server

:copyright: (c) 2012 by the Sentry Team, see AUTHORS for more details.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me quote the PR title:

ref: revise setup.py

This file says src/sentry/conf/urls.py - I sense contradictions in you but the force is strong.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scope creep gets the best of us, haha

:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import

from django.conf import settings
Expand Down
6 changes: 0 additions & 6 deletions src/sentry/management/commands/serve_normalize.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
"""
sentry.management.commands.serve_normalize
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2018 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import, print_function

import SocketServer
Expand Down
7 changes: 0 additions & 7 deletions src/sentry_plugins/freight/plugin.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
"""
freight.plugin
~~~~~~~~~~~~~~~~~~~~~

:copyright: (c) 2015 by Sentry Team, see AUTHORS for more details.
:license: Apache 2.0, see LICENSE for more details.
"""
from __future__ import absolute_import

import json
Expand Down