BryanDavis has uploaded a new change for review. https://gerrit.wikimedia.org/r/301844
Change subject: Add tooling to build wheels and initial wheels ...................................................................... Add tooling to build wheels and initial wheels Change-Id: I68dad566847d09a1ed79b267a03a5d41892e0a2a --- M .gitignore A make_wheels.sh A requirements.txt M wheels 4 files changed, 43 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/labs/striker/deploy refs/changes/44/301844/1 diff --git a/.gitignore b/.gitignore index 2023fea..f40523c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.py[cod] /.tox +/_build __pycache__/ diff --git a/make_wheels.sh b/make_wheels.sh new file mode 100755 index 0000000..cc17f6c --- /dev/null +++ b/make_wheels.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash +# Build wheels for distribution +set -o errexit +set -o nounset +set -o pipefail + +BASE=$(realpath $(dirname $0)) +BUILD=${BASE}/_build +VENV=${BUILD}/venv +STRIKER=${BASE}/striker +REQUIREMENTS=${BASE}/requirements.txt + +PIP=${VENV}/bin/pip + +mkdir -p $VENV +virtualenv --python python3 --system-site-packages $VENV || /bin/true +$PIP install -r ${STRIKER}/requirements.txt +$PIP freeze --local --requirement $REQUIREMENTS > $REQUIREMENTS +$PIP wheel -r $REQUIREMENTS -w wheels diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..d40870a --- /dev/null +++ b/requirements.txt @@ -0,0 +1,22 @@ +## The following requirements were added by pip --freeze: +Django==1.8.14 +PyJWT==1.4.1 +cffi==1.7.0 +cryptography==1.4 +django-auth-ldap==1.2.8 +django-bootstrap3==7.0.1 +django-csp==3.0 +django-ipware==1.1.5 +django-ldapdb==0.6.0 +django-ratelimit-backend==1.0 +idna==2.1 +mwoauth==0.2.7 +mysqlclient==1.3.7 +oauthlib==1.1.2 +pyasn1==0.1.9 +pycparser==2.14 +pyldap==2.4.25.1 +python-memcached==1.58 +requests==2.10.0 +requests-oauthlib==0.6.2 +six==1.10.0 diff --git a/wheels b/wheels index c3defe8..bcbd632 160000 --- a/wheels +++ b/wheels @@ -1 +1 @@ -Subproject commit c3defe8a96b70eae6edc048c41ed3fbdd580dd6a +Subproject commit bcbd63222d5463f7e4d966a4e2e0b01508550644 -- To view, visit https://gerrit.wikimedia.org/r/301844 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I68dad566847d09a1ed79b267a03a5d41892e0a2a Gerrit-PatchSet: 1 Gerrit-Project: labs/striker/deploy Gerrit-Branch: master Gerrit-Owner: BryanDavis <bda...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits