Skip to content

Commit 233629c

Browse files
committed
Merge branch 'master' into develop
2 parents 82dfcb4 + 4e28384 commit 233629c

File tree

7 files changed

+33
-32
lines changed

7 files changed

+33
-32
lines changed

.travis.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
os: osx
22
language: generic
33
env:
4-
- VERSION=2.7
5-
- VERSION=3.3
6-
- VERSION=3.4
7-
- VERSION=3.5
8-
4+
global:
5+
- secure: "R5OivfMMAw1BhdwbBjEjfxhkqtj+Ntqf+jh+05Mr3y1aV8tC9J1vsq213Q7J7teweJ7WteHSj8ymJk2DdJ5mOIFEPAWQeuUIzcaplmfmsxYNdUhj19Ok8E8XG+ppBHccDaS3eE6GM6tDB9PouOE0MGA8/j9DLHXDSPTrjO/+G+AQ7V9M2+XqiEHJrPhlzas1h37XKLa5EzMIMK3atoUS1CLg6JOa+Rgz9OfXs+wQyErdQ5BjNfzZH4BKFhHl1zBViPv+j3SHDkyFw92mbXx14qn8xiyY3ZtKisMKT/X5o8DUJbWN3OdFF65NQq5lcnTFjIx06LJmy+zLjnZ83qggRuRPxAV2D9ODRBjDY3bdBMVSeaP/0yKldZyd14UXU3Ahwymi9lHC+MRgzRx5VyovptgOq3RfZ97peRT0NRDuotcxG1oFcAOIutH7oQZiAWZV7LLSSc3JdNCbwjRDm0MqzoD4TcMa8vCJMEZWSzLLygJYiZC0OklTnOYko5wdYms8aJw1FPjXbc2UNo6bVXXnbdoxEfadxtWKskNKF6tSdl766CMh/jM3gMv2bZkY2mYSnNp1RL1sslE33BZPgzW5fyFnUBskwQZEOidWx+uQ1eiPsnvb5FBC8on59fTVKkHh6Xiffqltq8Yvy33P12qoV+S9GHMT4DOm9bQf/qob2fQ="
6+
matrix:
7+
- VERSION=2.7
8+
- VERSION=3.3
9+
- VERSION=3.4
10+
- VERSION=3.5
911
matrix:
1012
include:
1113
- sudo: required
1214
os: linux
15+
language: python
1316
services:
1417
- docker
1518
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
1619
- sudo: required
1720
os: linux
21+
language: python
1822
services:
1923
- docker
2024
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
@@ -30,15 +34,4 @@ script:
3034

3135
after_success:
3236
- ls wheelhouse/
33-
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then bash <(curl -s https://codecov.io/bash); fi
34-
35-
deploy:
36-
provider: releases
37-
api_key:
38-
secure: PQSvEpo4Ec3u52FflZsc4M+RLGpToh3w6ej+XwEYKaSsfdXSAA936gXx7BWYy0rZrPT3RFfUjb63wGTfM3sf54cbvVMViPd/7L3DnYPaSsO1lCKdHPkcXV9tXHcWjDw7o0E9dviWXcpptR4Z7z73pE4yYY06e+SzBpROpiWSl9fB62I+DkIvBtfKjcLkvsSf86gtuysTw+v5aeqWtusHuRETI2/mtYwKu3ERICWzWzn9kWL4EWf+2y9uXFa8oz7faUsdK1uxc9xDMJLXtIErg71+Lg0s2KqduOmmGSB03APxMe0/4sh8+Do9yEdh677VGV4KbY5qzeKffjXEFp7Wj7ZG+w1WsmnxTHKiuFdJRbswuSHZhnf3EHiBbC0vwHAPuHp7720bdtTH0GmhniSLu6FnZohbnSaDlTXJaXgqxuDMyrVE5lSjMy1v/hUW6tj6ewQmpcheXMgpArX3fNiUNzHgFp21wTznHAlo+E4q7JC9a5QaV/uONbiLgETqlirRz0jTMfKxp6xQUjEJU6jE1anLVO9JuZkb9PqN99TFjrlzv6TPhSQnzVausQD/VouHYJUXer4yuK7OHZO4JoVm8iSfleQ4XaNnxzU4U6CRzJnaGJfSSa4u9kdoAI7bVvxF0hEQ9vDEV4F8Ze6aIAX5/v8G919x+hvkGjURACuR7oE=
39-
file: wheelhouse/bencoder*.whl
40-
file_glob: true
41-
skip_cleanup: true
42-
on:
43-
tags: true
44-
repo: whtsky/bencoder.pyx
37+
- if [ $TRAVIS_TAG ]; then source ci/deploy.sh; fi

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ A fast bencode implementation in Cython supports both Python2 & Python3 .
55

66
.. image:: https://img.shields.io/travis/whtsky/bencoder.pyx/master.svg?maxAge=3600&label=macOS
77
:target: https://travis-ci.org/whtsky/bencoder.pyx
8-
.. image:: https://img.shields.io/appveyor/ci/whtsky/bencoder.pyx/master.svg?maxAge=3600&label=Windows
9-
:target: https://ci.appveyor.com/project/whtsky/bencoder.pyx
8+
.. image:: https://img.shields.io/appveyor/ci/whtsky/bencoder-pyx/master.svg?maxAge=3600&label=Windows
9+
:target: https://ci.appveyor.com/project/whtsky/bencoder-pyx
1010
.. image:: https://semaphoreci.com/api/v1/whtsky/bencoder-pyx/branches/master/shields_badge.svg
1111
:target: https://semaphoreci.com/whtsky/bencoder-pyx
1212

appveyor.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '{branch}-{build}'
22
cache:
33
- '%LOCALAPPDATA%\pip\Cache'
44
environment:
5-
password:
5+
PYPI_PASSWD:
66
secure: pp1j5lAB9NN8ZDasgY+oxoGrNw0+4gGzbNZmHVwJkCzUyrNBP5ZIuCrwjmx4q6ifg7RMiE3bVt9MljFCJh3XpsvVOAcx+AGKsHSjtXd40HM=
77
init:
88
- ps: "ls C:/Python*"
@@ -18,20 +18,20 @@ build: off
1818
test_script:
1919
- tox
2020

21-
on_success:
21+
after_test:
2222
- pip install codecov
2323
- codecov
24+
- del bencoder.c
2425
- tox -c tox-wheels.ini
26+
- ps: "ls wheelhouse/*"
2527

2628
deploy_script:
27-
- echo [distutils] > %USERPROFILE%\\.pypirc
28-
- echo index-servers = >> %USERPROFILE%\\.pypirc
29-
- echo pypi >> %USERPROFILE%\\.pypirc
30-
- echo [pypi] >> %USERPROFILE%\\.pypirc
31-
- echo username=whtsky >> %USERPROFILE%\\.pypirc
32-
- echo password=%password% >> %USERPROFILE%\\.pypirc
33-
- set HOME=%USERPROFILE%
34-
- pip install twine
35-
- ps: if($env:APPVEYOR_REPO_TAG -eq $TRUE) { "twine upload wheelhouse/bencoder*.whl" }
29+
- ps: >-
30+
if($env:appveyor_repo_tag -eq 'True') {
31+
$env:Path += ";C:\Python35;C:\Python35\scripts"
32+
pip install twine
33+
twine upload --username whtsky --password $env:PYPI_PASSWD wheelhouse/bencoder*.whl
34+
}
3635
37-
deploy : on
36+
artifacts:
37+
- path: wheelhouse/bencoder*.whl

ci/deploy.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
pip install twine
3+
twine upload --username whtsky --password $PYPI_PASSWORD wheelhouse/bencoder*.whl

ci/travis_osx_script.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
python setup.py test
2+
bash <(curl -s https://codecov.io/bash)
3+
rm bencoder.c
24
pip wheel . -w wheelhouse/

release.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env bash
2+
rm -rf wheelhouse/
3+
rm -rf dist/
24
cython bencoder.pyx
35
python setup.py sdist --formats=zip,gztar register
46
tox -c tox-wheels.ini
57
twine upload dist/*
8+
twine upload wheelhouse/*

tox-wheels.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py26, py27, py33, py34, py35, pypy
2+
envlist = py26, py27, py33, py34, py35
33

44
[testenv]
55
commands = pip wheel {toxinidir} -w {toxinidir}/wheelhouse/

0 commit comments

Comments
 (0)