8000 Deprecated code removal · domdfcoding/github3.py@8990a4e · GitHub
[go: up one dir, main page]

Skip to content

Commit 8990a4e

Browse files
author
staticdev
committed
Deprecated code removal
1 parent 52b9d5f commit 8990a4e

File tree

14 files changed

+48
-1375
lines changed
  • 14 files changed

    +48
    -1375
    lines changed

    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+
    - ``Api#all_events`` use ``github.GitHub.all_events``
    19+
    - ``Api#all_repositories`` use ``github.GitHub.all_repositories``
    20+
    - ``Api#all_users`` use ``github.GitHub.all_users``
    21+
    - ``Api#authorize`` use ``github.GitHub.authorize``
    22+
    - ``Api#create_gist`` use ``github.GitHub.create_gist``
    23+
    - ``Api#emojis``
    24+
    - ``Api#followed_by`` use ``github.GitHub.followed_by``
    25+
    - ``Api#followers_of`` use ``github.GitHub.followers_of``
    26+
    - ``Api#gist`` use ``github.GitHub.gist``
    27+
    - ``Api#gists_by`` use ``github.GitHub.gists_by``
    28+
    - ``Api#gitignore_template`` use ``github.GitHub.gitignore_template``
    29+
    - ``Api#gitignore_templates`` use ``github.GitHub.gitignore_templates``
    30+
    - ``Api#issue`` use ``github.GitHub.issue``
    31+
    - ``Api#issues_on`` use ``github.GitHub.issues_on``
    32+
    - ``Api#markdown`` use ``github.GitHub.markdown``
    33+
    - ``Api#octocat`` use ``github.GitHub.octocat``
    34+
    - ``Api#organization``
    35+
    - ``Api#organizations_with`` use ``github.GitHub.organizations_with``
    36+
    - ``Api#public_gists`` use ``github.GitHub.public_gists``
    37+
    - ``Api#pull_request`` use ``github.GitHub.pull_request``
    38+
    - ``Api#rate_limit``
    39+
    - ``Api#repositories_by`` use ``github.GitHub.organizations_with``
    40+
    - ``Api#repository``
    41+
    - ``Api#search_code`` use ``github.GitHub.search_code``
    42+
    - ``Api#search_issues`` use ``github.GitHub.search_issues``
    43+
    - ``Api#search_repositories`` use ``github.GitHub.search_repositories``
    44+
    - ``Api#search_users`` use ``github.GitHub.search_users``
    45+
    - ``Api#starred_by`` use ``github.GitHub.starred_by``
    46+
    - ``Api#subscriptions_for`` use ``github.GitHub.subscriptions_for``
    47+
    - ``Api#user``
    48+
    - ``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