Skip to content
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
wants to merge 17 commits into from
Closed

Upgrade to Python3 #1014

wants to merge 17 commits into from

Conversation

mnm364
Copy link
Collaborator

@mnm364 mnm364 commented Aug 19, 2017

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.

- 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 mnm364 changed the title Python35 Upgrade to Python3 Aug 19, 2017
@mnm364 mnm364 force-pushed the python35 branch 2 times, most recently from cfa7af2 to 852b9de Compare August 19, 2017 18:29
@mnm364 mnm364 removed the request for review from noahpresler August 19, 2017 18:30
@mnm364 mnm364 assigned alexahn917 and unassigned hughhan1 Aug 19, 2017
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 mnm364 changed the base branch from master to parsing/tests_andmore August 20, 2017 18:11
@mnm364 mnm364 force-pushed the parsing/tests_andmore branch 2 times, most recently from 27e0a2c to d8d5c99 Compare September 3, 2017 08:22
@mnm364 mnm364 closed this Sep 18, 2017
@yesterd3v yesterd3v reopened this Jun 19, 2021
@yesterd3v 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
@yesterd3v yesterd3v closed this Jun 27, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants