Skip to content

Commit 8bb4509

Browse files
committed
Try fetch
1 parent 3c2b70e commit 8bb4509

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

admin/release.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,20 +101,14 @@ def build() -> None:
101101
Build source and binary distributions.
102102
"""
103103
for args in (
104+
['git', 'fetch'],
104105
['rm', '-rf', 'build'],
105106
['python', 'setup.py', 'sdist', 'bdist_wheel'],
107+
['twine', 'upload', '-r', 'pypi', 'dist/*']
106108
):
107109
subprocess.run(args=args, check=True)
108110

109111

110-
def upload_to_pypi() -> None:
111-
"""
112-
Upload builds to PyPI.
113-
"""
114-
args = ['twine', 'upload', '-r', 'pypi', 'dist/*']
115-
subprocess.run(args=args, check=True)
116-
117-
118112
def main() -> None:
119113
"""
120114
Perform a release.
@@ -130,7 +124,6 @@ def main() -> None:
130124
version=version_str,
131125
)
132126
build()
133-
upload_to_pypi()
134127

135128

136129
if __name__ == '__main__':

0 commit comments

Comments
 (0)