Modify ↓
Opened 13 months ago
Closed 13 months ago
#14249 closed defect (fixed)
Make compatible with Trac 1.6 and Python 3
Reported by: | Jun Omae | Owned by: | Jun Omae |
---|---|---|---|
Priority: | normal | Component: | AdvancedTicketWorkflowPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: |
Description
$ ~/venv/trac/1.6/bin/python setup.py test running test WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox. /home/jun66j5/venv/py311/lib/python3.11/site-packages/setuptools/command/test.py:194: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !! ******************************************************************************** Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. ******************************************************************************** !! ir_d = dist.fetch_build_eggs(dist.install_requires) /home/jun66j5/venv/py311/lib/python3.11/site-packages/setuptools/command/test.py:195: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !! ******************************************************************************** Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. ******************************************************************************** !! tr_d = dist.fetch_build_eggs(dist.tests_require or []) /home/jun66j5/venv/py311/lib/python3.11/site-packages/setuptools/command/test.py:196: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !! ******************************************************************************** Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. ******************************************************************************** !! er_d = dist.fetch_build_eggs( running egg_info writing TracAdvancedTicketWorkflow.egg-info/PKG-INFO writing dependency_links to TracAdvancedTicketWorkflow.egg-info/dependency_links.txt writing entry points to TracAdvancedTicketWorkflow.egg-info/entry_points.txt writing requirements to TracAdvancedTicketWorkflow.egg-info/requires.txt writing top-level names to TracAdvancedTicketWorkflow.egg-info/top_level.txt reading manifest file 'TracAdvancedTicketWorkflow.egg-info/SOURCES.txt' adding license file 'COPYING' writing manifest file 'TracAdvancedTicketWorkflow.egg-info/SOURCES.txt' running build_ext Traceback (most recent call last): File "/home/jun66j5/src/advancedticketworkflowplugin/1.2/setup.py", line 26, in <module> setup( File "/home/jun66j5/venv/py311/lib/python3.11/site-packages/setuptools/__init__.py", line 107, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/jun66j5/venv/py311/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File "/home/jun66j5/venv/py311/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands dist.run_commands() File "/home/jun66j5/venv/py311/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/home/jun66j5/venv/py311/lib/python3.11/site-packages/setuptools/dist.py", line 1244, in run_command super().run_command(command) File "/home/jun66j5/venv/py311/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/home/jun66j5/venv/py311/lib/python3.11/site-packages/setuptools/command/test.py", line 224, in run self.run_tests() File "/home/jun66j5/venv/py311/lib/python3.11/site-packages/setuptools/command/test.py", line 227, in run_tests test = unittest.main( ^^^^^^^^^^^^^^ File "/usr/lib/python3.11/unittest/main.py", line 101, in __init__ self.parseArgs(argv) File "/usr/lib/python3.11/unittest/main.py", line 150, in parseArgs self.createTests() File "/usr/lib/python3.11/unittest/main.py", line 161, in createTests self.test = self.testLoader.loadTestsFromNames(self.testNames, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/unittest/loader.py", line 220, in loadTestsFromNames suites = [self.loadTestsFromName(name, module) for name in names] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/unittest/loader.py", line 220, in <listcomp> suites = [self.loadTestsFromName(name, module) for name in names] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/unittest/loader.py", line 205, in loadTestsFromName test = obj() ^^^^^ File "/home/jun66j5/src/advancedticketworkflowplugin/1.2/advancedworkflow/tests/__init__.py", line 6, in test_suite from advancedworkflow.tests import controller File "/home/jun66j5/src/advancedticketworkflowplugin/1.2/advancedworkflow/tests/controller.py", line 14, in <module> import advancedworkflow.controller File "/home/jun66j5/src/advancedticketworkflowplugin/1.2/advancedworkflow/controller.py", line 167 except ResourceNotFound, e: ^^^^^^^^^^^^^^^^^^^ SyntaxError: multiple exception types must be parenthesized
Attachments (0)
Note: See
TracTickets for help on using
tickets.
In 18558: