AndreaCensi / contracts

PyContracts is a Python package that allows to declare constraints on function parameters and return values. Contracts can be specified using Python3 annotations, or inside a docstring. PyContracts supports a basic type system, variables binding, arithmetic constraints, and has several specialized contracts and an extension API.
http://andreacensi.github.io/contracts/
Other
398 stars 62 forks source link

1.7.7 release on PyPI doesn't build for Python 3 #44

Closed felixonmars closed 8 years ago

felixonmars commented 8 years ago

setup.py fails with the following error, and the code doesn't seem to be here :/

Traceback (most recent call last):
  File "setup.py", line 35, in <module>
    version = get_version(filename='src/contracts/__init__.py')
  File "setup.py", line 24, in get_version
    with file(filename) as f:
NameError: name 'file' is not defined
AndreaCensi commented 8 years ago

oops - I'm traveling without Python3 access. Could you fix this and send a pull request? Thanks.

felixonmars commented 8 years ago

Thanks for the quick fix. I was trying to fix but didn't see the latest code on GitHub, so I have to open an issue only.

AndreaCensi commented 8 years ago

no problem - it's not really tested but Shippable says Python3 passes.

On Tue, Nov 10, 2015 at 9:50 AM, Felix Yan notifications@github.com wrote:

Thanks for the quick fix. I was trying to fix but didn't see the latest code on GitHub, so I have to open an issue only.

— Reply to this email directly or view it on GitHub https://github.com/AndreaCensi/contracts/issues/44#issuecomment-155439886 .