File tree Expand file tree Collapse file tree 3 files changed +9
-21
lines changed Expand file tree Collapse file tree 3 files changed +9
-21
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,4 @@ script:
30
30
31
31
after_success :
32
32
- ls wheelhouse/
33
-
34
- deploy :
35
- provider : script
36
- skip_cleanup : true
37
- script : /bin/bash ci/deploy.sh
38
- on :
39
- tags : true
40
- repo : whtsky/bencoder.pyx
33
+ - if [ $TRAVIS_TAG ]; then source ci/deploy.sh; fi
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ version: '{branch}-{build}'
2
2
cache :
3
3
- ' %LOCALAPPDATA%\pip\Cache'
4
4
environment :
5
- password :
5
+ PYPI_PASSWD :
6
6
secure : pp1j5lAB9NN8ZDasgY+oxoGrNw0+4gGzbNZmHVwJkCzUyrNBP5ZIuCrwjmx4q6ifg7RMiE3bVt9MljFCJh3XpsvVOAcx+AGKsHSjtXd40HM=
7
7
init :
8
8
- ps : " ls C:/Python*"
@@ -23,18 +23,13 @@ after_test:
23
23
- codecov
24
24
- del bencoder.c
25
25
- tox -c tox-wheels.ini
26
+ - ps : " ls wheelhouse/*"
26
27
27
28
deploy_script :
28
- - ps : " ls wheelhouse/*"
29
- - echo [distutils] > %USERPROFILE%\\.pypirc
30
- - echo index-servers = >> %USERPROFILE%\\.pypirc
31
- - echo pypi >> %USERPROFILE%\\.pypirc
32
- - echo [pypi] >> %USERPROFILE%\\.pypirc
33
- - echo username=whtsky >> %USERPROFILE%\\.pypirc
34
- - echo password=%password% >> %USERPROFILE%\\.pypirc
35
- - set HOME=%USERPROFILE%
36
- - pip install twine
37
- - ps : if($env:APPVEYOR_REPO_TAG -eq $TRUE) { "twine upload wheelhouse/*.whl" }
29
+ - ps : >-
30
+ if($env:appveyor_repo_tag -eq 'True') {
31
+ twine upload --username whtsky --password $env:PYPI_PASSWD wheelhouse/bencoder*.whl
32
+ }
38
33
39
34
artifacts :
40
- - path : wheelhouse/*.whl
35
+ - path : wheelhouse/bencoder *.whl
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
pip install twine
3
- twine upload -u whtsky -p $PYPI_PASSWORD wheelhouse/bencoder* .whl
3
+ twine upload --username whtsky --password $PYPI_PASSWORD wheelhouse/bencoder* .whl
You can’t perform that action at this time.
0 commit comments