Skip to content

Commit

Permalink
hotfix/fix-ci-errors (#21)
Browse files Browse the repository at this point in the history
Fixed files to work with latest CI updates:

- `Iterator` was moved from `collections` to `collections.abc` in Python
3.3 and deprecated in 3.10
https://stackoverflow.com/a/72330128
https://docs.python.org/3/library/collections.abc.html
  • Loading branch information
cognifloyd authored Feb 17, 2025
2 parents 3053691 + 5188b7c commit fb36669
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

# 1.0.3

* Updated files to work with latest CI updates

# 1.0.2

* Bug fix: python3 syntax fix
Expand Down
2 changes: 1 addition & 1 deletion pack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ keywords:
- mercurial
- git
- source control
version: 1.0.2
version: 1.0.3
stackstorm_version: ">=2.1.0"
author: Aamir
email: [email protected]
Expand Down
2 changes: 2 additions & 0 deletions requirements-tests.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
stashy==0.3
pybitbucket==0.12.0
4 changes: 2 additions & 2 deletions tests/test_repository_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import collections
from collections.abc import Iterator
import mock
import stashy
import time
Expand Down Expand Up @@ -212,7 +212,7 @@ def side_effect(username, repository_name, branch, client):
self.assertTrue(all([x in commit_info for x in commit_keys]))


class MockCommits(collections.Iterator):
class MockCommits(Iterator):
def __init__(self, count, author, commit_model):
self.delay = None
self.commits = []
Expand Down

0 comments on commit fb36669

Please sign in to comment.