Skip to content
Closed
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
4 changes: 2 additions & 2 deletions analytics/__init__.py → segment/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

from analytics.version import VERSION
from analytics.client import Client
from .version import VERSION
from .client import Client

__version__ = VERSION

Expand Down
6 changes: 3 additions & 3 deletions analytics/client.py → segment/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
from dateutil.tz import tzutc
from six import string_types

from analytics.utils import guess_timezone, clean
from analytics.consumer import Consumer
from analytics.version import VERSION
from .utils import guess_timezone, clean
from .consumer import Consumer
from .version import VERSION

try:
import queue
Expand Down
4 changes: 2 additions & 2 deletions analytics/consumer.py → segment/consumer.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import logging
from threading import Thread

from analytics.version import VERSION
from analytics.request import post
from .version import VERSION
from .request import post

try:
from queue import Empty
Expand Down
File renamed without changes.
4 changes: 3 additions & 1 deletion analytics/test/__init__.py → segment/test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
import logging
import sys


def all_names():
for _, modname, _ in pkgutil.iter_modules(__path__):
yield 'analytics.test.' + modname
yield __name__ + '.' + modname


def all():
logging.basicConfig(stream=sys.stderr)
Expand Down
4 changes: 2 additions & 2 deletions analytics/test/client.py → segment/test/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import time
import six

from analytics.version import VERSION
from analytics.client import Client
from ..version import VERSION
from ..client import Client


class TestClient(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion analytics/test/consumer.py → segment/test/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
except:
from Queue import Queue

from analytics.consumer import Consumer
from ..consumer import Consumer


class TestConsumer(unittest.TestCase):
Expand Down
4 changes: 2 additions & 2 deletions analytics/test/module.py → segment/test/module.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

import analytics
import segment as analytics


class TestModule(unittest.TestCase):
Expand Down Expand Up @@ -42,4 +42,4 @@ def test_screen(self):
analytics.flush()

def test_flush(self):
analytics.flush()
analytics.flush()
2 changes: 1 addition & 1 deletion analytics/test/request.py → segment/test/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import unittest
import json

from analytics.request import post, DatetimeSerializer
from ..request import post, DatetimeSerializer


class TestRequests(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion analytics/test/utils.py → segment/test/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from dateutil.tz import tzutc
import six

from analytics import utils
from .. import utils


class TestUtils(unittest.TestCase):
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from distutils.core import setup

# Don't import analytics-python module here, since deps may not be installed
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'analytics'))
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'segment'))
from version import VERSION

long_description = '''
Expand All @@ -35,8 +35,8 @@
author_email='friends@segment.com',
maintainer='Segment',
maintainer_email='friends@segment.com',
test_suite='analytics.test.all',
packages=['analytics', 'analytics.test'],
test_suite='segment.test.all',
packages=['segment'],
license='MIT License',
install_requires=install_requires,
description='The hassle-free way to integrate analytics into any python application.',
Expand Down