aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.github/workflows/ci.yml2
-rw-r--r--cgitize/github.py7
-rw-r--r--pyproject.toml8
-rw-r--r--requirements.txt11
-rw-r--r--test/unit/test_github.py4
5 files changed, 19 insertions, 13 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 036b014..3b8a4a7 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
+ python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
name: 'Test / ${{ matrix.python-version }}'
env:
CGITIZE_GITHUB_USERNAME: cgitize-test
diff --git a/cgitize/github.py b/cgitize/github.py
index 02057c9..affa0b6 100644
--- a/cgitize/github.py
+++ b/cgitize/github.py
@@ -5,7 +5,7 @@
import logging
-from github import Github, GithubException
+from github import Auth, Github, GithubException
from cgitize.repo import Repo
@@ -13,7 +13,10 @@ from cgitize.repo import Repo
class GitHub:
def __init__(self, username, token):
self._username = username
- self._impl = Github(token)
+ auth = None
+ if token is not None:
+ auth = Auth.Token(token)
+ self._impl = Github(auth=auth)
def get_repo(self, repo):
try:
diff --git a/pyproject.toml b/pyproject.toml
index 0583f95..57ee548 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -9,13 +9,13 @@ license = {text = "MIT"}
dynamic = ["version"]
authors = [{name = "Egor Tensin", email = "egor@tensin.name"}]
readme = "README.md"
-requires-python = ">=3.6"
+requires-python = ">=3.9"
dependencies = [
- "atlassian-python-api ~= 3.28.0",
+ "atlassian-python-api ~= 4.0",
'importlib-metadata ~= 4.0 ; python_version < "3.8"',
- "PyGithub ~= 1.0",
- "python-gitlab ~= 2.0",
+ "PyGithub ~= 2.0",
+ "python-gitlab ~= 6.0",
"tomli ~= 1.0",
]
diff --git a/requirements.txt b/requirements.txt
index f3a5c8d..1d2c693 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,20 +1,23 @@
-atlassian-python-api==3.28.1
+atlassian-python-api==4.0.4
+beautifulsoup4==4.13.4
certifi==2025.7.14
cffi==1.17.1
charset-normalizer==3.4.2
cryptography==45.0.5
Deprecated==1.2.18
idna==3.10
+jmespath==1.0.1
oauthlib==3.3.1
pycparser==2.22
-PyGithub==1.59.1
+PyGithub==2.6.1
PyJWT==2.10.1
PyNaCl==1.5.0
-python-gitlab==2.10.1
+python-gitlab==6.1.0
requests==2.32.4
requests-oauthlib==2.0.0
requests-toolbelt==1.0.0
-six==1.17.0
+soupsieve==2.7
tomli==1.2.3
+typing_extensions==4.14.1
urllib3==2.5.0
wrapt==1.17.2
diff --git a/test/unit/test_github.py b/test/unit/test_github.py
index f1567d5..accbcbd 100644
--- a/test/unit/test_github.py
+++ b/test/unit/test_github.py
@@ -6,12 +6,12 @@
import os
import unittest
-from github import Github, GithubException
+from github import Auth, Github, GithubException
class GitHubTests(unittest.TestCase):
def setUp(self):
- self.github = Github(os.environ.get('CGITIZE_GITHUB_TOKEN'))
+ self.github = Github(auth=Auth.Token(os.environ.get('CGITIZE_GITHUB_TOKEN')))
def test_nonexistent_repo(self):
with self.assertRaises(GithubException):