deceit 0.7__tar.gz → 0.9__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
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: deceit
3
- Version: 0.7
3
+ Version: 0.9
4
4
  Summary: deceit
5
5
  Home-page: https://bitbucket.org/dbuy/deceit
6
6
  Author: dev
@@ -26,7 +26,32 @@ Classifier: Topic :: Software Development
26
26
  Classifier: Topic :: Software Development :: Libraries
27
27
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
28
28
  Description-Content-Type: text/markdown
29
+ Requires-Dist: requests
30
+ Requires-Dist: requests_oauthlib
31
+ Requires-Dist: pytz
29
32
  Provides-Extra: dev
33
+ Requires-Dist: pytest; extra == "dev"
34
+ Requires-Dist: coverage; extra == "dev"
35
+ Requires-Dist: flake8; extra == "dev"
36
+ Requires-Dist: raft; extra == "dev"
37
+ Requires-Dist: twine; extra == "dev"
38
+ Requires-Dist: pytest_aspec; extra == "dev"
39
+ Requires-Dist: ipython; extra == "dev"
40
+ Requires-Dist: bumpversion; extra == "dev"
41
+ Requires-Dist: pytest-docker; extra == "dev"
42
+ Requires-Dist: waddle; extra == "dev"
43
+ Requires-Dist: convocations; extra == "dev"
44
+ Requires-Dist: pytest-cov; extra == "dev"
45
+ Dynamic: author
46
+ Dynamic: author-email
47
+ Dynamic: classifier
48
+ Dynamic: description
49
+ Dynamic: description-content-type
50
+ Dynamic: home-page
51
+ Dynamic: license
52
+ Dynamic: provides-extra
53
+ Dynamic: requires-dist
54
+ Dynamic: summary
30
55
 
31
56
  # deceit
32
57
 
@@ -41,6 +41,13 @@ class ApiClient:
41
41
  def headers(self, *args, **kwargs):
42
42
  return {}
43
43
 
44
+ def get_url(self, route):
45
+ if route.startswith('https:') or route.startswith('http:'):
46
+ return route
47
+ base_url = self.base_url
48
+ url = posixpath.join(base_url, route) if base_url else route
49
+ return url
50
+
44
51
  def send(
45
52
  self,
46
53
  method: str,
@@ -70,8 +77,7 @@ class ApiClient:
70
77
  send_kwargs = {}
71
78
  if timeout is not None:
72
79
  send_kwargs['timeout'] = timeout
73
- base_url = self.base_url
74
- url = posixpath.join(base_url, route) if base_url else route
80
+ url = self.get_url(route)
75
81
  body = None
76
82
  if json_data:
77
83
  body = json.dumps(json_data, cls=JsonEncoder)
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: deceit
3
- Version: 0.7
3
+ Version: 0.9
4
4
  Summary: deceit
5
5
  Home-page: https://bitbucket.org/dbuy/deceit
6
6
  Author: dev
@@ -26,7 +26,32 @@ Classifier: Topic :: Software Development
26
26
  Classifier: Topic :: Software Development :: Libraries
27
27
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
28
28
  Description-Content-Type: text/markdown
29
+ Requires-Dist: requests
30
+ Requires-Dist: requests_oauthlib
31
+ Requires-Dist: pytz
29
32
  Provides-Extra: dev
33
+ Requires-Dist: pytest; extra == "dev"
34
+ Requires-Dist: coverage; extra == "dev"
35
+ Requires-Dist: flake8; extra == "dev"
36
+ Requires-Dist: raft; extra == "dev"
37
+ Requires-Dist: twine; extra == "dev"
38
+ Requires-Dist: pytest_aspec; extra == "dev"
39
+ Requires-Dist: ipython; extra == "dev"
40
+ Requires-Dist: bumpversion; extra == "dev"
41
+ Requires-Dist: pytest-docker; extra == "dev"
42
+ Requires-Dist: waddle; extra == "dev"
43
+ Requires-Dist: convocations; extra == "dev"
44
+ Requires-Dist: pytest-cov; extra == "dev"
45
+ Dynamic: author
46
+ Dynamic: author-email
47
+ Dynamic: classifier
48
+ Dynamic: description
49
+ Dynamic: description-content-type
50
+ Dynamic: home-page
51
+ Dynamic: license
52
+ Dynamic: provides-extra
53
+ Dynamic: requires-dist
54
+ Dynamic: summary
30
55
 
31
56
  # deceit
32
57
 
@@ -8,9 +8,10 @@ coverage
8
8
  flake8
9
9
  raft
10
10
  twine
11
- pytest-pspec
11
+ pytest_aspec
12
12
  ipython
13
13
  bumpversion
14
14
  pytest-docker
15
15
  waddle
16
16
  convocations
17
+ pytest-cov
@@ -3,10 +3,10 @@ coverage
3
3
  flake8
4
4
  raft
5
5
  twine
6
- pytest-pspec
6
+ pytest_aspec
7
7
  ipython
8
8
  bumpversion
9
9
  pytest-docker
10
10
  waddle
11
11
  convocations
12
-
12
+ pytest-cov
@@ -3,11 +3,10 @@
3
3
  # Support setuptools only, distutils has a divergent and more annoying API and
4
4
  # few folks will lack setuptools.
5
5
  from setuptools import setup
6
- from importlib.resources import open_text
7
6
  # Version info -- read without importing
8
7
  _locals = {}
9
8
 
10
- version = '0.7'
9
+ version = '0.9'
11
10
 
12
11
  # PyYAML ships a split Python 2/3 codebase. Unfortunately, some pip versions
13
12
  # attempt to interpret both halves of PyYAML, yielding SyntaxErrors. Thus, we
@@ -74,4 +73,4 @@ setup(
74
73
  'pytz',
75
74
  ],
76
75
  extras_require=extras,
77
- )
76
+ )
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes