From b2c18419e7c168728c54eae3c4783c77fa61a8ad Mon Sep 17 00:00:00 2001 From: Quinten Stokkink Date: Mon, 10 Jul 2023 10:46:42 +0200 Subject: [PATCH 1/2] Automated version increment --- doc/conf.py | 4 ++-- ipv8/REST/rest_manager.py | 2 +- setup.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 523e37913..b645c316e 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -26,9 +26,9 @@ author = u'Tribler' # The short X.Y version -version = '2.10' # Do not change manually! Handled by github_increment_version.py +version = '2.11' # Do not change manually! Handled by github_increment_version.py # The full version, including alpha/beta/rc tags -release = '2.10.0' # Do not change manually! Handled by github_increment_version.py +release = '2.11.0' # Do not change manually! Handled by github_increment_version.py # -- General configuration --------------------------------------------------- diff --git a/ipv8/REST/rest_manager.py b/ipv8/REST/rest_manager.py index 83cb715f8..6651ffc8e 100644 --- a/ipv8/REST/rest_manager.py +++ b/ipv8/REST/rest_manager.py @@ -84,7 +84,7 @@ async def start(self, port=8085, host='127.0.0.1', api_key=None, ssl_context=Non aiohttp_apispec = AiohttpApiSpec( app=self.root_endpoint.app, title="IPv8 REST API documentation", - version="v2.10", # Do not change manually! Handled by github_increment_version.py + version="v2.11", # Do not change manually! Handled by github_increment_version.py url="/docs/swagger.json", swagger_path="/docs", ) diff --git a/setup.py b/setup.py index 5a3bf7636..5b8907065 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ description='The Python implementation of the IPV8 library', long_description=long_description, long_description_content_type='text/markdown', - version='2.10.0', # Do not change manually! Handled by github_increment_version.py + version='2.11.0', # Do not change manually! Handled by github_increment_version.py url='https://github.com/Tribler/py-ipv8', package_data={'': ['*.*']}, packages=find_packages(), From 09b308fb8dcf13a4cd05996b4b1d2cb3747804de Mon Sep 17 00:00:00 2001 From: Quinten Stokkink Date: Mon, 10 Jul 2023 10:48:25 +0200 Subject: [PATCH 2/2] Updated GitHub release script to latest PyGithub --- github_increment_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github_increment_version.py b/github_increment_version.py index 8c2cd2b88..243ec6380 100644 --- a/github_increment_version.py +++ b/github_increment_version.py @@ -180,7 +180,7 @@ def modify_rest_manager(file_contents, element, new_version_tag): username = input('Username: ') token = getpass.getpass(prompt='Token (needs public_repo access, no token? visit https://github.com/settings/tokens): ', stream=None) -github = Github(token, client_id=username, client_secret=token) +github = Github(token) # GET REPOSITORY REFERENCES print("[4/8] Retrieving Tribler:py-ipv8 and %s:py-ipv8" % username)