Skip to content

Commit c4689c2

Browse files
committed
bugfixes; renames
1 parent 32eaaaa commit c4689c2

File tree

6 files changed

+27
-28
lines changed

6 files changed

+27
-28
lines changed

.travis.yml

+5-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
language: generic
2-
before_script:
3-
# Run flake8 tests only on Python 2.7 and 3.7...
4-
# 1) stop the build if there are Python syntax errors or undefined names
5-
# 2) exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
6-
- if [[ $TRAVIS_PYTHON_VERSION == *.7 ]]; then
7-
pip install flake8;
8-
flake8 . --count --exit-zero --select=E901,E999,F821,F822,F823 --show-source --statistics;
9-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics;
10-
fi
112

123
services:
134
- docker
145

6+
before_script:
7+
- docker pull jmadler/python-future-builder:latest
8+
159
script:
16-
- ./buildtest.sh
10+
- ./lint.sh
11+
- ./build.sh

Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-instal
99
RUN echo export PATH="/opt/pyenv/bin:$PATH" >> ~/.bashrc
1010
RUN echo 'eval "$(pyenv init -)"' >> ~/.bashrc
1111
RUN echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
12-
# venv 15.2.0 is the last to support Python 2.6. Since the venv module of the installer
12+
# venv 15.2.0 is the last to support Python 2.6.
1313
RUN pip3 install virtualenv==15.2.0
1414
RUN PATH=/opt/pyenv/bin:$PATH pyenv install 2.6.9
15-
RUN virtualenv /opt/py26 --python /opt/pyenv/versions/2.6.9/bin/python
15+
RUN virtualenv /root/py26 --python /opt/pyenv/versions/2.6.9/bin/python
1616
RUN PATH=/opt/pyenv/bin:$PATH pyenv install 3.3.7
1717
RUN virtualenv /root/py33 --python /opt/pyenv/versions/3.3.7/bin/python
1818
RUN pip3 install virtualenv==20.0.21
@@ -29,8 +29,8 @@ RUN PATH=/opt/pyenv/bin:$PATH pyenv install 3.7.7
2929
RUN virtualenv /root/py37 --python /opt/pyenv/versions/3.7.7/bin/python
3030
RUN PATH=/opt/pyenv/bin:$PATH pyenv install 3.8.3
3131
RUN virtualenv /root/py38 --python /opt/pyenv/versions/3.8.3/bin/python
32-
RUN PATH=/opt/pyenv/bin:$PATH pyenv install 3.9-dev
33-
RUN virtualenv /root/py39 --python /opt/pyenv/versions/3.9-dev/bin/python
32+
RUN PATH=/opt/pyenv/bin:$PATH pyenv install 3.9.0
33+
RUN virtualenv /root/py39 --python /opt/pyenv/versions/3.9.0/bin/python
3434
RUN ln -s /usr/bin/python3 /usr/bin/python
3535
ENV LC_ALL=C.UTF-8
3636
ENV LANG=C.UTF-8

build.sh

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# XXX: TODO: we should make this include -e once tests pass
2+
set -xuo pipefail
3+
4+
docker build . -t jmadler/python-future-builder
5+
6+
version=0.18.2
7+
8+
for i in py26 py27 py33 py34 py35 py36 py37 py38 py39; do
9+
docker run -ti -v $(realpath dist):/root/python-future/dist python-future-builder /root/python-future/setup.sh $version $(basename $i)
10+
done
11+
12+
python setup.py sdist
13+
python setup.py clean
14+
echo You may now run: "twine upload dist/*"

buildtest.sh

-12
This file was deleted.

lint.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Run under Python 2.7 and 3.7
2+
flake8 . --count --exit-zero --select=E901,E999,F821,F822,F823 --show-source --statistics
3+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

setup.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version=$1
66
pytag=$2
77

88
if [ $pytag = 'py33' ]; then
9-
pip install virtualenv==16.2.0
9+
pip3 install virtualenv==16.2.0
1010
fi
1111

1212
source /root/$pytag/bin/activate
@@ -18,4 +18,3 @@ pip install pytest unittest2
1818
python setup.py bdist_wheel --python-tag=$pytag
1919
pip install dist/future-$version-$pytag-none-any.whl
2020
pytest tests/
21-
python setup.py clean

0 commit comments

Comments
 (0)