Skip to content

Run Structure and Behavior tests in Python 3 #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 11, 2017

Conversation

stasm
Copy link
Contributor

@stasm stasm commented Oct 11, 2017

Fix #21.

setup.py Outdated
}
)
},
install_requires=['six']
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we actually need this if it's only used for testing?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use tests_require, I think.

tox.ini Outdated
@@ -1,11 +1,12 @@
[tox]
envlist = py27, py27-cl, py36
envlist = py27, py27-cl, py35
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed this to Python 3.5 because it's the default in Ubuntu 16.04 LTS onwards. The upcoming 17.10 will change to 3.6 but I think we should try to be compatible with the lowest 3.x version possible.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There doesn't seem to be any good way to install 3.5 on macs.
Also, I don't think we should drop 3.6 completely.

Practically, requiring both will make one platform fail on macs, and the other on linux, and both test on travis. Good enough?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes :)

@stasm stasm requested a review from Pike October 11, 2017 08:06
setup.py Outdated
}
)
},
install_requires=['six']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use tests_require, I think.

tox.ini Outdated
@@ -1,11 +1,12 @@
[tox]
envlist = py27, py27-cl, py36
envlist = py27, py27-cl, py35
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There doesn't seem to be any good way to install 3.5 on macs.
Also, I don't think we should drop 3.6 completely.

Practically, requiring both will make one platform fail on macs, and the other on linux, and both test on travis. Good enough?

@stasm
Copy link
Contributor Author

stasm commented Oct 11, 2017

Looking at https://travis-ci.org/projectfluent/python-fluent/builds/286440149, Travis ran 2.7, 2.7 with compare-locales, 3.5 and 3.7 (as nightly).

@Pike
Copy link
Contributor

Pike commented Oct 11, 2017

Looking at https://travis-ci.org/projectfluent/python-fluent/builds/286440149, Travis ran 2.7, 2.7 with compare-locales, 3.5 and 3.7 (as nightly).

I think we need to add 3.6 to .travis.yml. It's weird that the 3.5 python picks up the 3.6 test env in tox-travis.

@stasm
Copy link
Contributor Author

stasm commented Oct 11, 2017

Yup, that fixed it, thanks. https://travis-ci.org/projectfluent/python-fluent/builds/286449582

@stasm stasm merged commit 48b0006 into projectfluent:master Oct 11, 2017
@stasm stasm deleted the six branch October 11, 2017 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants