From 6cac03e941fd18f2622e4eac90326507ba3c29cc Mon Sep 17 00:00:00 2001 From: SimLeek Date: Tue, 19 Feb 2019 23:25:13 -0700 Subject: [PATCH] wheel_testing: added .whl file testing to travis. Added auto-deployment. Version fixed requirements.txt. Removed requirements.txt from setup.py. --- .travis.yml | 20 ++++++++++++++++++++ requirements.txt | 6 +++--- setup.py | 7 +++++-- 3 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..238fe2c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,20 @@ +language: python +cache: pip + +python: +- '2.7' +- '3.5' +- '3.6' +- '3.7' + +install: +- pip install -r requirements.txt -q +script: +- pip install cibuildwheel==0.10.1 +- cibuildwheel --output-dir wheelhouse + +deploy: + provider: pypi + user: "SimLeek" + password: + secure: crD6W+uBJu+d/T4A8K+ZVAhyVQil5GXk1m/N0c5P7qX1DdMrcL1KXGzD5URtuvqTfUop1ah9npmT57yTP39WCRRqTRsra+WGFDZl+dH89xSnApFhWULhD1Z2JXu/54BKYlPU5xILUkqm+4BNwW4ZULXLTPZAA1dHSuSHqhQUsjfx/P7J0veNRgEdHoL2V9k8tvO8JJiGhGNDgyprv0PutzPOtTihd+aSM1f0sA4/vHF7Hbo7Surr7nfEXQeC9husBqYomG4bBS/F1P709y5hQRZVMdqzjQ8eQyQYmkWhW7Wmfq4uTkGTQf7TMzqB8GkxtU82ktSdRsDk6yhejNtG6TwM4O3XFw0saZMHViaKrSq2/rqdrmdrEQVogSaf7Z7CPa7FA3IGMm2G9mVt2xa94DP4gfElrGgG0R1vJZCV9L4ZMM2bg7OsU9XMU++tsOyKm/o+I/AMOxlgy/2m5KSganPswEGSiFWBE7foxLZT6+amXWHjopE43qWstOLGVsyfsQawBfcXOiqPYsOqEXgnvl8uqGfvE/UfocHuZGeQ/y8w0Q5rLfO3bMGaOFHzqBWeYK92pt8VAmDV3TvXHwPuIkG85qThUa4mw2s3Am/U9wdHWj1Ou6ZiFn6iHR9ASB1AFPR/qOLPWYIboSxlZTnKCs5/z+zuFZDTB9YO5hhmAr4= \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index fd8e2aa..cff9e7e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -numpy -opencv_python -localpubsub==0.0.1 \ No newline at end of file +opencv_python==3.4.2.17 +localpubsub==0.0.1 +numpy==1.16.1 \ No newline at end of file diff --git a/setup.py b/setup.py index 187773c..e56929c 100644 --- a/setup.py +++ b/setup.py @@ -13,8 +13,11 @@ with open('cvpubsubs/__init__.py', 'r') as f: with open('README.md', 'r', encoding='utf-8') as f: readme = f.read() -with open('requirements.txt', 'r', encoding='utf-8') as f: - REQUIRES = f.readlines() +REQUIRES = [ + "opencv_python==3.4.2.17" + "localpubsub==0.0.1", + "numpy==1.16.1" +] setup( name='CVPubSubs',