From 0ef6d5d12b7ad5527464a43c65f424867b944881 Mon Sep 17 00:00:00 2001
From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl>
Date: Sun, 8 Oct 2017 05:10:31 +0200
Subject: [PATCH] compiling moved outside

---
 .travis.yml                                                   | 2 +-
 build.sh                                                      | 3 +--
 .../compile_definitions.py => compile_definitions.py          | 0
 tests/test_framing/test_compilation.py                        | 4 ++--
 4 files changed, 4 insertions(+), 5 deletions(-)
 rename coolamqp/framing/compilation/compile_definitions.py => compile_definitions.py (100%)

diff --git a/.travis.yml b/.travis.yml
index 594b38a..13edfd4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,7 +10,7 @@ cache:
     - $HOME/build/smok-serwis/coolamqp/.eggs
     - $HOME/.cache
 script:
- - python -m coolamqp.framing.compilation.compile_definitions
+ - python compile_definitions.py
  - python setup.py nosetests
 install:
  - pip install -r requirements.txt
diff --git a/build.sh b/build.sh
index ce45563..7aa0c0b 100644
--- a/build.sh
+++ b/build.sh
@@ -3,8 +3,7 @@
 set -x
 set -e
 
-python -m coolamqp.framing.compilation.compile_definitions
-rm -f coolamqp/framing/compilation/compile_definitions.py
+python compile_definitions.py
 python setup.py bdist bdist_wheel
 
 if [ $TRAVIS_BRANCH == "master" ]; then
diff --git a/coolamqp/framing/compilation/compile_definitions.py b/compile_definitions.py
similarity index 100%
rename from coolamqp/framing/compilation/compile_definitions.py
rename to compile_definitions.py
diff --git a/tests/test_framing/test_compilation.py b/tests/test_framing/test_compilation.py
index 90632c4..14d8bc8 100644
--- a/tests/test_framing/test_compilation.py
+++ b/tests/test_framing/test_compilation.py
@@ -1,12 +1,12 @@
 # coding=UTF-8
 from __future__ import print_function, absolute_import, division
-import six
+
 import unittest
 
 
 class TestCompilation(unittest.TestCase):
     def test_comp(self):
-        from coolamqp.framing.compilation.compile_definitions import \
+        from compile_definitions import \
             compile_definitions
         compile_definitions(xml_file='resources/amqp0-9-1.extended.xml',
                             out_file='/tmp/definitions.py')
-- 
GitLab