-
Notifications
You must be signed in to change notification settings - Fork 178
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
Upgrade to Python3 #1014
Closed
Closed
Upgrade to Python3 #1014
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Created test suite for parsing module #986 -> tests Validator -> tests Digestor -> tests utils - Updated schools mappers to use new directory structure -> looks for courses.py, evals.py, textbooks.py -> Moved school settings to school local config files - Restructured logging infrastructure -> Use logging config yaml files instead of Python dicts -> Removed custom loggers written in parsing module -> Use pythong logging module -> load loggers in __init__.py -> Incorporated updates into makeschool command -> TODO - email notification logger on parsing error #552 - Minor API changes to parsing module -> pass year_and_terms_filter dictionary to start method of parse -> Load sensitive.py information inside __new__ -> moved and refactored much of extractor into utils -> Parsing command arguments use composable actions -> Iterated on parsing inline documentation -> removed yet iterated on extract_info - (partially) added uoft to parsing infrastructure - Added sensitive.py to .gitignore - fixed absolute file import errors to pass doc build ++ many more things that I dont want to enumerate :-)
mnm364
force-pushed
the
python35
branch
2 times, most recently
from
August 19, 2017 18:29
cfa7af2
to
852b9de
Compare
Version Python 3.5 The heavy lifting was done by: `2to3 -w -n -f all -f idiom .` Then some fixes were made to coerce float/into conversion. As well as updated all packages (except Django) to latest version. NOTE: some packages were removed and replaced if they did not support Py3 -> due to pip not resolving all dependencies some pip installs were added manually to travisCI Python3 initializes django modules in different order, issues arose in school_mappers in relation to importing parsers. Thus parser import was moved into the ingest command.
In Python3 all classes are __new style__ classes
mnm364
force-pushed
the
parsing/tests_andmore
branch
from
August 20, 2017 18:34
8f74456
to
45f5481
Compare
mnm364
force-pushed
the
parsing/tests_andmore
branch
2 times, most recently
from
September 3, 2017 08:22
27e0a2c
to
d8d5c99
Compare
yesterd3v
added
Move to New Repo
Moving to new repo in June 2021 since this repository is deprecated
python
Pull requests that update Python code
labels
Jun 19, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Move to New Repo
Moving to new repo in June 2021 since this repository is deprecated
python
Pull requests that update Python code
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Version Python 3.5
The heavy lifting was done by:
2to3 -w -n -f all -f idioms .
Then some fixes were made to coerce float/into conversion.
As well as updated all packages (except Django) to latest version.
NOTE: some packages were removed and replaced if they did not support Py3
-> SciPy and Numpy are capatilized in order to come before sckitlearn
FIXME
@alexahn917 there is a conflict with string/bytes in a numpy operation in the vectorizer. I couldn't easily fix so Im leaving it to you. Let me know if you wanna talk.
@alexahn917 the update to Numpy 1.13.1 created a minor error with some de-pickling. We shouldnt have any static pickle files. On deploy we can pickle what we need so its cached instead of hardcoding pickle objects.
For now I
return 0
on the problem function (see FIXME in code)Testing
Test coverage is not exhaustive and this version should be internally poked and prodded before release. From what I can see, however, everything I have tested works.