Skip to content

Commit a2a6316

Browse files
committed
maint(release): update python versions in release script
Remove Python 2.7 and add Python 3.8 in the release script. Sympy 1.6 is the first version that no longer supports Python 2.7.
1 parent 56047a9 commit a2a6316

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

release/rever.xsh

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ $ACTIVITIES = [
3737
'build_docs',
3838
'copy_release_files',
3939
'compare_tar_against_git',
40-
'test_tarball27',
4140
'test_tarball35',
4241
'test_tarball36',
4342
'test_tarball37',
44-
'test_wheel27',
43+
'test_tarball38',
4544
'test_wheel35',
4645
'test_wheel36',
4746
'test_wheel37',
47+
'test_wheel38',
4848
'print_authors',
4949
'sha256',
5050
# 'tag',
@@ -124,10 +124,6 @@ def copy_release_files():
124124
ls dist
125125
cp dist/* /root/release/
126126

127-
@activity(deps={'source_tarball'})
128-
def test_tarball27():
129-
test_tarball('2.7')
130-
131127
@activity(deps={'source_tarball'})
132128
def test_tarball35():
133129
test_tarball('3.5')
@@ -140,9 +136,9 @@ def test_tarball36():
140136
def test_tarball37():
141137
test_tarball('3.7')
142138

143-
@activity(deps={'wheel'})
144-
def test_wheel27():
145-
test_wheel('2.7')
139+
@activity(deps={'source_tarball'})
140+
def test_tarball38():
141+
test_tarball('3.8')
146142

147143
@activity(deps={'wheel'})
148144
def test_wheel35():
@@ -156,6 +152,10 @@ def test_wheel36():
156152
def test_wheel37():
157153
test_wheel('3.7')
158154

155+
@activity(deps={'wheel'})
156+
def test_wheel38():
157+
test_wheel('3.8')
158+
159159
@activity(deps={'source_tarball'})
160160
def compare_tar_against_git():
161161
"""
@@ -245,10 +245,9 @@ def _sha256(print_=True, local=False):
245245

246246
@activity(deps={'mailmap_update', 'sha256', 'print_authors',
247247
'source_tarball', 'wheel', 'build_docs',
248-
'compare_tar_against_git', 'test_tarball27',
249-
'test_tarball35', 'test_tarball36', 'test_wheel27',
250-
'test_wheel35', 'test_wheel36',
251-
'test_wheel37', 'test_sympy'})
248+
'compare_tar_against_git', 'test_tarball35', 'test_tarball36',
249+
'test_tarball37', 'test_tarball38', 'test_wheel35',
250+
'test_wheel36', 'test_wheel37', 'test_wheel38', 'test_sympy'})
252251
def release():
253252
pass
254253

@@ -282,8 +281,8 @@ def test_tarball(py_version):
282281
Test that the tarball can be unpacked and installed, and that sympy
283282
imports in the install.
284283
"""
285-
if py_version not in {'2.7', '3.5', '3.6', '3.7'}: # TODO: Add win32
286-
raise ValueError("release must be one of 2.7, 3.5, 3.6, or 3.7 not %s" % py_version)
284+
if py_version not in {'3.5', '3.6', '3.7', '3.8'}: # TODO: Add win32
285+
raise ValueError("release must be one of 3.5, 3.6, 3.7 or 3.8 not %s" % py_version)
287286

288287

289288
with run_in_conda_env(['python=%s' % py_version], 'test-install-%s' % py_version):
@@ -300,8 +299,8 @@ def test_wheel(py_version):
300299
"""
301300
Test that the wheel can be installed, and that sympy imports in the install.
302301
"""
303-
if py_version not in {'2.7', '3.4', '3.5', '3.6', '3.7'}: # TODO: Add win32
304-
raise ValueError("release must be one of 2.7, 3.4, 3.5, 3.6, or 3.7 not %s" % py_version)
302+
if py_version not in {'3.5', '3.6', '3.7', '3.8'}: # TODO: Add win32
303+
raise ValueError("release must be one of 3.5, 3.6, 3.7 or 3.8 not %s" % py_version)
305304

306305

307306
with run_in_conda_env(['python=%s' % py_version], 'test-install-%s' % py_version):
@@ -344,7 +343,7 @@ def get_tarball_name(file):
344343
elif file == 'pdf-orig':
345344
name = "sympy-{version}.pdf"
346345
elif file == 'wheel':
347-
name = 'sympy-{version}-py2.py3-none-any.whl'
346+
name = 'sympy-{version}-py3-none-any.whl'
348347
else:
349348
raise ValueError(file + " is not a recognized argument")
350349

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy