Skip to content

Commit a60742d

Browse files
committed
Slight improvements to wheel scripts
1 parent 0a22fc9 commit a60742d

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

bin/build-manylinux-wheels

+1-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import pipes
1010
import subprocess
1111
import tempfile
1212

13-
from twine.commands import upload
14-
1513

1614
def check_call(*cmd):
1715
print(
@@ -43,8 +41,7 @@ def main():
4341
'{} wheel --verbose --wheel-dir /work --no-deps libsass && '
4442
'auditwheel repair --wheel-dir /dist /work/*.whl'.format(pip),
4543
)
46-
dists = tuple(os.path.join('dist', p) for p in os.listdir('dist'))
47-
return upload.main(('-r', 'pypi', '--skip-existing') + dists)
44+
return 0
4845

4946

5047
if __name__ == '__main__':

bin/download-windows-wheels

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import urllib.request
88
import zipfile
99

1010
DEFINITION_RE = re.compile(
11-
r'https://(?P<org>[^.]+)\.visualstudio\.com/(?P<project>[^/]+)'
11+
r'https://dev.azure.com/(?P<org>[^/]+)/(?P<project>[^/]+)'
1212
r'/_build/latest\?definitionId=(?P<definition>\d+)',
1313
)
1414
BUILDS = 'https://dev.azure.com/{org}/{project}/_apis/build/builds?api-version=5.0&definitions={definition}&$top=5' # noqa: E501
@@ -21,7 +21,7 @@ def main() -> int:
2121
parser.add_argument('--dest', default='dist')
2222
args = parser.parse_args()
2323

24-
with open('README.md') as f:
24+
with open('README.rst') as f:
2525
match = DEFINITION_RE.search(f.read())
2626
assert match
2727

0 commit comments

Comments
 (0)