Skip to content

Commit

Permalink
Specify compatibility with supported Python version 3.8-3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgross committed Feb 28, 2024
1 parent 1d37f28 commit 1f1a5fb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 28 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pcloud-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
max-parallel: 1
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -57,6 +57,6 @@ jobs:
-Dsonar.organization=tomgross-github
-Dsonar.python.version=3
-Dsonar.python.coverage.reportPaths=coverage.xml
-Dsonar.python.coverage.exclusions=**/tests/*
-Dsonar.python.coverage.exclusions=**/tests/**/*


3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Changelog
1.3 (unreleased)
----------------

- Nothing changed yet.
- Reimplement pyfs integration [tomgross]
- Update (test) dependencies and run tests only on Python 3.8-3.12 [tomgross]


1.2 (2023-06-24)
Expand Down
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
"Environment :: Other Environment",
"Environment :: Web Environment",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down
15 changes: 0 additions & 15 deletions src/pcloud/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,18 +118,3 @@ def test_server_security(self):
resp = api.session.get(api.endpoint + "../../bogus.sh", params={})
assert resp.content == b'{"Error": "Path not found or not accessible!"}'
assert resp.status_code == 404


# @pytest.mark.usefixtures("start_mock_server")
# class TestPcloudFs(object):
# def test_write(self, capsys):
# with DummyPCloudFS(username="foo", password="bar") as fs:
# data = b"hello pcloud fs unittest"
# fs_f = fs.openbin("hello.bin")
# fs_f.write(data)
# captured = capsys.readouterr()
# assert captured.out == "File: b'hello pcloud fs unittest', Size: 24"

# def test_repr(self):
# with DummyPCloudFS(username="foo", password="bar") as fs:
# assert repr(fs) == "<pCloudFS>"
13 changes: 5 additions & 8 deletions test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
pytest==7.4.3
pytest-sugar==0.9.7
pytest==7.4.4
pytest-sugar==1.0.0
pytest-timeout==2.2.0
pytest-cov==4.1.0
pytest-rerunfailures==13.0
wheel==0.42.0
# flake8 version 6 requires Python 3.8+
flake8==5.0.4
flake8==7.0.0
fs==2.4.16
# playwright > 1.35.0 requires Python 3.8+
playwright==1.35.0
playwright==1.41.2
multipart==0.2.4
setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability
tenacity==8.2.3
setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability

0 comments on commit 1f1a5fb

Please sign in to comment.