Skip to content

Commit

Permalink
Merge 7bfb404 into 3f498f7
Browse files Browse the repository at this point in the history
  • Loading branch information
Glignos committed Sep 17, 2020
2 parents 3f498f7 + 7bfb404 commit 10ecf17
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
Changes
=======

Version v1.0.0a19 (released 2020-06-25)
Version v1.0.0a20 (released 2020-09-16)

- Initial public release.
1 change: 1 addition & 0 deletions invenio_github/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def disconnect_github(access_token, repo_hooks):
# already been deleted. The celery task is passed the access_token to make
# some last cleanup and afterwards delete itself remotely.
import github3

from .api import GitHubAPI

try:
Expand Down
2 changes: 2 additions & 0 deletions invenio_github/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@
import dateutil.parser
import pytz
import requests
import six
from flask import current_app
from github3 import repository
from werkzeug.utils import import_string

from .errors import CustomGitHubMetadataError

Expand Down
2 changes: 1 addition & 1 deletion invenio_github/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@

from __future__ import absolute_import, print_function

__version__ = "1.0.0a19"
__version__ = "1.0.0a20"
2 changes: 1 addition & 1 deletion run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@


pydocstyle invenio_github tests docs && \
isort -rc -c -df && \
isort invenio_github tests --check-only --diff && \
check-manifest --ignore ".travis-*" && \
sphinx-build -qnNW docs docs/_build/html && \
py.test tests && \
Expand Down
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
'pytest>=4.6.0', # due to pytest-cov requirement
'pluggy>=0.12,<1.0',
'invenio-search[elasticsearch7]>=1.2.3',
'invenio-indexer>=1.1.0,<1.2.0',
'invenio-search-ui>=1.0.1,<1.1.0',
]

extras_require = {
Expand All @@ -65,7 +67,7 @@

install_requires = [
'Flask-BabelEx>=0.9.3',
'Flask-Breadcrumbs>=0.3.0',
'Flask-Breadcrumbs>=0.4.0',
'Flask-Menu>=0.5.0',
'Flask>=1.0.2',
'WTForms-Alchemy>=0.15.0,<0.17',
Expand All @@ -81,13 +83,13 @@
'invenio-oauth2server>=1.0.3,<1.1.0',
'invenio-oauthclient>=1.1.2,<1.2.0',
'invenio-pidstore>=1.0.0',
'invenio-records-rest>=1.3.0,<1.7.0',
'invenio-records-rest>=1.6.2,<1.7.0',
'invenio-records>=1.3.0',
'invenio-rest>=1.1.2,<1.2.0',
'invenio-webhooks>=1.0.0a4',
'jsonresolver>=0.2.1,<0.3.0',
'mistune>=0.7.2',
'six>=1.10.0',
'six>=1.11.0',
'sqlalchemy-utils>=0.33.11,<0.36',
'uritemplate.py>=0.2.0,<2.0',
'urllib3<1.25,>=1.21.1', # from "invenio-search"
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ def tclient_request_factory(client, method, endpoint, urlargs, data,
def github_api(app, db, tester_id, remote_token):
"""Github API mock."""
import github3

from . import fixtures

mock_api = MagicMock()
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ def REPO(owner, repo, repo_id):
def ZIPBALL():
"""Github repository ZIP fixture."""
from zipfile import ZipFile

from six import BytesIO

memfile = BytesIO()
Expand Down

0 comments on commit 10ecf17

Please sign in to comment.