Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
timkpaine committed May 22, 2019
1 parent 87e737b commit c2e61b1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ install: ## install the package
python3 setup.py install

tests: ## Clean and Make unit tests
python3 -m pytest -v ./build/`ls ./build | grep lib`/aat/tests --cov=aat
python3 -m pytest -v ./aat/tests --cov=aat

test: clean build lint ## run the tests for travis CI
@ python3 -m pytest -v ./build/`ls ./build | grep lib`/aat/tests --cov=aat
@ python3 -m pytest -v ./aat/tests --cov=aat

test_verbose: ## run the tests with full output
@ python3 -m pytest -vv ./build/`ls ./build | grep lib`/aat/tests --cov=aat
@ python3 -m pytest -vv ./aat/tests --cov=aat

lint: ## run linter
flake8 aat
Expand Down
18 changes: 18 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# # # # GENERATED FILE -- DO NOT MODIFY # # # #
from setuptools import setup, find_packages
from shutil import copy
from distutils.extension import Extension
from codecs import open
import os
import os.path
import fnmatch

here = os.path.abspath(os.path.dirname(__file__))

Expand All @@ -22,6 +24,13 @@
with open(os.path.join(here, 'requirements.txt'), encoding='utf-8') as f:
requires = f.read().split()


def find(pattern, path):
for root, dirs, files in os.walk(path):
for name in files:
if fnmatch.fnmatch(name, pattern):
return os.path.join(root, name)

setup(
name='aat',
version='0.0.2',
Expand Down Expand Up @@ -65,3 +74,12 @@
]

)

binding = find('test*.so', 'build')
library = find('_cpp_helpers*.so', 'build')

print("copying test.so")
copy(binding, 'aat')

print("copying _cpp_helpers.so")
copy(library, 'aat/exchanges')

0 comments on commit c2e61b1

Please sign in to comment.