Skip to content

Commit

Permalink
Merge pull request #1 from quintoandar/package_setup
Browse files Browse the repository at this point in the history
Setting up package
  • Loading branch information
thspinto authored Jun 25, 2018
2 parents c85292f + 8d7edc9 commit f1ca4c4
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[run]
source = .
[report]
omit = **_test[s].py,*/tests/*
omit = **_test[s].py,*/tests/*,setup.py
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from unittest.mock import MagicMock
from behave import given, when, then # pylint: disable=E0611
from hamcrest import assert_that
from src.idempotent_client import IdempotentClient
from idempotence_client.idempotent_client import IdempotentClient


@given('IdempotentClient is instanciated')
Expand Down
15 changes: 15 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env python
import sys
from setuptools import setup, find_packages

if sys.version_info < (3, 2):
raise Exception('Only Python 3.2+ is supported')

setup(name='idempotence_client',
version='0.0.1',
description="Checks messages to avoid reprocessing events.",
url='https://github.com/quintoandar/python-kafka-idempotence-client',
packages=find_packages(exclude=['ez_setup', 'examples',
'tests', 'release']),
include_package_data=True,
zip_safe=False)
2 changes: 1 addition & 1 deletion unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
print("------------------ TESTS ----------------")
print("-----------------------------------------")
print()
result = behave_main("src/tests")
result = behave_main("idempotence_client/tests")
cov.stop()
print()
print("-----------------------------------------")
Expand Down

0 comments on commit f1ca4c4

Please sign in to comment.