Merge lp:~cjwatson/storm/require-py38 into lp:storm

Proposed by Colin Watson
Status: Needs review
Proposed branch: lp:~cjwatson/storm/require-py38
Merge into: lp:storm
Prerequisite: lp:~cjwatson/storm/pyupgrade
Diff against target: 81 lines (+3/-16)
4 files modified
NEWS (+1/-1)
setup.py (+1/-4)
storm/tests/schema/patch.py (+1/-4)
tox.ini (+0/-7)
To merge this branch: bzr merge lp:~cjwatson/storm/require-py38
Reviewer Review Type Date Requested Status
Mitch Burton Approve
Review via email: mp+462343@code.launchpad.net

Commit message

Remove support for Python < 3.8.

Description of the change

I don't think anyone needs this any more, and it allows simplifying `tox.ini` a bit.

(I guess you might want to double-check with the Landscape folks. I think I remember that they were on at least focal now ...)

To post a comment you must log in.
Revision history for this message
Mitch Burton (mitchburton) wrote :

Landscape is fine with dropping < 3.8. I'll let Launchpad weigh in for final review but consider this a +1 from me.

review: Approve
Revision history for this message
Colin Watson (cjwatson) wrote :

It just occurred to me that lp-signing uses Storm and is still deployed on bionic according to its Mojo spec, so Python 3.6. Maybe we should retain 3.6 support for now? That would still allow dropping the awkward `tox.ini` stuff for 3.5, and there's otherwise no apparent simplification to be gained by dropping 3.6 (other than speeding up the test suite).

Unmerged revisions

586. By Colin Watson

Remove support for Python < 3.8.

I don't think anyone needs this any more, and it allows simplifying
`tox.ini` a bit.

585. By Colin Watson

Run pyupgrade.

Generated using `find storm -name \*.py | xargs pyupgrade --py3-plus
--keep-percent-format`.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'NEWS'
--- NEWS 2024-03-04 16:33:02 +0000
+++ NEWS 2024-03-13 17:25:34 +0000
@@ -10,7 +10,7 @@
10API changes10API changes
11-----------11-----------
1212
13- Remove support for Python 2.13- Remove support for Python < 3.8 (including Python 2).
14- Remove the storm.compat module.14- Remove the storm.compat module.
15- Deprecate storm.sqlobject.AutoUnicodeVariable and15- Deprecate storm.sqlobject.AutoUnicodeVariable and
16 storm.sqlobject.AutoUnicode.16 storm.sqlobject.AutoUnicode.
1717
=== modified file 'setup.py'
--- setup.py 2024-03-04 16:33:02 +0000
+++ setup.py 2024-03-13 17:25:34 +0000
@@ -63,9 +63,6 @@
63 "Lesser General Public License (LGPL)"),63 "Lesser General Public License (LGPL)"),
64 "Programming Language :: Python",64 "Programming Language :: Python",
65 "Programming Language :: Python :: 3",65 "Programming Language :: Python :: 3",
66 "Programming Language :: Python :: 3.5",
67 "Programming Language :: Python :: 3.6",
68 "Programming Language :: Python :: 3.7",
69 "Programming Language :: Python :: 3.8",66 "Programming Language :: Python :: 3.8",
70 "Programming Language :: Python :: 3.9",67 "Programming Language :: Python :: 3.9",
71 "Programming Language :: Python :: 3.10",68 "Programming Language :: Python :: 3.10",
@@ -81,7 +78,7 @@
81 # warning) by distutils.78 # warning) by distutils.
82 include_package_data=True,79 include_package_data=True,
83 zip_safe=False,80 zip_safe=False,
84 python_requires=">=3.5",81 python_requires=">=3.8",
85 install_requires=["packaging >= 14.1"],82 install_requires=["packaging >= 14.1"],
86 test_suite="storm.tests.find_tests",83 test_suite="storm.tests.find_tests",
87 tests_require=tests_require,84 tests_require=tests_require,
8885
=== modified file 'storm/tests/schema/patch.py'
--- storm/tests/schema/patch.py 2024-03-13 17:25:34 +0000
+++ storm/tests/schema/patch.py 2024-03-13 17:25:34 +0000
@@ -352,10 +352,7 @@
352 self.patch_applier.apply_all()352 self.patch_applier.apply_all()
353 except BadPatchError as e:353 except BadPatchError as e:
354 self.assertTrue("mypackage/patch_999.py" in str(e))354 self.assertTrue("mypackage/patch_999.py" in str(e))
355 if sys.version_info >= (3, 3):355 self.assertTrue("takes 0 positional arguments" in str(e))
356 self.assertTrue("takes 0 positional arguments" in str(e))
357 else:
358 self.assertTrue("takes no arguments" in str(e))
359 self.assertTrue("TypeError" in str(e))356 self.assertTrue("TypeError" in str(e))
360 else:357 else:
361 self.fail("BadPatchError not raised")358 self.fail("BadPatchError not raised")
362359
=== modified file 'tox.ini'
--- tox.ini 2024-03-04 16:33:02 +0000
+++ tox.ini 2024-03-13 17:25:34 +0000
@@ -1,8 +1,5 @@
1[tox]1[tox]
2envlist =2envlist =
3 py35-{cextensions,nocextensions}
4 py36-{cextensions,nocextensions}
5 py37-{cextensions,nocextensions}
6 py38-{cextensions,nocextensions}3 py38-{cextensions,nocextensions}
7 py39-{cextensions,nocextensions}4 py39-{cextensions,nocextensions}
8 py310-{cextensions,nocextensions}5 py310-{cextensions,nocextensions}
@@ -11,8 +8,6 @@
11 docs8 docs
129
13[testenv]10[testenv]
14download =
15 py35: true
16deps =11deps =
17 .[test]12 .[test]
18passenv =13passenv =
@@ -21,8 +16,6 @@
21setenv =16setenv =
22 cextensions: STORM_CEXTENSIONS = 117 cextensions: STORM_CEXTENSIONS = 1
23 nocextensions: STORM_CEXTENSIONS = 018 nocextensions: STORM_CEXTENSIONS = 0
24 py35: VIRTUALENV_DOWNLOAD = 1
25 py35: VIRTUALENV_PIP = 20.3.4
26commands =19commands =
27 python dev/test {posargs}20 python dev/test {posargs}
2821

Subscribers

People subscribed via source and target branches

to status/vote changes: