Skip to content

Make it possible to use YAML data in lessons + 3.7/mac/Windows CI - #6

Merged
encukou merged 6 commits into
pyvec:masterfrom
encukou:tasks
Feb 12, 2019
Merged

encukou merged 6 commits into
pyvec:masterfrom
encukou:tasks

Conversation

@encukou

@encukou encukou commented Feb 8, 2019

Copy link
Copy Markdown
Member

With this, we can keep structured info about tasks in YAML, but render them as a regular lesson.

This means we can use courseware task definitions and stick them in HTML.

Of course, in the future, structured data on tasks should be added to the API.

I'll follow up with a pyladies/naucse.python.cz PR for testing.

encukou added a commit to encukou/naucse.python.cz that referenced this pull request Feb 8, 2019
Takes the task definitions in YAML/Markdown from the Courseware
(https://github.com/messa/pyladies-courseware) and renders
them in HTML.

Further homework can be added similarly.

---
WIP: Requires naucse_render 1.1+ with merged pull request:
    pyvec/naucse_render#6
(Should be merged & released before merging this.)

Run "pipenv install" to update.
@encukou

encukou commented Feb 8, 2019

Copy link
Copy Markdown
Member Author

PyLadiesCZ/naucse.python.cz#21 shows the intended usage.

With this, we can keep structured info about tasks in YAML, but
render them as a regular lesson.
@encukou encukou changed the title Make it possible to use data from YAML to lessons Make it possible to use YAML data in lessons + 3.7/mac/Windows CI Feb 8, 2019
@encukou

encukou commented Feb 8, 2019

Copy link
Copy Markdown
Member Author

I've added two commits that:

  • add Travis CI runs for Python 3.7, macOS and Windows
  • make all paths in the output go through PurePosixPath (so they have the / path separator), so output is the same on all the platforms.

I put them in the same PR because they'd conflict if I rebased them onto master. But if they're not good, the first two commits can be merged separately.

hroncok
hroncok previously approved these changes Feb 11, 2019

@hroncok hroncok left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is time critical, ship at will and answer my questions later ;)

Comment thread .travis.yml Resolved
Comment thread .travis.yml Resolved
Comment thread .travis.yml Resolved
Comment thread naucse_render/encode.py Resolved
Comment thread naucse_render/encode.py Resolved
@encukou

encukou commented Feb 12, 2019

Copy link
Copy Markdown
Member Author

Thanks for the review!
If you have time for another check it would be great, otherwise I'll merge today.

hroncok
hroncok previously approved these changes Feb 12, 2019

@hroncok hroncok left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@encukou
encukou merged commit 7bfb126 into pyvec:master Feb 12, 2019
@encukou
encukou deleted the tasks branch February 12, 2019 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants