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 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 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 635356b..58c6197 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 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")