brynq-sdk-jira 2.1.1__tar.gz → 3.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: brynq_sdk_jira
3
- Version: 2.1.1
3
+ Version: 3.0.1
4
4
  Summary: JIRA wrapper from BrynQ
5
5
  Home-page: UNKNOWN
6
6
  Author: BrynQ
@@ -1,13 +1,14 @@
1
1
  import json
2
- from typing import Union, List
2
+ from typing import Union, List, Literal, Optional
3
3
  import pandas as pd
4
4
  import requests
5
5
  from brynq_sdk_brynq import BrynQ
6
6
 
7
7
  class Jira(BrynQ):
8
- def __init__(self, label: Union[str, List], debug=False):
8
+ def __init__(self, system_type: Optional[Literal['source', 'target']] = None, debug=False):
9
9
  super().__init__()
10
- credentials = self.get_system_credential(system='jira', label=label)
10
+ credentials = self.interfaces.credentials.get(system="jira", system_type=system_type)
11
+ credentials = credentials.get('data')
11
12
  self.base_url = credentials['base_url']
12
13
  self.headers = {
13
14
  "Authorization": f"Basic {credentials['access_token']}",
@@ -2,14 +2,15 @@ import json
2
2
  import requests
3
3
  from itertools import islice
4
4
  from brynq_sdk_brynq import BrynQ
5
- from typing import Union, List
5
+ from typing import Union, List, Literal, Optional
6
6
 
7
7
 
8
8
  class Tempo(BrynQ):
9
- def __init__(self, label: Union[str, List], debug=False):
9
+ def __init__(self, system_type: Optional[Literal['source', 'target']] = None, debug=False):
10
10
  super().__init__()
11
11
  self.debug = debug
12
- credentials = self.get_system_credential(system='tempo-timesheets', label=label)
12
+ credentials = self.interfaces.credentials.get(system="jira", system_type=system_type)
13
+ credentials = credentials.get('data')
13
14
  self.headers = {
14
15
  "Authorization": f"Bearer {credentials['api_token']}",
15
16
  "Content-Type": "application/json"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: brynq-sdk-jira
3
- Version: 2.1.1
3
+ Version: 3.0.1
4
4
  Summary: JIRA wrapper from BrynQ
5
5
  Home-page: UNKNOWN
6
6
  Author: BrynQ
@@ -1,3 +1,3 @@
1
- brynq-sdk-brynq>=2
1
+ brynq-sdk-brynq<5,>=4
2
2
  pandas<3,>=1
3
3
  requests<=3,>=2
@@ -2,7 +2,7 @@ from setuptools import setup, find_namespace_packages
2
2
 
3
3
  setup(
4
4
  name='brynq_sdk_jira',
5
- version='2.1.1',
5
+ version='3.0.1',
6
6
  description='JIRA wrapper from BrynQ',
7
7
  long_description='JIRA wrapper from BrynQ',
8
8
  author='BrynQ',
@@ -10,7 +10,7 @@ setup(
10
10
  packages=find_namespace_packages(include=['brynq_sdk*']),
11
11
  license='BrynQ License',
12
12
  install_requires=[
13
- 'brynq-sdk-brynq>=2',
13
+ 'brynq-sdk-brynq>=4,<5',
14
14
  'pandas>=1,<3',
15
15
  'requests>=2,<=3'
16
16
  ],
File without changes