-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Windows, OSX, Python 3.5, less limitations, bugfixes
- Loading branch information
Showing
24 changed files
with
1,007 additions
and
368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
set -e -x | ||
|
||
python -m pip install -U -r dev-requirements.txt | ||
python setup.py sdist | ||
|
||
# test wheel, move out of here otherwise pip thinks | ||
# cbitstruct is already installed | ||
mkdir testdir | ||
cd testdir | ||
python -m pip install cbitstruct --no-index -f ../dist/ | ||
python -m nose cbitstruct | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
set -e -x | ||
|
||
# Show gcc version | ||
gcc --version | ||
|
||
# Compile wheels | ||
for PYVER in $PY_VERSIONS; do | ||
PYNUM=$(echo $PYVER | sed 's/\([0-9]\+\)\.\([0-9]\+\)\.[0-9]\+/\1\2/') | ||
PYBIN=$(echo /opt/python/cp${PYNUM}*/bin) | ||
"${PYBIN}/pip" install -r /io/dev-requirements.txt | ||
"${PYBIN}/pip" wheel /io/ -w dist/ | ||
done | ||
|
||
# Bundle external shared libraries into the wheels | ||
for whl in dist/*.whl; do | ||
auditwheel repair "$whl" --plat $PLAT -w /io/dist/ | ||
done | ||
|
||
# Install packages and test | ||
for PYVER in $PY_VERSIONS; do | ||
PYNUM=$(echo $PYVER | sed 's/\([0-9]\+\)\.\([0-9]\+\)\.[0-9]\+/\1\2/') | ||
PYBIN=$(echo /opt/python/cp${PYNUM}*/bin) | ||
"${PYBIN}/pip" install cbitstruct --no-index -f /io/dist | ||
(cd "$HOME"; "${PYBIN}/nosetests" cbitstruct) | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
set -e -x | ||
|
||
docker pull $DOCKER_IMAGE | ||
docker run --rm -e PLAT=$PLAT -e PY_VERSIONS="$PY_VERSIONS" -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/.ci/build-manylinux-docker.sh | ||
ls dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
set -e -x | ||
|
||
export PATH="/Users/travis/.pyenv/shims:${PATH}" | ||
|
||
brew update > /dev/null | ||
brew install openssl readline | ||
brew outdated pyenv || brew upgrade pyenv | ||
brew install pyenv-virtualenv | ||
|
||
for PY_VERSION in $PY_VERSIONS; do | ||
pyenv install --skip-existing $PY_VERSION | ||
pyenv global $PY_VERSION | ||
|
||
python -m pip install -U pip | ||
python -m pip install -U -r dev-requirements.txt | ||
python --version | ||
python -m pip --version | ||
python setup.py bdist_wheel | ||
|
||
# test wheel, move out of here otherwise pip thinks | ||
# cbitstruct is already installed | ||
mkdir -p testdir | ||
cd testdir | ||
python -m pip install cbitstruct --no-index -f ../dist/ | ||
python -m nose cbitstruct | ||
cd .. | ||
done | ||
|
||
ls dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
set -e -x | ||
|
||
BASE_PATH=$PATH | ||
|
||
for PY_VERSION in $PY_VERSIONS; do | ||
PYNUM=$(echo $PY_VERSION | sed 's/\([0-9]\+\)\.\([0-9]\+\)\.[0-9]\+/\1\2/') | ||
|
||
export PATH=/c/Python$PYNUM:/c/Python$PYNUM/Scripts:$BASE_PATH | ||
|
||
choco install python --version $PY_VERSION --allow-downgrade | ||
python -m pip install -U pip | ||
python -m pip install -U -r dev-requirements.txt | ||
|
||
python --version | ||
python -m pip --version | ||
|
||
python setup.py bdist_wheel | ||
|
||
# test the wheel, need to move our of the current dir | ||
# otherwise pip thinks cbitstruct is already installed | ||
mkdir -p testdir | ||
cd testdir | ||
python -m pip install cbitstruct --no-index -f ../dist/ | ||
python -m nose cbitstruct | ||
python -m pip uninstall -y cbitstruct | ||
cd .. | ||
done | ||
|
||
ls dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
set -e -x | ||
|
||
export COVERAGE=1 | ||
|
||
python -m pip install -U -r dev-requirements.txt | ||
python -m pip install -U cpp-coveralls | ||
python setup.py install | ||
python -m nose cbitstruct | ||
coveralls --exclude clinic --gcov-options '\-lp' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
set -e -x | ||
|
||
python -m pip install -U pip twine wheel setuptools | ||
python -m twine upload --repository-url "$PYPI_REPOSITORY_URL" -u "$PYPI_USERNAME" -p "$PYPI_PASSWORD" dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
set -e -x | ||
|
||
python -m pip install -U pip twine wheel setuptools | ||
python -m twine upload --repository-url "$PYPI_REPOSITORY_URL" -u "$PYPI_USERNAME" -p "$PYPI_PASSWORD" dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
set -e -x | ||
|
||
python -m pip install -U -r dev-requirements.txt | ||
python setup.py install | ||
python cbitstruct/tests/test_perf.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
set -e -x | ||
|
||
python -m pip install -U -r dev-requirements.txt | ||
python setup.py install | ||
python -m nose cbitstruct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,93 @@ | ||
language: python | ||
python: "3.7" | ||
|
||
python: 3.7 | ||
|
||
env: | ||
global: | ||
- PY_VERSIONS="3.7.4 3.6.8 3.5.4" | ||
- PYPI_REPOSITORY_URL=https://upload.pypi.org/legacy/ | ||
- PYPI_USERNAME=__token__ | ||
- secure: "jfAnPdxjTDw/mFbM2rmqjHaBtGpA+Rr+goCB5/Jp6RZ5N2M60nJliw8B5v7RwZDy//nSIdbTBU7cF/7WjEPwzrHUn5LQsS13ThzoS6KE7NUPa77TOxEpHXr4MJsyeSQMindEbAMeYP+lffI8/ISQ85evIbbSn6XzZSN/YBpQCTUGHWViqKIlpT70GYfRTeEJ0YvXxcJHKXoMuG7N80n8DW88FlfuI2age29cAe80pNn2yCZww2ZH0kG62HGQhzVv4v/uvxLLTaDP/JndYQyBnw6y5gesT2XCrgmCPgCTyVrtJsR96LjOukG2/T5etgpK0sgRwfgRk2DjKmlUqQOUm57lO+52ECaqqbaERFYe/Ub4JZ4DD05lKqm6wtQMD+fYl+TLKzGvCWayuLvxs7HqI+cz0BQQ7iynXuPUqX3xpkUDdAUzg9remmEJ1n8WG/NMHsv3Embh6zHS9RW7OUBXTELjrgJHVwjm8N0KtY063kMDArlSLNcf1gUPOx8MTOXBQWcauxmLfXMyaWrjHQ++1dWRFWjNVkUWfv+l17/ZHJHHnaJ6VpzhrZ5uku4LfEH8hgOCL6EYbO1PVXuEvFXDQX6wIFdbXaXSkx78ZgfiJf3xDqxcU1jl7+ipoCe2xkXaRkka0wg1gwCsfF53suXGIEIMRBWqrGJI9vETu5mVQDY=" | ||
|
||
|
||
deploy: | ||
provider: script | ||
skip_cleanup: true | ||
script: bash travis/deploy.sh | ||
script: bash .ci/deploy.sh | ||
on: | ||
tags: true | ||
condition: $DEPLOY = 1 | ||
|
||
|
||
jobs: | ||
include: | ||
- stage: build | ||
name: "Manylinux x86_64" | ||
env: DOCKER_IMAGE=quay.io/pypa/manylinux2010_x86_64 | ||
PLAT=manylinux2010_x86_64 | ||
DEPLOY=1 | ||
services: | ||
- docker | ||
install: | ||
- docker pull $DOCKER_IMAGE | ||
script: | ||
- docker run --rm -e PLAT=$PLAT -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/travis/build-wheels.sh | ||
- ls wheelhouse/ | ||
name: OSX | ||
os: osx | ||
osx_image: xcode8.3 # macOS 10.12, oldest supported version | ||
language: generic | ||
env: | ||
- DEPLOY=1 | ||
script: bash .ci/build-osx.sh | ||
before_deploy: | ||
- export PATH="/Users/travis/.pyenv/shims:${PATH}" | ||
- pyenv global 3.7.4 | ||
before_cache: | ||
- brew cleanup | ||
- find /usr/local/Homebrew \! -regex ".+\.git.+" -delete | ||
- find $HOME/.pyenv/ -name '*.pyc' -delete | ||
cache: | ||
directories: | ||
- $HOME/.pyenv/ | ||
- $HOME/Library/Caches/Homebrew | ||
- /usr/local/Homebrew | ||
|
||
- stage: build | ||
name: Windows | ||
os: windows | ||
language: c | ||
env: | ||
- DEPLOY=1 | ||
script: bash .ci/build-windows.sh | ||
before_deploy: | ||
- export PATH=/c/Python37:/c/Python37/Scripts:$PATH | ||
- bash .ci/deploy.sh | ||
|
||
- stage: build | ||
name: "Manylinux i686" | ||
services: | ||
- docker | ||
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_i686 | ||
PRE_CMD=linux32 | ||
PLAT=manylinux1_i686 | ||
DEPLOY=1 | ||
install: | ||
- docker pull $DOCKER_IMAGE | ||
script: | ||
- docker run --rm -e PLAT=$PLAT -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/travis/build-wheels.sh | ||
- ls wheelhouse/ | ||
name: Manylinux x86_64 | ||
services: docker | ||
env: | ||
- DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64 | ||
- PLAT=manylinux1_x86_64 | ||
- DEPLOY=1 | ||
script: bash .ci/build-manylinux.sh | ||
|
||
- stage: build | ||
name: Manylinux i686 | ||
services: docker | ||
env: | ||
- DOCKER_IMAGE=quay.io/pypa/manylinux1_i686 | ||
- PRE_CMD=linux32 | ||
- PLAT=manylinux1_i686 | ||
- DEPLOY=1 | ||
script: bash .ci/build-manylinux.sh | ||
|
||
- stage: build | ||
name: Coverage | ||
env: COVERAGE=1 | ||
install: | ||
- pip install cpp-coveralls bitstruct | ||
script: | ||
- python setup.py install | ||
- nosetests cbitstruct | ||
- coveralls --exclude clinic --gcov-options '\-lp' | ||
os: linux | ||
script: bash .ci/coverage.sh | ||
|
||
- stage: build | ||
name: Performance | ||
install: | ||
- pip install bitstruct | ||
script: | ||
- python setup.py install | ||
- python cbitstruct/tests/test_perf.py | ||
os: linux | ||
script: bash .ci/performance.sh | ||
|
||
- stage: build | ||
name: Linux 3.8-dev | ||
os: linux | ||
python: 3.8-dev | ||
script: bash .ci/test-linux.sh | ||
|
||
- stage: build | ||
name: "Forward support" | ||
python: "3.8-dev" | ||
install: | ||
- pip install bitstruct | ||
script: | ||
- python setup.py install | ||
- nosetests cbitstruct | ||
name: Source distribution | ||
os: linux | ||
env: | ||
- DEPLOY=1 | ||
script: bash .ci/build-linux-sdist.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include cbitstruct/clinic/*.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.