Skip to content

Commit ca6bb9f

Browse files
Jon Wayne Parrottncoghlan
authored andcommitted
Add News page (#404)
1 parent 8564f7f commit ca6bb9f

3 files changed

Lines changed: 116 additions & 1 deletion

File tree

‎source/conf.py‎

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,35 @@
358358
}
359359

360360

361-
# f this is True, todo and todolist produce output, else they produce nothing.
361+
# If this is True, todo and todolist produce output, else they produce nothing.
362362
# The default is False.
363363

364364
todo_include_todos = True
365+
366+
# Configure the GitHub PR role to point to our project.
367+
368+
pr_role_github_org_and_project = 'pypa/python-packaging-user-guide'
369+
370+
#
371+
# Custom plugin code below.
372+
#
373+
374+
375+
def setup(app):
376+
app.add_config_value('pr_role_github_org_and_project', None, 'html')
377+
app.add_role('pr', pr_role)
378+
379+
380+
def pr_role(name, rawtext, text, lineno, inliner, options={}, content=[]):
381+
"""Transforms ':pr:`number`'' to a hyperlink to the referenced pull request
382+
on GitHub."""
383+
from docutils import nodes
384+
385+
app = inliner.document.settings.env
386+
project = app.config.pr_role_github_org_and_project
387+
title = '#{}'.format(text)
388+
389+
uri = 'https://github.com/{}/pull/{}'.format(project, text)
390+
rn = nodes.reference(
391+
title, title, internal=False, refuri=uri, classes=['pr'])
392+
return [rn], []

‎source/index.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Python Packaging User Guide
1414
glossary
1515
support
1616
contribute
17+
news
1718

1819
Welcome to the *Python Packaging User Guide*, a collection of tutorials and
1920
references to help you distribute and install Python packages with modern

‎source/news.rst‎

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
News
2+
====
3+
4+
November 2017
5+
-------------
6+
7+
- Introduced a new dependency management tutorial based on Pipenv. (:pr:`402`)
8+
- Updated the *Single Sourcing Package Version* tutorial to reflect pip's current
9+
strategy. (:pr:`400`)
10+
- Added documentation about the ``py_modules`` argument to ``setup``. (:pr:`398`)
11+
- Simplified the wording for the ``manifest.in`` section. (:pr:`395`)
12+
13+
October 2017
14+
------------
15+
16+
- Added a specification for the ``entry_points.txt`` file. (:pr:`398`)
17+
- Created a new guide for managing packages using ``pip`` and ``virtualenv``. (:pr:`385`)
18+
- Split the specifications page into multiple pages. (:pr:`386`)
19+
20+
September 2017
21+
--------------
22+
23+
- Encouraged using ``readme_renderer`` to validate ``README.rst``. (:pr:`379`)
24+
- Recommended using the `--user-base` option. (:pr:`374`)
25+
26+
August 2017
27+
-----------
28+
29+
- Added a new, experimental tutorial on installing packages using ``Pipenv``. (:pr:`369`)
30+
- Added a new guide on how to use ``TestPyPI``. (:pr:`366`)
31+
- Added ``pypi.org`` as a term. (:pr:`365`)
32+
33+
July 2017
34+
---------
35+
36+
- Added ``flit`` to the key projects list. (:pr:`358`)
37+
- Added ``enscons`` to the list of key projects. (:pr:`357`)
38+
- Updated this guide's ``readme`` with instructions on how to build the guide locally. (:pr:`356`)
39+
- Made the new ``TestPyPI`` URL more visible, adding note to homepage about pypi.org. (:pr:`354`)
40+
- Added a note about the removal of the explicit registration API. (:pr:`347`)
41+
42+
June 2017
43+
---------
44+
45+
- Added a document on migrating uploads to ``PyPI.org``. (:pr:`339`)
46+
- Added documentation for ``python_requires``. (:pr:`338`)
47+
- Added a note about PyPI migration in the *Tool Recommendations* tutorial. (:pr:`335`)
48+
- Added a note that ``manifest.in`` does not affect wheels. (:pr:`332`)
49+
- Added a license section to the distributing guide. (:pr:`331`)
50+
- Expanded the section on the ``name`` argument. (:pr:`329`)
51+
- Adjusted the landing page. (:pr:`327`, :pr:`326`, :pr:`324`)
52+
- Updated to Sphinx 1.6.2. (:pr:`323`)
53+
- Switched to the PyPA theme. (:pr:`305`)
54+
- Re-organized the documentation into the new structure. (:pr:`318`)
55+
56+
May 2017
57+
--------
58+
59+
- Added documentation for the ``Description-Content-Type`` field. (:pr:`258`)
60+
- Added contributor and style guide. (:pr:`307`)
61+
- Documented ``pip`` and ``easy_install``'s differences for per-project indexes. (:pr:`233`)
62+
63+
April 2017
64+
----------
65+
66+
- Added travis configuration for testing pull requests. (:pr:`300`)
67+
- Mentioned the requirement of the ``wheel`` package for creating wheels (:pr:`299`)
68+
- Removed the ``twine register`` reference in the *Distributing Packages* tutorial. (:pr:`271`)
69+
- Added a topic on plugin discovery. (:pr:`294`, :pr:`296`)
70+
- Added a topic on namespace packages. (:pr:`290`)
71+
- Added documentation explaining prominently how to install ``pip`` in ``/usr/local``. (:pr:`230`)
72+
- Updated development mode documentation to mention that order of local packages matters. (:pr:`208`)
73+
- Convert readthedocs link for their ``.org`` -> ``.io`` migration for hosted projects (:pr:`239`)
74+
- Swaped order of ``setup.py`` arguments for the upload command, as order is significant. (:pr:`260`)
75+
- Explained how to install from unsupported sources using a helper application. (:pr:`289`)
76+
77+
78+
March 2017
79+
----------
80+
81+
- Covered ``manylinux1`` in *Platform Wheels*. (:pr:`283`)
82+
83+
February 2017
84+
-------------
85+
86+
- Added :pep:`518`. (:pr:`281`)

0 commit comments

Comments
 (0)