Skip to content

Commit 464ac9f

Browse files
committed
another go at twine
1 parent f6e5f62 commit 464ac9f

File tree

6 files changed

+23
-19
lines changed

6 files changed

+23
-19
lines changed

.travis.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -111,18 +111,15 @@ install:
111111
script:
112112
- bash ci/script.sh
113113

114-
before_deploy:
115-
- python -m pip install -Uq twine urllib3[secure]
116-
117114
deploy:
118-
115+
skip_cleanup: true
119116
# After you create the Github repo and add it to Travis, run the
120117
# travis_pypi_setup.py script to finish PyPI deployment setup
121118

122119
# this is for pypi. Will fail if you haven't run
123120
# "python -m twine register ... " to register with pypi
124121
- provider: script
125-
script: find wheelhouse/ -type f -name '*.whl' -print |xargs -n1 python -m twine upload
122+
script: ci/pypi_upload.sh
126123
on:
127124
tags: true
128125
- provider: releases

HISTORY.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
History
33
=======
44

5-
0.7.2 (2017-06-18)
5+
0.7.3 (2017-06-18)
66
------------------
77

88
* First release on PyPI.

appveyor.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ artifacts:
8080
deploy:
8181
# upload to pypi with twine.
8282
- provider: script
83-
script: "%PYTHON_DIR%\\python -m ci after_test"
83+
script:
84+
- "%PYTHON_DIR%\\python -m ci after_test"
8485
on:
8586
appveyor_repo_tag: true
8687

ci/pypi_upload.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
set -ex
3+
4+
python -m pip install -Uq twine urllib3[secure]
5+
ls -la wheelhouse/
6+
python -m twine upload wheelhouse/*
7+

scikit-ci.yml

+8-9
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,12 @@ test:
3939
commands:
4040
- $<RUN_ENV> $<PYTHON> setup.py test
4141

42-
# after_test:
42+
after_test:
43+
# commands:
44+
# - $<RUN_ENV> $<PYTHON> -m pip install --upgrade twine urllib3[secure]
45+
# - $<RUN_ENV> $<PYTHON> -m twine upload wheelhouse/*
4346

44-
# commands:
45-
# - $<RUN_ENV> codecov -X gcov --required --file ./tests/coverage.xml
46-
# - $<RUN_ENV> $<PYTHON> setup.py bdist_wheel
47-
48-
# appveyor:
49-
# commands:
50-
# - $<RUN_ENV> $<PYTHON> setup.py bdist_wininst
51-
# - $<RUN_ENV> $<PYTHON> setup.py bdist_msi
47+
appveyor:
48+
commands:
49+
- $<RUN_ENV> $<PYTHON> -m pip install --upgrade twine urllib3[secure]
50+
- $<RUN_ENV> $<PYTHON> -m twine upload wheelhouse\*

setup.cfg

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ replace = {new_version}
1919
search = {current_version}
2020
replace = {new_version}
2121

22+
2223
[flake8]
2324
exclude = docs
2425

2526
[aliases]
26-
test = pytest
27+
test=pytest
2728

2829
[tool:pytest]
2930
testpaths = tests
30-
addopts = --verbose
31-
31+
addopts = --verbose

0 commit comments

Comments
 (0)