UWPCE-PythonCert / PythonCertDevel

Development Repo for the Certificate Program
https://uwpce-pythoncert.github.io/PythonCertDevel/index.html
Other
7 stars 15 forks source link

C1 - Mailroom OO Revision #131

Closed natasha-aleksandrova closed 6 years ago

natasha-aleksandrova commented 6 years ago

Please review the revision. Anything else should be added? (or removed?)

PythonCHB commented 6 years ago

In my OO mailroom solution: source/solutions/mailroom/mailroom_oo

I kept everything in one file (plus a test file).

Then, in mailroom_package (in course 2, though it may not be there anymore), I split it up similarily to how you are suggesting:

source/solutions/mailroom/mailroom_pkg

While also adding a bit more to make it a proper package.

I like the idea of having them split up the data management and CLI, but I wonder if we'll have confusion about how to import, and how to run the code.

It may be just fine if they always run it from the dir where the files are -- but be prepared for questions!

natasha-aleksandrova commented 6 years ago

for your main comment; given that they have to import mailroom to test it in lesson 6 (along with all further assignments that unit test), they are doing imports already.

natasha-aleksandrova commented 6 years ago

@PythonCHB thanks for review!

I will work on updates later today.

PythonCHB commented 6 years ago

Yes -- for importing, but we should probably put a bit of guidance in here, too to remind them.

As for building the docs -- it's using Sphinx, which is pretty simple to use (once it's set up...), but you do need to have Sphinx and rtd_theme installed. I think this will do it:

pip install sphinx sphinx_rtd_theme

I suspect PyCharm is doing raw RST rendering, which gets you most of the way, but won't have any of the Sphinx niceties like table of contents, cross referencing, etc.

natasha-aleksandrova commented 6 years ago

@PythonCHB ok I have pushed some updates.

FYI, I tried installing Sphinx and running make html but running into missing dependency errors. I'll see if I can get away with pycharm plugin so I don't get bogged down on this.

PythonCHB commented 6 years ago

I added a touch -- but it looks great -- merging away.

natasha-aleksandrova commented 6 years ago

great adds! thanks!

natasha-aleksandrova commented 6 years ago

Mailroom OO