aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElvis Pranskevichus <elvis@magic.io>2018-03-30 23:09:00 -0400
committerElvis Pranskevichus <elvis@magic.io>2018-03-31 01:11:02 -0400
commitc5a649e2aecc3e968aba32e64ba2f45167d2ef94 (patch)
tree1ac30289d71c36b68e5b01baf3e79fed9718aeb2
parenta1b19e1d10896f3ac2ce0b97c2bf24e0c1c4520f (diff)
downloadimmutables-c5a649e2aecc3e968aba32e64ba2f45167d2ef94.tar.gz
immutables-c5a649e2aecc3e968aba32e64ba2f45167d2ef94.zip
immutables v0.2v0.2
-rwxr-xr-x.ci/build-manylinux-wheels.sh4
-rwxr-xr-x.ci/travis-build-wheels.sh3
-rw-r--r--.travis.yml12
-rw-r--r--immutables/__init__.py2
-rw-r--r--tests/__init__.py4
5 files changed, 10 insertions, 15 deletions
diff --git a/.ci/build-manylinux-wheels.sh b/.ci/build-manylinux-wheels.sh
index 6d78104..0cab659 100755
--- a/.ci/build-manylinux-wheels.sh
+++ b/.ci/build-manylinux-wheels.sh
@@ -8,7 +8,7 @@ PIP="/opt/python/${PYTHON_VERSION}/bin/pip"
${PIP} install --upgrade pip wheel
${PIP} install --upgrade setuptools
${PIP} install -r /io/.ci/requirements.txt
-make -C /io/ PYTHON="${PYTHON}"
+rm -rf /io/build
${PIP} wheel /io/ -w /io/dist/
# Bundle external shared libraries into the wheels.
@@ -25,5 +25,5 @@ PYTHON="/opt/python/${PYTHON_VERSION}/bin/python"
PIP="/opt/python/${PYTHON_VERSION}/bin/pip"
${PIP} install ${PYMODULE} --no-index -f file:///io/dist
rm -rf /io/tests/__pycache__
-make -C /io/ PYTHON="${PYTHON}" testinstalled
+"${PYTHON}" /io/tests/__init__.py
rm -rf /io/tests/__pycache__
diff --git a/.ci/travis-build-wheels.sh b/.ci/travis-build-wheels.sh
index 92771bd..a7fafb9 100755
--- a/.ci/travis-build-wheels.sh
+++ b/.ci/travis-build-wheels.sh
@@ -58,12 +58,11 @@ if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
elif [ "${TRAVIS_OS_NAME}" == "osx" ]; then
export PGINSTALLATION="/usr/local/opt/postgresql@${PGVERSION}/bin"
- make clean && make -C "${_root}"
pip wheel "${_root}" -w "${_root}/dist/"
pip install ${PYMODULE} --no-index -f "file:///${_root}/dist"
pushd / >/dev/null
- make -C "${_root}" testinstalled
+ python "${_root}/tests/__init__.py"
popd >/dev/null
_upload_wheels
diff --git a/.travis.yml b/.travis.yml
index ebafe4d..60c7eb8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,14 +7,7 @@ env:
- S3_UPLOAD_USERNAME=oss-ci-bot
- S3_UPLOAD_BUCKET=magicstack-oss-releases
- # S3_UPLOAD_ACCESSKEY:
- - secure: "iU37gukuyeaYM69StkR/aUTNgolblBdw2is034evvrm/SG0bKyzVVSrcK/dts9jolkCxJi+01VfpzxIBu2PF11QnCN1exUILb+XfmR+dVxUnNY2M1qqjILHvQ92rFJ9f2TlbYa2AlwgKynZlY4+edVSACSWwD/+TbWGAQEp0WInalA8ohljir+EPueXaYyC8mmH55cNQIa5WdDA2Vpg5ahRDdhVyD2J+/fLg78syLV7FGlnpXtASo9XiQKmRpPyHIT23yQB444kVh9xcjvuiB3aUBP5bGC2H4unElGYhCvfQvb1GoWvDqyvfzZvTOjlHqnG4AvIPoSCgEu/9cu8Cm/9OxWtqtWy7dECM8ZUIlOi3oPcvwUYDpNYAdATbTr1T6FRCBEp2eOi3sKoeE+nUDgQaN4r+ple4BKYnjrsSllXhI5W8ZqDNoUSsoGu+z6GFn6Dszrj6jbq8JHV4mZT9RCfR1y6inXWYGmaNRlwzm8wPHTav2RbW2O6bbwkkATWwYpyRB2FRlwMX6BB06druZWNOzx09RS8pTHnqcKOXW2mENNMgrA03OJUEV30UG/ncLZELYTpBARSJwymxjmmTK7vEI/HfxHkPrKcLLPPn2GoWym7mF2Lkh+jp81FkCGYrLTquyKPaoeUsofYukWMbGwE99ePL5dLocVDqTzatAoU="
- # S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Jw6UdKcrqQ/Ca4nGmWk0PIf3LTsJrv44p4ZTPVI8b3lihXMm72QUE28e11yu9SIZRe0hMgmvWlivXEJw3C3YT1N5w+JM3Y5dIWp/YLoiRXVkIzNJQMN3YeWvKEFf/xO1AD2BO3jjU9oBZfKQpxCJ58gPsQrRt6qM3Y6zYuF8s4B+llpwM/ex2xnNwrTbNkp4ARyXyCujX+ixhjiBLtElfGoHPP1jOaIkJhGje9DxaptddfFBDLAdq0/3Q+LHOmwdQcH5+libUy3HnyP7jf51kjjWE3XEJGSchHI2ewEAn9UZRH8h0UNRXutBzUVvKgC6K1lUvqzEreKVxvrYe6zgbZc/DiUvLgIzJBiJgP9rdZYpDQ="
+ - TWINE_USERNAME=magicstack-ci
branches:
# Avoid building PR branches.
@@ -38,10 +31,11 @@ matrix:
- os: linux
dist: trusty
- sudo: false
+ sudo: required
language: python
python: "3.6"
env: BUILD=tests,wheels,release
+ services: [docker]
- os: osx
env: BUILD=tests,wheels PYTHON_VERSION=3.5.4 PIP_USER=1
diff --git a/immutables/__init__.py b/immutables/__init__.py
index 48deb49..ffeef0f 100644
--- a/immutables/__init__.py
+++ b/immutables/__init__.py
@@ -2,4 +2,4 @@ from ._map import Map
__all__ = 'Map',
-__version__ = '0.1'
+__version__ = '0.2'
diff --git a/tests/__init__.py b/tests/__init__.py
index fa393d9..450c573 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -1,10 +1,12 @@
+import os.path
import sys
import unittest
def suite():
test_loader = unittest.TestLoader()
- test_suite = test_loader.discover('.', pattern='test_*.py')
+ test_suite = test_loader.discover(os.path.dirname(__file__),
+ pattern='test_*.py')
return test_suite