File tree Expand file tree Collapse file tree 3 files changed +31
-11
lines changed Expand file tree Collapse file tree 3 files changed +31
-11
lines changed Original file line number Diff line number Diff line change 58
58
manylinux-x64_cp27-cp27mu_tests-only :
59
59
<< : *x64_build_job
60
60
61
+ check-dist :
62
+ docker :
63
+ - image : circleci/python:3.9.4
64
+ steps :
65
+ - attach_workspace :
66
+ at : ./
67
+ - run :
68
+ name : Check dist
69
+ command : |
70
+ echo "Check dist"
71
+ ls dist
72
+ python -m venv ../venv
73
+ . ../venv/bin/activate
74
+ pip install twine
75
+ twine check --strict dist/*
76
+
61
77
deploy-master :
62
78
docker :
63
- - image : circleci/python:3.7.0-stretch
79
+ - image : circleci/python:3.9.4
64
80
steps :
65
81
- attach_workspace :
66
82
at : ./
71
87
72
88
deploy-release :
73
89
docker :
74
- - image : circleci/python:3.7.0-stretch
90
+ - image : circleci/python:3.9.4
75
91
steps :
76
92
- attach_workspace :
77
93
at : ./
@@ -100,25 +116,24 @@ workflows:
100
116
- manylinux-x64_cp27-cp27mu_tests-only :
101
117
<< : *no_filters
102
118
103
- - deploy-master :
119
+ - check-dist :
104
120
requires :
105
121
# x64
106
122
- manylinux-x64_cp37-cp37m_upload-sdist
107
123
# x86
108
124
- manylinux-x86_cp37-cp37m
109
125
# python 2.7 test
110
126
- manylinux-x64_cp27-cp27mu_tests-only
127
+
128
+ - deploy-master :
129
+ requires :
130
+ - check-dist
111
131
filters :
112
132
branches :
113
133
only : master
114
134
- deploy-release :
115
135
requires :
116
- # x64
117
- - manylinux-x64_cp37-cp37m_upload-sdist
118
- # x86
119
- - manylinux-x86_cp37-cp37m
120
- # python 2.7 test
121
- - manylinux-x64_cp27-cp27mu_tests-only
136
+ - check-dist
122
137
filters :
123
138
tags :
124
139
only : /^[0-9]+(\.[0-9]+)*(\.post[0-9]+)?$/
Original file line number Diff line number Diff line change @@ -91,7 +91,11 @@ after_success:
91
91
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
92
92
ci after_test
93
93
fi
94
- pwd && ls dist; PATH=~/.pyenv/versions/${PYTHON_VERSION}/bin/:$PATH && twine --version
94
+ pwd
95
+ ls dist
96
+ PATH=~/.pyenv/versions/${PYTHON_VERSION}/bin/:$PATH
97
+ twine --version
98
+ twine check --strict dist/*
95
99
96
100
deploy :
97
101
# deploy-release
Original file line number Diff line number Diff line change @@ -48,9 +48,10 @@ on_finish:
48
48
49
49
deploy_script :
50
50
- ps : |
51
+ $env:PATH="$env:PYTHON_DIR/Scripts/;$env:PATH"
52
+ twine check --strict dist/*
51
53
if ($env:appveyor_repo_tag -eq $true -and $env:appveyor_repo_tag_name –match "^[0-9]+(\.[0-9]+)*(\.post[0-9]+)?$") {
52
54
Write-Host "deploy release"
53
- $env:PATH="$env:PYTHON_DIR/Scripts/;$env:PATH"
54
55
twine upload -u $env:PYPI_USER -p $env:PYPI_PASSWORD --skip-existing dist/*
55
56
} elseif ($env:appveyor_repo_branch -eq "master") {
56
57
Write-Host "deploy master (not implemented)"
You can’t perform that action at this time.
0 commit comments