| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,6 +25,16 @@ html { box-sizing: border-box; } | |||
| 25 | 25 | #{{id}} .sectiondivider { color: {{ bg }}; } | |
| 26 | 26 | {% endfor %} | |
| 27 | 27 | ||
| 28 | + {% for node in site.practicalities %} | ||
| 29 | + {% capture id %}{{ node.id | remove:'/' | downcase }}{% endcapture %} | ||
| 30 | + {% capture bg %}{% if site.colors[node.bg] %}{{ site.colors[node.bg] }}{% else %}{{ node.bg }}{% endif %}{% endcapture %} | ||
| 31 | + {% capture fg %}{% if site.colors[node.color] %}{{ site.colors[node.color] }}{% else %}{{ node.color }}{% endif %}{% endcapture %} | ||
| 32 | + nav .p-{{id}} { border-color: {{ bg }}; } | ||
| 33 | + #{{id}} { background-color: {{ bg }} !important; color: {{ fg }}; } | ||
| 34 | + #{{id}} a { color: {{ fg }}; } | ||
| 35 | + #{{id}} .sectiondivider { color: {{ bg }}; } | ||
| 36 | + {% endfor %} | ||
| 37 | + | ||
| 28 | 38 | ||
| 29 | 39 | /* ----- code, syntax highlighting, etc ----- */ | |
| 30 | 40 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,16 +1,22 @@ | |||
| 1 | 1 | --- | |
| 2 | + bg: '#4da45e' | ||
| 3 | + color: white | ||
| 4 | + title: practicalities | ||
| 5 | + fa-icon: pencil | ||
| 6 | + id: bar | ||
| 2 | 7 | --- | |
| 3 | 8 | ||
| 4 | - Add note here to explain that this does _not_ prevent _nor_ discourage library | ||
| 5 | - author to release 2 version of their software one Python 3 only and the other | ||
| 6 | - python 2. | ||
| 9 | + We do not discourage authors to release software on Python 2. While this guide | ||
| 10 | + is mostly written with the assumption that software are going to stop Python 2 | ||
| 11 | + support, it does perfectly apply to a package that wish to not support Python 3, | ||
| 12 | + or is stopping support for any minor version. | ||
| 7 | 13 | ||
| 8 | 14 | ||
| 9 | 15 | This page gather information and links to resources allowing to release a | |
| 10 | 16 | library that stop supporting an older version of Python without causing too | |
| 11 | 17 | much disruption for users who haven't upgraded to this new version. | |
| 12 | 18 | ||
| 13 | - Wether you are a user, or a developer, being aware of the issue listed here, at | ||
| 19 | + Whether you are a user, or a developer, being aware of the issue listed here, at | ||
| 14 | 20 | least the main points should ease lots of the pain. | |
| 15 | 21 | ||
| 16 | 22 | # Too long, did not read: | |
@@ -20,6 +26,7 @@ least the main points should ease lots of the pain. | |||
| 20 | 26 | - As maintainer use `setup(..., python_requires='>=3.4')` new option. | |
| 21 | 27 | - do use `pip install [-e] .` and do **not** invoke `setup.py` directly. | |
| 22 | 28 | - **Fail** early at **install time** if on Python 2. | |
| 29 | + - We are giving a talk at PyCon 2017 (likely recorded), add link here. | ||
| 23 | 30 | ||
| 24 | 31 | ## The problem | |
| 25 | 32 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,9 +15,10 @@ encountered both by developers and users during this process. | |||
| 15 | 15 | We are thus collecting a list of things to be aware of for when transitioning that | |
| 16 | 16 | are less obvious. For example : as a developer, how to make sure that | |
| 17 | 17 | your package manager like pip does not upgrade your libraries to incompatible | |
| 18 | - versions on Python 2. Check [our | ||
| 19 | - repository](https://github.com/python3statement/python3statement.github.io) for | ||
| 20 | - more information. | ||
| 18 | + versions on Python 2. See the [Practicality Page](/practicalities/) for | ||
| 19 | + informations and Check [our | ||
| 20 | + repository](https://github.com/python3statement/python3statement.github.io) to | ||
| 21 | + contribute. | ||
| 21 | 22 | ||
| 22 | 23 | ||
| 23 | 24 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,9 +19,17 @@ | |||
| 19 | 19 | <body> | |
| 20 | 20 | <div id="main"> | |
| 21 | 21 | ||
| 22 | + <nav><ul> | ||
| 23 | + {% for node in site.sections %} | ||
| 24 | + {% capture id %}{{ node.id | remove:'/' | downcase }}{% endcapture %} | ||
| 25 | + <li class="p-{{id}}"><a href="../#{{id}}">{{node.title}}</a></li> | ||
| 26 | + {% endfor %} | ||
| 27 | + </ul></nav> | ||
| 28 | + | ||
| 22 | 29 | ||
| 23 | 30 | {% for page in site.practicalities %} | |
| 24 | - <div class="section"> | ||
| 31 | + {% capture id %}{{ page.id | remove:'/' | downcase }}{% endcapture %} | ||
| 32 | + <div id="{{id}}" class="section p-{{id}}"> | ||
| 25 | 33 | ||
| 26 | 34 | <div class="container {{ page.style }}"> | |
| 27 | 35 | {{ page.content }} | |
| Back | FazBrowse Home | New Git URL |
0 commit comments