Skip to content

Commit d4a67ec

Browse files
committed
Convert release notes to our documentation
Also allow the documentation to successfully build by stubbing out docs/source/narrative/index
1 parent 623086b commit d4a67ec

28 files changed

+598
-546
lines changed

HISTORY.rst

Lines changed: 0 additions & 498 deletions
This file was deleted.

MANIFEST.in

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
include README.rst
22
include LICENSE
3-
include HISTORY.rst
4-
include LATEST_VERSION_NOTES.rst
53
include AUTHORS.rst
64
include CONTRIBUTING.rst
75
include tox.ini
86
include report_issue.py
97
prune *.pyc
10-
recursive-include docs *.rst *.py Makefile
8+
recursive-include docs *.rst *.py
119
recursive-include tests *.py *.json
1210
recursive-include tests/json *
1311
recursive-include tests/unit/json *

docs/source/index.rst

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
============
2-
github3.py
3-
============
1+
===================================================
2+
github3.py: A Library for Using GitHub's REST API
3+
===================================================
44

55
Release v\ |version|.
66

@@ -54,15 +54,24 @@ There are several examples of different aspects of using github3.py
5454

5555

5656
Installation
57-
------------
57+
============
5858

5959
.. code-block:: console
6060
6161
$ pip install github3.py
6262
6363
64+
User Guide
65+
==========
66+
67+
.. toctree::
68+
:maxdepth: 1
69+
70+
narrative/index
71+
72+
6473
API Reference Documentation
65-
---------------------------
74+
===========================
6675

6776
.. toctree::
6877
:maxdepth: 1
@@ -71,14 +80,14 @@ API Reference Documentation
7180

7281

7382
Contributing
74-
------------
83+
============
7584

7685
All developlment happens on GitHub_. Please remember to add yourself to the
7786
list of contributors in AUTHORS.rst, especially if you're going to be
7887
working on the list below.
7988

8089
Contributor Friendly Work
81-
~~~~~~~~~~~~~~~~~~~~~~~~~
90+
-------------------------
8291

8392
In order of importance:
8493

@@ -96,7 +105,7 @@ Otherwise, feel free to example the list of issues where we would like help_
96105
and feel free to take one.
97106

98107
Running the Unittests
99-
~~~~~~~~~~~~~~~~~~~~~
108+
---------------------
100109

101110
The tests are generally run using tox. Tox can be installed lke so
102111

@@ -142,26 +151,23 @@ more verbose output by doing
142151

143152

144153
Contact
145-
-------
154+
=======
146155

147156
- Twitter: `@sigmavirus24`_
148157
- Private email: graffatcolmingov [at] gmail
149158

150159
.. _@sigmavirus24: https://twitter.com/sigmavirus24
151160

152-
Latest Version's Changes
153-
------------------------
154-
155-
.. include:: ../../LATEST_VERSION_NOTES.rst
156-
157-
The full history of the project is available as well.
161+
Version History
162+
===============
158163

159164
.. toctree::
165+
:maxdepth: 1
160166

161-
project_changelog
167+
release-notes/index
162168

163169
Testimonials
164-
------------
170+
============
165171

166172
.. raw:: html
167173

docs/source/narrative/index.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
===========================
2+
User Guide for github3.py
3+
===========================
4+
5+
.. Add content

docs/source/project_changelog.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/source/release-notes/0.1.0.rst

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
0.1.0: 2012-11-13
2+
-----------------
3+
4+
- Add API for GitHub Enterprise customers.
5+
6+
0.1b2: 2012-11-10
7+
-----------------
8+
9+
- Handle 500 errors better, courtesy of Kristian Glass (@doismellburning)
10+
11+
- Handle sending json with ``%`` symbols better, courtesy of Kristian Glass
12+
13+
- Correctly handle non-GitHub committers and authors courtesy of Paul Swartz
14+
(@paulswartz)
15+
16+
- Correctly display method signatures in documentation courtesy of (@seveas)
17+
18+
0.1b1: 2012-10-31
19+
-----------------
20+
21+
- unit tests implemented using mock instead of hitting the GitHub API (#37)
22+
23+
- removed ``list_*`` functions from GitHub object
24+
25+
- Notifications API coverage
26+
27+
0.1b0: 2012-10-06
28+
-----------------
29+
30+
- Support for the complete GitHub API (accomplished)
31+
32+
- Now also includes the Statuses API
33+
34+
- Also covers the auto_init parameters to the Repository creation
35+
methodology
36+
37+
- Limited implementation of iterators in the place of list functions.
38+
39+
- 98% coverage by unit tests

docs/source/release-notes/0.2.0.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
0.2.0: 2012-11-21
2+
-----------------
3+
4+
- MAJOR API CHANGES:
5+
6+
- ``GitHub.iter_subscribed`` --> ``GitHub.iter_subscriptions``
7+
8+
- Broken ``list_*`` functions in github3.api have been renamed to the correct
9+
``iter_*`` methods on ``GitHub``.
10+
11+
- Removed ``list_*`` functions from ``Repository``, ``Gist``,
12+
``Organization``, and ``User`` objects
13+
14+
- Added zen of GitHub method.
15+
16+
- More tests
17+
18+
- Changed the way ``Repository.edit`` works courtesy of Kristian Glass
19+
(@doismellburning)
20+
21+
- Changed ``Repository.contents`` behaviour when acting on a 404.
22+
23+
- 50% test coverage via mock tests

docs/source/release-notes/0.3.0.rst

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
0.3.0: 2013-01-01
2+
-----------------
3+
4+
- In github3.repos.Repository
5+
6+
- is_fork() and fork return the same thing
7+
8+
- is_private() and private return the same thing as well
9+
10+
- has_downloads, has_issues, has_wiki are now straight attributes
11+
12+
- In github3.repos.Hook
13+
14+
- is_active() and active return the same value
15+
16+
- In github3.pulls.PullRequest
17+
18+
- is_mergeable() and mergeable are now the same
19+
20+
- repository now returns a tuple of the login and name of the repository it
21+
belongs to
22+
23+
- In github3.notifications.Thread
24+
25+
- is_unread() and unread are now the same
26+
27+
- In github3.gists
28+
29+
- GistFile.filename and GistFile.name return the same information
30+
31+
- Gist.history now lists the history of the gist
32+
33+
- GistHistory is an object representing one commit or version of the history
34+
35+
- You can retrieve gists at a specific version with GistHistory.get_gist()
36+
37+
- github3.orgs.Organization.iter_repos now accepts all types_
38+
39+
- list_* methods on Organization objects that were missed are now deleted
40+
41+
- Some objects now have ``__str__`` methods. You can now do things like:
42+
43+
.. code-block:: python
44+
45+
import github3
46+
u = github3.user('sigmavirus24')
47+
r = github3.repository(u, 'github3.py')
48+
49+
And
50+
51+
.. code-block:: python
52+
53+
import github3
54+
55+
r = github3.repository('sigmavirus24', 'github3.py')
56+
57+
template = """Some kind of template where you mention this repository
58+
{0}"""
59+
60+
print(template.format(r))
61+
# Some kind of template where you mention this repository
62+
# sigmavirus24/github3.py
63+
64+
Current list of objects with this feature:
65+
66+
- github3.users.User (uses the login name)
67+
68+
- github3.users.Key (uses the key text)
69+
70+
- github3.users.Repository (uses the login/name pair)
71+
72+
- github3.users.RepoTag (uses the tag name)
73+
74+
- github3.users.Contents (uses the decoded content)
75+
76+
- 60% test coverage with mock
77+
78+
- Upgrade to requests 1.0.x
79+
80+
.. _types:
81+
http://developer.github.com/v3/repos/#list-organization-repositories

docs/source/release-notes/0.4.0.rst

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
0.4.0: 2013-01-16
2+
-----------------
3+
4+
- In github3.legacy.LegacyRepo
5+
6+
- ``has_{downloads,issues,wiki}`` are now attributes.
7+
8+
- ``is_private()`` and the ``private`` attribute return the same thing
9+
``is_private()`` will be deprecated in the next release.
10+
11+
- In github3.repos.Repository
12+
13+
- ``is_fork()`` is now deprecated in favor of the ``fork`` attribute
14+
15+
- ``is_private()`` is now deprecated in favor of the ``private`` attribute
16+
17+
- In github3.repos.Hook
18+
19+
- ``is_active()`` is now deprecated in favor of the ``active`` attribute
20+
21+
- In github3.pulls.PullRequest
22+
23+
- ``is_mergeable()`` is now deprecated in favor of the ``mergeable``
24+
attribute
25+
26+
- In github3.notifications.Thread
27+
28+
- ``is_unread()`` is now deprecated in favor of the ``unread``
29+
30+
- ``pubsubhubbub()`` is now present on the ``GitHub`` object and will be
31+
removed from the ``Repository`` object in the next release
32+
33+
- 70% test coverage

0 commit comments

Comments
 (0)