Opened 3 years ago
Closed 3 years ago
#64060 closed defect (fixed)
py27-itsdangerous @2.0.1: SyntaxError: invalid syntax
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | lpsinger (Leo Singer) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | Cc: | cjones051073 (Chris Jones), chrstphrchvz (Christopher Chavez) | |
Port: | py-itsdangerous |
Description
Traceback (most recent call last): File "setup.py", line 3, in <module> setup(name="itsdangerous") File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/__init__.py", line 162, in setup return distutils.core.setup(**attrs) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 124, in setup dist.parse_config_files() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/dist.py", line 702, in parse_config_files ignore_option_errors=ignore_option_errors) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/config.py", line 121, in parse_configuration meta.parse() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/config.py", line 426, in parse section_parser_method(section_options) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/config.py", line 399, in parse_section self[name] = value File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/config.py", line 184, in __setitem__ value = parser(value) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/config.py", line 515, in _parse_version version = self._parse_attr(value, self.package_dir) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/config.py", line 349, in _parse_attr module = import_module(module_name) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_python_py-itsdangerous/py27-itsdangerous/work/itsdangerous-2.0.1/src/itsdangerous/__init__.py", line 1, in <module> from ._json import json File "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_python_py-itsdangerous/py27-itsdangerous/work/itsdangerous-2.0.1/src/itsdangerous/_json.py", line 10 def loads(payload: _t.Union[str, bytes]) -> _t.Any: ^ SyntaxError: invalid syntax
Change History (3)
comment:1 Changed 3 years ago by chrstphrchvz (Christopher Chavez)
comment:2 Changed 3 years ago by chrstphrchvz (Christopher Chavez)
Cc: | chrstphrchvz added |
---|
comment:3 Changed 3 years ago by Chris Jones <jonesc@…>
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Support for Python 2.x and 3.5 was dropped in ItsDangerous 2.0.0.
The syntax error here is due to type annotations for Python ≥ 3.5.