-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Require typing in test-requirements.txt #893
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
Conversation
Mypy depends on its own local fork of typing, it does not work with python3.5's version yet. |
Also we need to be able to say "use these requirements only if python < 3.5" (the infrastructure will be useful for enum too once we use that) |
Also the |
@o11c thanks for the comments! What are the right instructions for running tests, then? Following what's in the README, on my Ubuntu 14.04 Trusty machine, in a clean environment I get
With this change the tests pass. (My python3 is v3.4.3.) |
PYTHONPATH=`pwd`/lib-typing/3.2:`pwd` python3 tests.py |
@kirbyfan64 thanks, that works! I'd love to adjust things so that the README gives instructions that will work totally smoothly. That particular command line, with PYTHONPATH, looks kind of messy and ideally I'd like to find something cleaner than that. Looking at the Travis build instructions (in @o11c , @JukkaL , is that how you'd run tests in a fresh environment, or would you recommend something else? |
We can probably wait until we have the new test driver in. Alternatively, maybe we should tweak @o11c, does the new test driver set up the environment correctly so that there is no need to tweak |
Yes, since |
It actually sets it to |
Now we have a new test runner written by @o11c ( @gnprice Let me know if you still think that this is relevant. The longer-term goal would to migrate mypy to use |
The instructions in the README WFM now out of the box. Thanks! |
No description provided.