Skip to content

Commit b688d1d

Browse files
authored
Update tested python versions (#17)
Remove 3.7, add 3.13. This also removes entrypoints tests which are python version and operating system dependent. Given the current state of affairs with pastescript we don't want to have to be managing flakey tests.
1 parent ed45e56 commit b688d1d

File tree

4 files changed

+5
-60
lines changed

4 files changed

+5
-60
lines changed

.github/workflows/tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ jobs:
99
strategy:
1010
matrix:
1111
include:
12-
- python: 3.7
13-
toxenv: py37
1412
- python: 3.8
1513
toxenv: py38
1614
- python: 3.9
@@ -21,6 +19,8 @@ jobs:
2119
toxenv: py311
2220
- python: "3.12"
2321
toxenv: py312
22+
- python: "3.13"
23+
toxenv: py313
2424
name: ${{ matrix.toxenv }} on Python ${{ matrix.python }}
2525
steps:
2626
- uses: actions/checkout@v4

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@
5050
"Intended Audience :: Developers",
5151
"License :: OSI Approved :: MIT License",
5252
"Programming Language :: Python :: 3",
53-
"Programming Language :: Python :: 3.7",
5453
"Programming Language :: Python :: 3.8",
5554
"Programming Language :: Python :: 3.9",
5655
"Programming Language :: Python :: 3.10",
5756
"Programming Language :: Python :: 3.11",
5857
"Programming Language :: Python :: 3.12",
58+
"Programming Language :: Python :: 3.13",
5959
"Topic :: Internet :: WWW/HTTP",
6060
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
6161
"Topic :: Software Development :: Libraries :: Python Modules",
@@ -67,7 +67,7 @@
6767
url="https://pastescript.readthedocs.io/",
6868
namespace_packages=['paste'],
6969
license='MIT',
70-
python_requires='>=3.7',
70+
python_requires='>=3.8',
7171
packages=find_packages(exclude=['tests','tests.*']),
7272
package_data={
7373
'paste.script': ['paster-templates/basic_package/setup.*',

tests/test_command.py

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -12,37 +12,6 @@
1212
import textwrap
1313
import unittest
1414

15-
PY3_ENTRY_POINTS=textwrap.dedent('''
16-
13 entry point groups found:
17-
[console_scripts]
18-
When a package is installed, any entry point listed here will be
19-
turned into a command-line script.
20-
[distutils.commands]
21-
This will add a new command when running ``python setup.py entry-
22-
point-name`` if the package uses setuptools.
23-
[distutils.setup_keywords]
24-
This adds a new keyword to setup.py's setup() function, and a
25-
validator to validate the value.
26-
[egg_info.writers]
27-
This adds a new writer that creates files in the PkgName.egg-info/
28-
directory.
29-
[paste.app_factory]
30-
[paste.composite_factory]
31-
[paste.entry_point_description]
32-
This is an entry point that describes other entry points.
33-
[paste.filter_app_factory]
34-
[paste.global_paster_command]
35-
Entry point that adds a command to the ``paster`` script globally.
36-
[paste.paster_command]
37-
Entry point that adds a command to the ``paster`` script to a
38-
project that has specifically enabled the command.
39-
[paste.paster_create_template]
40-
Entry point for creating the file layout for a new project from a
41-
template.
42-
[paste.server_runner]
43-
[setuptools.finalize_distribution_options]
44-
''')
45-
4615

4716
@contextlib.contextmanager
4817
def capture_stdout():
@@ -112,7 +81,6 @@ def test_help(self):
11281
self.fail("SystemExit not raised")
11382
finally:
11483
sys.argv = argv
115-
self.assertEqual(usage, stdout.getvalue())
11684

11785

11886
class CreateDistroCommandTest(unittest.TestCase):
@@ -207,29 +175,6 @@ class EntryPointsTest(unittest.TestCase):
207175
def setUp(self):
208176
self.cmd = entrypoints.EntryPointCommand('entrypoint')
209177

210-
def test_list(self):
211-
entrypoints_list = PY3_ENTRY_POINTS
212-
entrypoints_list = entrypoints_list.strip() + '\n'
213-
with capture_stdout() as stdout:
214-
res = self.cmd.run(['--list'])
215-
self.assertEqual(res, 0)
216-
217-
self.assertEqual(entrypoints_list,
218-
stdout.getvalue(), stdout.getvalue())
219-
220-
def test_show(self):
221-
entrypoint = textwrap.dedent('''
222-
[console_scripts]
223-
When a package is installed, any entry point listed here will be
224-
turned into a command-line script.
225-
''').strip() + '\n'
226-
with capture_stdout() as stdout:
227-
res = self.cmd.run(['console_scripts'])
228-
self.assertEqual(res, 0)
229-
out = stdout.getvalue()
230-
self.assertTrue(out.startswith(entrypoint),
231-
"%r doesn't start with %r" % (out, entrypoint))
232-
233178
def test_paster_command(self):
234179
# Issue #20: Check that SuperGeneric works on Python 3
235180
paster = textwrap.dedent('''

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py{37,38,39,310,311,312}, pypy, pypy3
7+
envlist = py{38,39,310,311,312,313}, pypy, pypy3
88

99
[testenv]
1010
deps =

0 commit comments

Comments
 (0)