File tree 4 files changed +34
-11
lines changed
4 files changed +34
-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 : cimg/python:3.9.5
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 : cimg /python:3.9.5
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 : cimg /python:3.9.5
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 @@ -85,13 +85,17 @@ script:
85
85
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
86
86
ci test
87
87
fi
88
+ pwd
89
+ ls dist
90
+ PATH=~/.pyenv/versions/${PYTHON_VERSION}/bin/:$PATH
91
+ twine --version
92
+ twine check --strict dist/*
88
93
89
94
after_success :
90
95
- |
91
96
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
92
97
ci after_test
93
98
fi
94
- pwd && ls dist; PATH=~/.pyenv/versions/${PYTHON_VERSION}/bin/:$PATH && twine --version
95
99
96
100
deploy :
97
101
# deploy-release
Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ build_script:
39
39
40
40
test_script :
41
41
- " %PYTHON_DIR%\\ python.exe -m ci test"
42
+ - ps : |
43
+ $env:PATH="$env:PYTHON_DIR/Scripts/;$env:PATH"
44
+ twine check --strict dist/*
42
45
43
46
after_test :
44
47
- " %PYTHON_DIR%\\ python.exe -m ci after_test"
@@ -48,9 +51,9 @@ on_finish:
48
51
49
52
deploy_script :
50
53
- ps : |
54
+ $env:PATH="$env:PYTHON_DIR/Scripts/;$env:PATH"
51
55
if ($env:appveyor_repo_tag -eq $true -and $env:appveyor_repo_tag_name –match "^[0-9]+(\.[0-9]+)*(\.post[0-9]+)?$") {
52
56
Write-Host "deploy release"
53
- $env:PATH="$env:PYTHON_DIR/Scripts/;$env:PATH"
54
57
twine upload -u $env:PYPI_USER -p $env:PYPI_PASSWORD --skip-existing dist/*
55
58
} elseif ($env:appveyor_repo_branch -eq "master") {
56
59
Write-Host "deploy master (not implemented)"
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ def parse_requirements(filename):
68
68
'tools designed to build, test and package software' ,
69
69
70
70
long_description = readme + '\n \n ' + history ,
71
+ long_description_content_type = 'text/x-rst' ,
71
72
72
73
classifiers = [
73
74
'License :: OSI Approved :: Apache Software License' ,
You can’t perform that action at this time.
0 commit comments