8000 Merge pull request #1013 from sigmavirus24/deprecated-code-removal · domdfcoding/github3.py@5766ecd · GitHub
[go: up one dir, main page]

Skip to content

Commit 5766ecd

Browse files
authored
Merge pull request sigmavirus24#1013 from sigmavirus24/deprecated-code-removal
Deprecated code removal
2 parents 52b9d5f + 4881f53 commit 5766ecd

File tree

15 files changed

+48
-1448
lines changed

15 files changed

+48
-1448
lines changed

docs/source/api-reference/api.rst

Lines changed: 0 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -35,79 +35,6 @@ To use the API anonymously, you can also create a new
3535
3636
gh = GitHub()
3737
38-
Or you can use the following functions:
39-
40-
Anonymous Functions
41-
-------------------
42-
43-
.. autofunction:: github3.authorize
44-
45-
Deprecated Functions
46-
~~~~~~~~~~~~~~~~~~~~
47-
48-
.. warning::
49-
50-
Due to GitHub's anonymous rate limits, it's strongly advised that you don't
51-
use these functions.
52-
53-
.. autofunction:: github3.create_gist
54-
55-
.. autofunction:: github3.gist
56-
57-
.. autofunction:: github3.gitignore_template
58-
59-
.. autofunction:: github3.gitignore_templates
60-
61-
.. autofunction:: github3.issue
62-
63-
.. autofunction:: github3.issues_on
64-
65-
.. autofunction:: github3.all_repositories
66-
67-
.. autofunction:: github3.all_users
68-
69-
.. autofunction:: github3.all_events
70-
71-
.. autofunction:: github3.followers_of
72-
73-
.. autofunction:: github3.followed_by
74-
75-
.. autofunction:: github3.public_gists
76-
77-
.. autofunction:: github3.gists_by
78-
79-
.. autofunction:: github3.organizations_with
80-
81-
.. autofunction:: github3.repositories_by
82-
83-
.. autofunction:: github3.starred_by
84-
85-
.. autofunction:: github3.subscriptions_for
86-
87-
.. autofunction:: github3.markdown
88-
89-
.. autofunction:: github3.octocat
90-
91-
.. autofunction:: github3.organization
92-
93-
.. autofunction:: github3.pull_request
94-
95-
.. autofunction:: github3.rate_limit
96-
97-
.. autofunction:: github3.repository
98-
99-
.. autofunction:: github3.search_code
100-
101-
.. autofunction:: github3.search_issues
102-
103-
.. autofunction:: github3.search_repositories
104-
105-
.. autofunction:: github3.search_users
106-
107-
.. autofunction:: github3.user
108-
109-
.. autofunction:: github3.zen
110-
11138
Enterprise Use
11239
==============
11340

docs/source/release-notes/2.0.0.rst

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1.4.0: 2020-12-29
1+
2.0.0: 2020-01-02
22
-----------------
33

44
Features Added
@@ -9,3 +9,49 @@ Features Added
99
- Update CI/CD to thoroughly test all supported version.
1010
- Remove compatibility imports for Python 2.
1111
- Remove dev-dependency for mock.
12+
13+
Removals
14+
````````
15+
16+
Removal of already deprecated code on version 1.x:
17+
18+
- ``github3.api.all_events`` use ``github.GitHub.all_events``
19+
- ``github3.api.all_repositories`` use ``github.GitHub.all_repositories``
20+
- ``github3.api.all_users`` use ``github.GitHub.all_users``
21+
- ``github3.api.authorize`` use ``github.GitHub.authorize``
22+
- ``github3.api.create_gist`` use ``github.GitHub.create_gist``
23+
- ``github3.api.emojis``
24+
- ``github3.api.followed_by`` use ``github.GitHub.followed_by``
25+
- ``github3.api.followers_of`` use ``github.GitHub.followers_of``
26+
- ``github3.api.gist`` use ``github.GitHub.gist``
27+
- ``github3.api.gists_by`` use ``github.GitHub.gists_by``
28+
- ``github3.api.gitignore_template`` use ``github.GitHub.gitignore_template``
29+
- ``github3.api.gitignore_templates`` use ``github.GitHub.gitignore_templates``
30+
- ``github3.api.issue`` use ``github.GitHub.issue``
31+
- ``github3.api.issues_on`` use ``github.GitHub.issues_on``
32+
- ``github3.api.markdown`` use ``github.GitHub.markdown``
33+
- ``github3.api.octocat`` use ``github.GitHub.octocat``
34+
- ``github3.api.organization``
35+
- ``github3.api.organizations_with`` use ``github.GitHub.organizations_with``
36+
- ``github3.api.public_gists`` use ``github.GitHub.public_gists``
37+
- ``github3.api.pull_request`` use ``github.GitHub.pull_request``
38+
- ``github3.api.rate_limit``
39+
- ``github3.api.repositories_by`` use ``github.GitHub.organizations_with``
40+
- ``github3.api.repository``
41+
- ``github3.api.search_code`` use ``github.GitHub.search_code``
42+
- ``github3.api.search_issues`` use ``github.GitHub.search_issues``
43+
- ``github3.api.search_repositories`` use ``github.GitHub.search_repositories``
44+
- ``github3.api.search_users`` use ``github.GitHub.search_users``
45+
- ``github3.api.starred_by`` use ``github.GitHub.starred_by``
46+
- ``github3.api.subscriptions_for`` use ``github.GitHub.subscriptions_for``
47+
- ``github3.api.user``
48+
- ``github3.api.zen`` use ``github.GitHub.zen``
49+
- ``Git#Blob.decoded`` use ``Git#Blob.decode_content``
50+
- ``Team#is_member`` use ``Login#is_member``
51+
- ``Team#add_member`` use ``Team#add_or_update_membership``
52+
- ``Team#invite`` use ``Team#add_or_update_membership``
53+
- ``Team#remove_member`` use ``Team#add_or_update_membership``
54+
- ``Organization#add_member`` add ``username`` to ``team``.
55+
- ``Organization#events`` use ``Organization#public_events``
56+
- ``Issue#assign`` use ``issues.issue.Issue.add_assignees``
57+

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def run_tests(self): # noqa: D102
6262
# import here, cause outside the eggs aren't loaded
6363
import pytest
6464

65-
warnings.warn("pyton setup.py test support is deprecated.", DeprecationWarning)
65+
warnings.warn("python setup.py test support is deprecated.", DeprecationWarning)
6666
errno = pytest.main(self.test_args)
6767
sys.exit(errno)
6868

src/github3/__init__.py

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -22,39 +22,8 @@
2222
__url__,
2323
)
2424
from .api import (
25-
all_events,
26-
all_repositories,
27-
all_users,
28-
authorize,
29-
create_gist,
30-
emojis,
3125
enterprise_login,
32-
followed_by,
33-
followers_of,
34-
gist,
35-
gists_by,
36-
gitignore_template,
37-
gitignore_templates,
38-
issue,
39-
issues_on,
4026
login,
41-
markdown,
42-
octocat,
43-
organization,
44-
organizations_with,
45-
public_gists,
46-
pull_request,
47-
rate_limit,
48-
repositories_by,
49-
repository,
50-
search_code,
51-
search_issues,
52-
search_repositories,
53-
search_users,
54-
starred_by,
55-
subscriptions_for,
56-
user,
57-
zen,
5827
)
5928
from .github import GitHub, GitHubEnterprise
6029
from .exceptions import GitHubError

0 commit comments

Comments
 (0)
0