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 Python 3 w/merge #1021

Closed
wants to merge 20 commits into from
Closed

Upgrade to Python 3 w/merge #1021

wants to merge 20 commits into from

Conversation

mnm364
Copy link
Collaborator

@mnm364 mnm364 commented Sep 11, 2017

#1022

- 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 :-)
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 title Python3 Upgrade to Python 3 w/merge Sep 11, 2017
@mnm364 mnm364 force-pushed the python35_rebase branch 9 times, most recently from 140de83 to f65ac90 Compare September 11, 2017 04:26
@mnm364 mnm364 force-pushed the python35_rebase branch 2 times, most recently from 84aaa3c to 0318437 Compare September 11, 2017 04:43
@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 and removed Not Ready 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
2 participants