Skip to content

Commit

Permalink
refs fibercrypto#133 Merge branch 'develop' of https://github.com/fib…
Browse files Browse the repository at this point in the history
…ercrypto/pyskyfiber into stdevMac_t133_pyskycoin_to_lib_swig
  • Loading branch information
Maykel Arias Torres committed Mar 12, 2020
2 parents a3f16c0 + 2bfa4fb commit e083437
Show file tree
Hide file tree
Showing 200 changed files with 10,705 additions and 38,337 deletions.
16 changes: 16 additions & 0 deletions .circleci/circle_wheels.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Compile wheels
for PYBIN in /opt/python/*/bin; do
"${PYBIN}/pip" install -r /io/requirements.dev.txt
"${PYBIN}/pip" install -r /io/requirements.txt
"${PYBIN}/pip" install -r /io/lib/skyapi/requirements.txt
"${PYBIN}/pip" wheel /io/ -w /io/wheelhouse/
"${PYBIN}/pip" wheel /io/lib/skyapi/ -w /io/wheelhouse/
done

# Bundle external shared libraries into the wheels
for whl in /io/wheelhouse/*.whl; do
auditwheel repair "$whl" -w /io/wheelhouse/
done

rm -rfv /io/wheelhouse/*linux_i686.whl
rm -rfv /io/wheelhouse/*linux_x86_64.whl
8 changes: 8 additions & 0 deletions .circleci/circle_wheels_arm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Compile wheels
pip wheel /io/ -w /io/wheelhouse/
pip wheel /io/lib/skyapi/ -w /io/wheelhouse/
# python3.4 -m pip wheel /io/ -w wheelhouse/
pip3 wheel /io/lib/skyapi/ -w /io/wheelhouse/
pip3 wheel /io/ -w /io/wheelhouse/
# python3.6 -m pip wheel /io/ -w wheelhouse/
# python3.7 -m pip wheel /io/ -w wheelhouse/
51 changes: 51 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
version: 2
jobs:
manylinux64:
docker:
- image: docker:18.06.0-ce-git
working_directory: $GOPATH/src/github.com/fibercrypto/pyskycoin
steps:
- run: mkdir -p $GOPATH/src/github.com/ $GOPATH/src/github.com/skycoin
- checkout
- setup_remote_docker:
version: 18.06.0-ce

manylinux32:
docker:
- image: docker:18.06.0-ce-git
working_directory: $GOPATH/src/github.com/fibercrypto/pyskycoin
steps:
- run: mkdir -p $GOPATH/src/github.com/ $GOPATH/src/github.com/skycoin
- checkout
- setup_remote_docker:
version: 18.06.0-ce

manylinuxarmv7:
docker:
- image: docker:18.06.0-ce-git
working_directory: $GOPATH/src/github.com/fibercrypto/pyskycoin
steps:
- run: mkdir -p $GOPATH/src/github.com/ $GOPATH/src/github.com/skycoin
- checkout
- setup_remote_docker:
version: 18.06.0-ce
- run: docker build --file $GOPATH/src/github.com/fibercrypto/pyskycoin/docker/images/deploy/Dockerfile-arm $GOPATH/src/github.com/fibercrypto/pyskycoin -t skydev-test

docker:
- image: docker:18.06.0-ce-git
working_directory: $GOPATH/src/github.com/fibercrypto/pyskycoin
steps:
- run: mkdir -p $GOPATH/src/github.com/ $GOPATH/src/github.com/skycoin
- checkout
- setup_remote_docker:
version: 18.06.0-ce
- run: if [[ $CIRCLE_TAG ]]; then docker build --build-arg SHA1=$CIRCLE_SHA1 --build-arg GITHUB_OAUTH_TOKEN --build-arg PROJECT_USERNAME=$CIRCLE_PROJECT_USERNAME --build-arg PROJECT_REPONAME=$CIRCLE_PROJECT_REPONAME --build-arg QEMU_PLATFORM=raspberrypi3 --build-arg VERSION --file $GOPATH/src/github.com/skycoin/libskycoin/docker/images/circle/Dockerfile $GOPATH/src/github.com/skycoin/libskycoin -t skydev-deploy ; fi


workflows:
version: 2
arm_test:
jobs:
- manylinux64
- manylinux32
- manylinuxarmv7
14 changes: 14 additions & 0 deletions .circleci/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

set -x

git --version

export VERSION="$(git describe --tags --exact-match HEAD)"

if [[ "$VERSION" ]]; then
docker build --build-arg VERSION --build-arg SHA1=$CIRCLE_SHA1 --build-arg GITHUB_OAUTH_TOKEN --build-arg PROJECT_USERNAME=$CIRCLE_PROJECT_USERNAME --build-arg PROJECT_REPONAME=$CIRCLE_PROJECT_REPONAME --build-arg GO_ARCH=386 --build-arg ARCH=i686 --build-arg $PYPI_USER --build-arg $PYPI_PASSWD --build-arg URL_DEPLOY=https://pypi.org/legacy/ --file $GOPATH/src/github.com/fibercrypto/pyskycoin/docker/images/deploy/Dockerfile $GOPATH/src/github.com/fibercrypto/pyskycoin -t skydev-deploy
docker build --build-arg VERSION --build-arg SHA1=$CIRCLE_SHA1 --build-arg GITHUB_OAUTH_TOKEN --build-arg PROJECT_USERNAME=$CIRCLE_PROJECT_USERNAME --build-arg PROJECT_REPONAME=$CIRCLE_PROJECT_REPONAME --build-arg GO_ARCH=amd64 --build-arg ARCH=x86_64 --build-arg $PYPI_USER --build-arg $PYPI_PASSWD --build-arg URL_DEPLOY=https://pypi.org/legacy/ --file $GOPATH/src/github.com/fibercrypto/pyskycoin/docker/images/deploy/Dockerfile $GOPATH/src/github.com/fibercrypto/pyskycoin -t skydev-deploy
docker build --build-arg VERSION --build-arg SHA1=$CIRCLE_SHA1 --build-arg GITHUB_OAUTH_TOKEN --build-arg PROJECT_USERNAME=$CIRCLE_PROJECT_USERNAME --build-arg PROJECT_REPONAME=$CIRCLE_PROJECT_REPONAME --build-arg $PYPI_USER --build-arg $PYPI_PASSWD --build-arg ARCH=armv7hf --file $GOPATH/src/github.com/fibercrypto/pyskycoin/docker/images/deploy/Dockerfile-arm $GOPATH/src/github.com/fibercrypto/pyskycoin -t skydev-test
docker build --build-arg VERSION --build-arg SHA1=$CIRCLE_SHA1 --build-arg GITHUB_OAUTH_TOKEN --build-arg PROJECT_USERNAME=$CIRCLE_PROJECT_USERNAME --build-arg PROJECT_REPONAME=$CIRCLE_PROJECT_REPONAME --build-arg $PYPI_USER --build-arg $PYPI_PASSWD --build-arg ARCH=aarch64 --file $GOPATH/src/github.com/fibercrypto/pyskycoin/docker/images/deploy/Dockerfile-arm $GOPATH/src/github.com/fibercrypto/pyskycoin -t skydev-test
fi
15 changes: 15 additions & 0 deletions .circleci/upload_pypi.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

set -x

if [[ "$URL_DEPLOY" ]]; then

$TWINE_PATH upload -u ${PYPI_USER} -p ${PYPI_PASSWD} --skip-existing --repository-url ${URL_DEPLOY} /io/dist/*sky*

else

$TWINE_PATH upload -u ${PYPI_USER} -p ${PYPI_PASSWD} --skip-existing /io/dist/*sky*
go get github.com/tcnksm/ghr
ghr -t ${GITHUB_OAUTH_TOKEN} -u ${PROJECT_USERNAME} -r ${PROJECT_REPONAME} -c ${SHA1} ${VERSION} /io/dist/*sky*

fi
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ lib/swig/.cache
# Temp files
*.swp
*.swo
skycoin.py
swig/pyskycoin_wrap.c

# IDES
.idea/
Expand All @@ -46,3 +48,8 @@ lib/swig/.cache
# SWIG
*.kbk

swig/pyskycoin_wrap.c
.directory
core*
qemu_*
venv
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "skycoin"]
path = gopath/src/github.com/skycoin/skycoin
url = https://github.com/skycoin/skycoin.git
[submodule "gopath/src/github.com/fibercrypto/libskyfiber"]
path = gopath/src/github.com/fibercrypto/libskyfiber
url = https://github.com/fibercrypto/libskyfiber
Loading

0 comments on commit e083437

Please sign in to comment.