From 25190d826f7f97216e81636171c48d722e3ff7da Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" Date: Fri, 7 Jun 2019 02:36:31 +0000 Subject: [PATCH 01/19] Bump pyyaml from 5.1 to 5.1.1 Bumps [pyyaml](https://github.com/yaml/pyyaml) from 5.1 to 5.1.1. - [Release notes](https://github.com/yaml/pyyaml/releases) - [Changelog](https://github.com/yaml/pyyaml/blob/master/CHANGES) - [Commits](https://github.com/yaml/pyyaml/compare/5.1...5.1.1) Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 208a63c..a0371e3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,4 @@ google-auth==1.6.3 google-api-python-client==1.7.9 icalendar==4.0.3 pytz==2019.1 -PyYAML==5.1 +PyYAML==5.1.1 From a39e08db126591000d49d4f75e4a14b1dfe7061a Mon Sep 17 00:00:00 2001 From: Dmitry Date: Tue, 9 Jul 2019 12:30:50 +0300 Subject: [PATCH 02/19] safe_load instead of load (yaml) https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation --- manage-calendars.py | 2 +- sync-calendar.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manage-calendars.py b/manage-calendars.py index e746c48..74bda22 100644 --- a/manage-calendars.py +++ b/manage-calendars.py @@ -39,7 +39,7 @@ def parse_args(): def load_config(): with open('config.yml', 'r', encoding='utf-8') as f: - result = yaml.load(f) + result = yaml.safe_load(f) return result diff --git a/sync-calendar.py b/sync-calendar.py index 74c81bf..6df9a79 100644 --- a/sync-calendar.py +++ b/sync-calendar.py @@ -14,7 +14,7 @@ from gcal_sync import ( def load_config(): with open('config.yml', 'r', encoding='utf-8') as f: - result = yaml.load(f) + result = yaml.safe_load(f) return result From 87ffa78ccc6067dc37a1456123c861e88a4d09a2 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Tue, 23 Jul 2019 19:49:59 +0300 Subject: [PATCH 03/19] add 'rename' command --- manage-calendars.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/manage-calendars.py b/manage-calendars.py index 74bda22..e528c76 100644 --- a/manage-calendars.py +++ b/manage-calendars.py @@ -30,6 +30,12 @@ def parse_args(): 'remove', help='remove calendar') parser_remove.add_argument( 'id', action='store', help='calendar id to remove') + parser_rename = command_subparsers.add_parser( + 'rename', help='rename calendar') + parser_rename.add_argument( + 'id', action='store', help='calendar id') + parser_rename.add_argument( + 'summary', action='store', help='new summary') args = parser.parse_args() if args.command is None: @@ -68,6 +74,10 @@ def remove_calendar(service, id): calendar.delete() print('removed: {}'.format(id)) +def rename_calendar(service, id, summary): + calendar = {'summary': summary} + service.calendars().patch(body=calendar, calendarId=id).execute() + print('{}: {}'.format(summary, id)) def main(): args = parse_args() @@ -87,6 +97,8 @@ def main(): add_owner(service, args.id, args.owner_email) elif 'remove' == args.command: remove_calendar(service, args.id) + elif 'rename' == args.command: + rename_calendar(service, args.id, args.summary) if __name__ == '__main__': main() From b542f80d83adac8ed8ea76e325ce346f9c458048 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Tue, 23 Jul 2019 19:53:41 +0300 Subject: [PATCH 04/19] drop python 2.7 build (travis) --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 08379dd..78aaddd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: python python: - - "2.7" + - "3.5" - "3.6" - "3.7" From cbca8c09c0d4684f41682dfeb4cebaf907870fbe Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2019 02:47:24 +0000 Subject: [PATCH 05/19] Bump pytz from 2019.1 to 2019.2 Bumps [pytz](https://github.com/stub42/pytz) from 2019.1 to 2019.2. - [Release notes](https://github.com/stub42/pytz/releases) - [Commits](https://github.com/stub42/pytz/compare/release_2019.1...release_2019.2) Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index a0371e3..922e5b5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ google-auth==1.6.3 google-api-python-client==1.7.9 icalendar==4.0.3 -pytz==2019.1 +pytz==2019.2 PyYAML==5.1.1 From f295393e65a8f40cf5b798379b521a86061cffad Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2019 08:50:38 +0000 Subject: [PATCH 06/19] Bump pyyaml from 5.1.1 to 5.1.2 Bumps [pyyaml](https://github.com/yaml/pyyaml) from 5.1.1 to 5.1.2. - [Release notes](https://github.com/yaml/pyyaml/releases) - [Changelog](https://github.com/yaml/pyyaml/blob/master/CHANGES) - [Commits](https://github.com/yaml/pyyaml/commits) Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 922e5b5..0ef521c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,4 @@ google-auth==1.6.3 google-api-python-client==1.7.9 icalendar==4.0.3 pytz==2019.2 -PyYAML==5.1.1 +PyYAML==5.1.2 From 4f26c6c0fa587bcff50f112565ddfbd87224c9fe Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2019 08:57:21 +0000 Subject: [PATCH 07/19] Bump google-api-python-client from 1.7.9 to 1.7.10 Bumps [google-api-python-client](https://github.com/google/google-api-python-client) from 1.7.9 to 1.7.10. - [Release notes](https://github.com/google/google-api-python-client/releases) - [Changelog](https://github.com/googleapis/google-api-python-client/blob/master/CHANGELOG) - [Commits](https://github.com/google/google-api-python-client/compare/v1.7.9...v1.7.10) Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 0ef521c..572c4a9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ google-auth==1.6.3 -google-api-python-client==1.7.9 +google-api-python-client==1.7.10 icalendar==4.0.3 pytz==2019.2 PyYAML==5.1.2 From 2763560ac3172482124706c24b7fa70232685a23 Mon Sep 17 00:00:00 2001 From: fossabot Date: Thu, 22 Aug 2019 07:13:25 -0700 Subject: [PATCH 08/19] Add license scan report and status Signed-off-by: fossabot --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 23fb4a6..7624b37 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,15 @@ # sync_ics2gcal [![Build Status](https://travis-ci.org/b4tman/sync_ics2gcal.svg?branch=master)](https://travis-ci.org/b4tman/sync_ics2gcal) -[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=b4tman/sync_ics2gcal)](https://dependabot.com) +[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=b4tman/sync_ics2gcal)](https://dependabot.com) [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fb4tman%2Fsync_ics2gcal.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fb4tman%2Fsync_ics2gcal?ref=badge_shield) + Python scripts for sync .ics file with Google calendar ## How it works ![How it works](how-it-works.png) + + +## License +[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fb4tman%2Fsync_ics2gcal.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fb4tman%2Fsync_ics2gcal?ref=badge_large) \ No newline at end of file From 407d1d6c7d9f58d0a7562733c568e8590876d3f4 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Sun, 1 Sep 2019 02:12:15 +0000 Subject: [PATCH 09/19] Bump google-api-python-client from 1.7.10 to 1.7.11 Bumps [google-api-python-client](https://github.com/google/google-api-python-client) from 1.7.10 to 1.7.11. - [Release notes](https://github.com/google/google-api-python-client/releases) - [Changelog](https://github.com/googleapis/google-api-python-client/blob/master/CHANGELOG) - [Commits](https://github.com/google/google-api-python-client/compare/v1.7.10...v1.7.11) Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 572c4a9..65f1c61 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ google-auth==1.6.3 -google-api-python-client==1.7.10 +google-api-python-client==1.7.11 icalendar==4.0.3 pytz==2019.2 PyYAML==5.1.2 From f06051d06c8f40a80a6a40c842015a3a1fba73e0 Mon Sep 17 00:00:00 2001 From: Dmitry Belyaev Date: Wed, 4 Sep 2019 10:16:30 +0300 Subject: [PATCH 10/19] add GitHub Actions --- .github/workflows/pythonpackage.yml | 42 +++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/pythonpackage.yml diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml new file mode 100644 index 0000000..37733d7 --- /dev/null +++ b/.github/workflows/pythonpackage.yml @@ -0,0 +1,42 @@ +name: Python package + +on: + push: + branches: + - master + - develop + pull_request: + branches: + - master + - develop + +jobs: + build: + + runs-on: ubuntu-18.04 + strategy: + max-parallel: 3 + matrix: + python-version: [3.5, 3.6, 3.7] + + steps: + - uses: actions/checkout@v1 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Lint with flake8 + run: | + pip install flake8 + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + pip install pytest + pytest -v From cff48fba07b241263648061fa7d2cd568db87d4e Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 4 Sep 2019 11:13:02 +0300 Subject: [PATCH 11/19] add Python package build status --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7624b37..79d7c92 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Build Status](https://travis-ci.org/b4tman/sync_ics2gcal.svg?branch=master)](https://travis-ci.org/b4tman/sync_ics2gcal) [![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=b4tman/sync_ics2gcal)](https://dependabot.com) [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fb4tman%2Fsync_ics2gcal.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fb4tman%2Fsync_ics2gcal?ref=badge_shield) - +![Python package status](https://github.com/b4tman/sync_ics2gcal/workflows/Python%20package/badge.svg) Python scripts for sync .ics file with Google calendar From 8f13649b58923084e7eadd20999788f67be19ef2 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Fri, 1 Nov 2019 02:57:01 +0000 Subject: [PATCH 12/19] Bump pytz from 2019.2 to 2019.3 Bumps [pytz](https://github.com/stub42/pytz) from 2019.2 to 2019.3. - [Release notes](https://github.com/stub42/pytz/releases) - [Commits](https://github.com/stub42/pytz/compare/release_2019.2...release_2019.3) Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 65f1c61..aa260b3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ google-auth==1.6.3 google-api-python-client==1.7.11 icalendar==4.0.3 -pytz==2019.2 +pytz==2019.3 PyYAML==5.1.2 From e89e81ebe2a83902dfde44e2c1fa6c6eeb760f17 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Sun, 1 Dec 2019 02:19:35 +0000 Subject: [PATCH 13/19] Bump icalendar from 4.0.3 to 4.0.4 Bumps [icalendar](https://github.com/collective/icalendar) from 4.0.3 to 4.0.4. - [Release notes](https://github.com/collective/icalendar/releases) - [Changelog](https://github.com/collective/icalendar/blob/master/CHANGES.rst) - [Commits](https://github.com/collective/icalendar/compare/4.0.3...4.0.4) Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index aa260b3..37df2bc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ google-auth==1.6.3 google-api-python-client==1.7.11 -icalendar==4.0.3 +icalendar==4.0.4 pytz==2019.3 PyYAML==5.1.2 From 8d19f436713823e897e99e9015d21017bdeed0be Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Sun, 1 Dec 2019 09:00:21 +0000 Subject: [PATCH 14/19] Bump google-auth from 1.6.3 to 1.7.1 Bumps [google-auth](https://github.com/GoogleCloudPlatform/google-auth-library-python) from 1.6.3 to 1.7.1. - [Release notes](https://github.com/GoogleCloudPlatform/google-auth-library-python/releases) - [Changelog](https://github.com/googleapis/google-auth-library-python/blob/master/CHANGELOG.md) - [Commits](https://github.com/GoogleCloudPlatform/google-auth-library-python/compare/v1.6.3...v1.7.1) Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 37df2bc..d83a7b5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -google-auth==1.6.3 +google-auth==1.7.1 google-api-python-client==1.7.11 icalendar==4.0.4 pytz==2019.3 From 87b09d4ee891ba656ffad564df3e698b26d596ba Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 1 Jan 2020 02:22:50 +0000 Subject: [PATCH 15/19] Bump google-auth from 1.7.1 to 1.10.0 Bumps [google-auth](https://github.com/googleapis/google-auth-library-python) from 1.7.1 to 1.10.0. - [Release notes](https://github.com/googleapis/google-auth-library-python/releases) - [Changelog](https://github.com/googleapis/google-auth-library-python/blob/master/CHANGELOG.md) - [Commits](https://github.com/googleapis/google-auth-library-python/compare/v1.7.1...v1.10.0) Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index d83a7b5..e22ec83 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -google-auth==1.7.1 +google-auth==1.10.0 google-api-python-client==1.7.11 icalendar==4.0.4 pytz==2019.3 From c211ab8939a8570ebe6fa9a250682e69e222cc7a Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 1 Jan 2020 02:23:10 +0000 Subject: [PATCH 16/19] Bump pyyaml from 5.1.2 to 5.2 Bumps [pyyaml](https://github.com/yaml/pyyaml) from 5.1.2 to 5.2. - [Release notes](https://github.com/yaml/pyyaml/releases) - [Changelog](https://github.com/yaml/pyyaml/blob/master/CHANGES) - [Commits](https://github.com/yaml/pyyaml/compare/5.1.2...5.2) Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index e22ec83..974e8f7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,4 @@ google-auth==1.10.0 google-api-python-client==1.7.11 icalendar==4.0.4 pytz==2019.3 -PyYAML==5.1.2 +PyYAML==5.2 From d0826dd84f43b7c0fb2f718479b7e61b3c21bfbd Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Sat, 1 Feb 2020 02:25:31 +0000 Subject: [PATCH 17/19] Bump pyyaml from 5.2 to 5.3 Bumps [pyyaml](https://github.com/yaml/pyyaml) from 5.2 to 5.3. - [Release notes](https://github.com/yaml/pyyaml/releases) - [Changelog](https://github.com/yaml/pyyaml/blob/master/CHANGES) - [Commits](https://github.com/yaml/pyyaml/compare/5.2...5.3) Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 974e8f7..8bb078a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,4 @@ google-auth==1.10.0 google-api-python-client==1.7.11 icalendar==4.0.4 pytz==2019.3 -PyYAML==5.2 +PyYAML==5.3 From bbf7f69c6d26f0d86be982194893d3b84504af0f Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Sat, 1 Feb 2020 08:50:37 +0000 Subject: [PATCH 18/19] Bump google-auth from 1.10.0 to 1.11.0 Bumps [google-auth](https://github.com/googleapis/google-auth-library-python) from 1.10.0 to 1.11.0. - [Release notes](https://github.com/googleapis/google-auth-library-python/releases) - [Changelog](https://github.com/googleapis/google-auth-library-python/blob/master/CHANGELOG.md) - [Commits](https://github.com/googleapis/google-auth-library-python/compare/v1.10.0...v1.11.0) Signed-off-by: dependabot-preview[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 8bb078a..5369fe9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -google-auth==1.10.0 +google-auth==1.11.0 google-api-python-client==1.7.11 icalendar==4.0.4 pytz==2019.3 From fcba8f07efb016b3a939e1a608fa867143c3aa2e Mon Sep 17 00:00:00 2001 From: Dmitry Date: Sat, 1 Feb 2020 13:22:02 +0300 Subject: [PATCH 19/19] add python 3.8 --- .github/workflows/pythonpackage.yml | 4 ++-- .travis.yml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 37733d7..55c17b1 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -15,9 +15,9 @@ jobs: runs-on: ubuntu-18.04 strategy: - max-parallel: 3 + max-parallel: 4 matrix: - python-version: [3.5, 3.6, 3.7] + python-version: [3.5, 3.6, 3.7, 3.8] steps: - uses: actions/checkout@v1 diff --git a/.travis.yml b/.travis.yml index 78aaddd..f913379 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,8 @@ language: python python: - "3.5" - "3.6" - - "3.7" + - "3.7" + - "3.8" script: - pytest -v