Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 1 addition & 28 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,32 +50,5 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools wheel coverage
pip install -e .[testing]
- name: Set ENV for codeclimate (pull_request)
continue-on-error: true
run: |
git fetch --no-tags --prune --depth=1 origin +refs/heads/$GITHUB_HEAD_REF:refs/remotes/origin/$GITHUB_HEAD_REF
echo "GIT_BRANCH=$GITHUB_HEAD_REF" >> $GITHUB_ENV
echo "GIT_COMMIT_SHA=$(git rev-parse origin/$GITHUB_HEAD_REF)" >> $GITHUB_ENV
if: github.event_name == 'pull_request'
- name: Set ENV for codeclimate (push)
run: |
echo "GIT_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
echo "GIT_COMMIT_SHA=$GITHUB_SHA" >> $GITHUB_ENV
if: github.event_name == 'push'
- name: Install Code Climate test report
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
- name: Run tests
run: coverage run -m unittest && coverage xml -i --include='chartmogul/*'
- name: Send Report to Code Climate
if: ${{ success() }}
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
run: |
if [ -z "$CC_TEST_REPORTER_ID" ]; then
echo "⚠️ Skipping Code Climate upload — CC_TEST_REPORTER_ID is not set."
else
./cc-test-reporter after-build -t coverage.py
fi
run: coverage run -m unittest && coverage xml -i --include='chartmogul/*'
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning].
[Keep a Changelog]: https://keepachangelog.com/en/1.0.0/
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html

## [4.6.3] - 2025-09-01
- Remove future dependency to resolve vulnerability issues

## [4.6.2] - 2025-07-09
- Update Marshmallow dependency to use >=3.24.0

## [4.6.1] - 2025-05-19
- Fixed Tasks API schema issue
- Unify requirements in a single place
Expand Down
3 changes: 1 addition & 2 deletions chartmogul/errors.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from future.utils import raise_from
from requests import HTTPError


Expand All @@ -20,6 +19,6 @@ class DeprecatedArgumentError(Exception):

def annotateHTTPError(err):
if isinstance(err, HTTPError):
raise_from(APIError(err.response.content), err)
raise APIError(err.response.content) from err
else:
raise err
2 changes: 1 addition & 1 deletion chartmogul/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "4.6.2"
__version__ = "4.6.3"
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
from __future__ import absolute_import
import os
import re
import sys
Expand All @@ -18,7 +17,6 @@
"uritemplate>=4.1.1",
"promise>=2.3.0",
"marshmallow>=3.24.0,<5.0.0",
"future>=0.18.3",
"urllib3>=2.2.2",
]
test_requirements = [
Expand Down