From c8134fc6d810c89c10142287ca6de916a5b548ba Mon Sep 17 00:00:00 2001 From: Anthony Murphy <106298474+anthony-murphy-lrn@users.noreply.github.com> Date: Tue, 29 Oct 2024 13:43:41 +1100 Subject: [PATCH 1/7] Update CONTRIBUTING.md Updated contribution model to remove Github Issues as a method of communication, we still accept PRs for changes to SDK --- CONTRIBUTING.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 635356b..7b860ea 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,15 @@ # Contributing -Contribution in the form of [Issues] and [PRs] are welcome. +Contribution in the form of [PRs] are welcome. + +#Why We Are No Longer Accepting Public Issues +After careful consideration, we’ve decided to discontinue accepting issues via GitHub Issues for our public repositories. + +Here’s why: + +We have established support channels specifically designed to handle customer inquiries and issues. These channels are staffed 24/7, and we work diligently to ensure prompt responses and high-quality support. Maintaining and responding to GitHub Issues requires significant resources, and we are unable to provide the same level of support through this channel as we do through our dedicated support teams. By focusing on our dedicated support channels, we can streamline our processes and offer a more effective and responsive service to our users. + +For any issues or support needs, please use the existing support channels. This will help us provide you with the best possible assistance in a timely manner. # Tests @@ -25,4 +34,4 @@ Alternatively, if you only care about the version you're currently running, you be used as the new library version. Please autogenerate release notes to show differences. [Issues]: https://github.com/Learnosity/learnosity-sdk-python/issues/new -[PRs]: https://github.com/Learnosity/learnosity-sdk-python/compare \ No newline at end of file +[PRs]: https://github.com/Learnosity/learnosity-sdk-python/compare From 73d724dfe8dffe9c4ba908476fe8aa2789588109 Mon Sep 17 00:00:00 2001 From: Anthony Murphy Date: Tue, 29 Oct 2024 14:04:33 +1100 Subject: [PATCH 2/7] fix file syntax --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7b860ea..a530f16 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,7 +2,7 @@ Contribution in the form of [PRs] are welcome. -#Why We Are No Longer Accepting Public Issues +# Why We Are No Longer Accepting Public Issues After careful consideration, we’ve decided to discontinue accepting issues via GitHub Issues for our public repositories. Here’s why: From 6e63861110dd941f4bbc8f00c58db386aac579f8 Mon Sep 17 00:00:00 2001 From: Anthony Murphy Date: Tue, 29 Oct 2024 14:08:28 +1100 Subject: [PATCH 3/7] fix file syntax --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a530f16..328ab94 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,7 +2,7 @@ Contribution in the form of [PRs] are welcome. -# Why We Are No Longer Accepting Public Issues +Why We Are No Longer Accepting Public Issues After careful consideration, we’ve decided to discontinue accepting issues via GitHub Issues for our public repositories. Here’s why: From ab2da8b9bc45eed4fe4ec4dfc8282514e7eebc2e Mon Sep 17 00:00:00 2001 From: Anthony Murphy <106298474+anthony-murphy-lrn@users.noreply.github.com> Date: Wed, 30 Oct 2024 10:15:26 +1100 Subject: [PATCH 4/7] Update CONTRIBUTING.md Co-authored-by: michael-linnane-lrn --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 328ab94..58c6197 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,7 +2,7 @@ Contribution in the form of [PRs] are welcome. -Why We Are No Longer Accepting Public Issues +Why We Are No Longer Accepting Public Issues After careful consideration, we’ve decided to discontinue accepting issues via GitHub Issues for our public repositories. Here’s why: From c809c6630df11f64cdada13bb31342a5fa75f21b Mon Sep 17 00:00:00 2001 From: Ferdia Soper Mac Cafraidh Date: Thu, 31 Oct 2024 16:58:43 +0000 Subject: [PATCH 5/7] [TESTS] Only test supported Python versions (#92) * Adds tests for 3.11, 3.12, 3.13 * Remove 3.6, 3.7 and 3.8 tests * Port tests to Github Actions from Travis CI --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ .travis.yml | 28 ---------------------------- 2 files changed, 27 insertions(+), 28 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..70f0f2f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: Code Quality and Tests + +on: + push: + branches: ["master", "main"] + pull_request: + +jobs: + tests: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install Test Dependencies + run: pip install .[test] + + - name: Run Tests + run: pytest --color=yes --cov=learnosity_sdk diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c5bfa07..0000000 --- a/.travis.yml +++ /dev/null @@ -1,28 +0,0 @@ -language: python - -dist: focal - -arch: - - amd64 - - arm64 - -python: - - "3.6" - - "3.7" - - "3.8" - - "3.9" - - "3.10" - -before_install: - # Login to docker hub - - echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin - -install: "pip install .[test]" - -script: "pytest --cov=learnosity_sdk" - -notifications: - slack: - rooms: - secure: tCs/NWSyAvBa6GiyVp9Bkn/tyqEe6rWddw/XQvLHeZgPFI5433Nxycus1lxlp9ugASPdDDjKEiHXDRE64km1g3mGOyiRDald0n5z3aTYb4lebBxVjD9uKvJhjwknEmmEvaQV9UfP6hq8muX0Yx3qjhNNYZve8FR8UCFl3YC68mc= - on_success: change From 428f502398434d3f4db9b2a696d44ced357d13f7 Mon Sep 17 00:00:00 2001 From: Ferdia Soper Mac Cafraidh Date: Fri, 1 Nov 2024 10:28:27 +0000 Subject: [PATCH 6/7] [CONFIG] Add CODEOWNERS (#93) * Single root owners for repo --- .github/CODEOWNERS | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..751a8a9 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,3 @@ +# These owners will be the default owners for everything in +# the repo. Unless a later match takes precedence, +* @michael-linnane-lrn @ferdia-sopermaccafraidh-lrn From 0e43bf5d1582a88d7f9fd0333c781558121e59f9 Mon Sep 17 00:00:00 2001 From: Ferdia Soper Mac Cafraidh Date: Fri, 1 Nov 2024 12:35:57 +0000 Subject: [PATCH 7/7] [FEATURE] Resolve deprecation warning for datetime.datetime.utcnow (#94) * [FEATURE] Resolve deprecation warning for datetime.datetime.utcnow * [DOCS] Bump python version and update Changelog --- ChangeLog.md | 4 ++++ learnosity_sdk/_version.py | 2 +- learnosity_sdk/request/init.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index 3dd2cb1..88f59c7 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [v0.3.11] - 2024-11-01 +### Fixed +- Deprecation warning for `datetime.utcnow()` + ## [v0.3.10] - 2024-10-16 ### Security - Bump certifi minimum version to 2024.07.04 diff --git a/learnosity_sdk/_version.py b/learnosity_sdk/_version.py index d160d1c..1f8f12d 100644 --- a/learnosity_sdk/_version.py +++ b/learnosity_sdk/_version.py @@ -1 +1 @@ -__version__ = 'v0.3.10' +__version__ = 'v0.3.11' diff --git a/learnosity_sdk/request/init.py b/learnosity_sdk/request/init.py index 2bdc38f..90474e2 100644 --- a/learnosity_sdk/request/init.py +++ b/learnosity_sdk/request/init.py @@ -12,7 +12,7 @@ def format_utc_time() -> str: "Get the current UTC time, formatted for a security timestamp" - now = datetime.datetime.utcnow() + now = datetime.datetime.now(datetime.timezone.utc) return now.strftime("%Y%m%d-%H%M")