Skip to content

Support for python 2.5 #38

@pyhedgehog

Description

@pyhedgehog

Setup (and pypi metadata) insists that certifi package supports python 2.5:

'Programming Language :: Python :: 2.5',

But in same file it uses construction that is incompatible:

with open('certifi/__init__.py', 'r') as f:

Result is:

C:\>py -2.5 -m pip install --insecure requests==0.10.0
Downloading/unpacking requests==0.10.0
  Downloading requests-0.10.0.tar.gz (62kB): 62kB downloaded
  Running setup.py egg_info for package requests
Downloading/unpacking certifi>=0.0.4 (from requests==0.10.0)
  Downloading certifi-2016.2.28.tar.gz (364kB): 364kB downloaded
  Running setup.py egg_info for package certifi
    c:\users\XXXX\appdata\local\temp\pip-build-XXXX\certifi\setup.py:10: Warning: 'with' will become a reserved keyword in Python 2.6
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "c:\users\XXXX\appdata\local\temp\pip-build-XXXX\certifi\setup.py", line 10
        with open('certifi/__init__.py', 'r') as f:
                ^
    SyntaxError: invalid syntax
    Complete output from command python setup.py egg_info:
    c:\users\XXXX\appdata\local\temp\pip-build-XXXX\certifi\setup.py:10: Warning: 'with' will become a reserved keyword in Python 2.6

Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "c:\users\XXXX\appdata\local\temp\pip-build-XXXX\certifi\setup.py", line 10

    with open('certifi/__init__.py', 'r') as f:

            ^

SyntaxError: invalid syntax

----------------------------------------
Command python setup.py egg_info failed with error code 1 in c:\users\XXXX\appdata\local\temp\pip-build-XXXX\certifi
Storing complete log in c:\users\XXXX\appdata\local\temp\tmpdt40ir

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions