chibi-github 0.1.0__tar.gz → 0.1.2__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.
Files changed (46) hide show
  1. {chibi_github-0.1.0 → chibi_github-0.1.2}/HISTORY.rst +5 -0
  2. {chibi_github-0.1.0 → chibi_github-0.1.2}/PKG-INFO +6 -1
  3. {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github/__init__.py +1 -1
  4. {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github/chibi_github.py +5 -7
  5. {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github/serializers.py +1 -1
  6. {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github.egg-info/PKG-INFO +6 -1
  7. {chibi_github-0.1.0 → chibi_github-0.1.2}/setup.cfg +1 -1
  8. {chibi_github-0.1.0 → chibi_github-0.1.2}/setup.py +1 -1
  9. {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/test_chibi_github.py +8 -1
  10. {chibi_github-0.1.0 → chibi_github-0.1.2}/AUTHORS.rst +0 -0
  11. {chibi_github-0.1.0 → chibi_github-0.1.2}/CONTRIBUTING.rst +0 -0
  12. {chibi_github-0.1.0 → chibi_github-0.1.2}/LICENSE +0 -0
  13. {chibi_github-0.1.0 → chibi_github-0.1.2}/MANIFEST.in +0 -0
  14. {chibi_github-0.1.0 → chibi_github-0.1.2}/README.rst +0 -0
  15. {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github/cli.py +0 -0
  16. {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github/config.py +0 -0
  17. {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github/response.py +0 -0
  18. {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github/urls.py +0 -0
  19. {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github.egg-info/SOURCES.txt +0 -0
  20. {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github.egg-info/dependency_links.txt +0 -0
  21. {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github.egg-info/entry_points.txt +0 -0
  22. {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github.egg-info/not-zip-safe +0 -0
  23. {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github.egg-info/requires.txt +0 -0
  24. {chibi_github-0.1.0 → chibi_github-0.1.2}/chibi_github.egg-info/top_level.txt +0 -0
  25. {chibi_github-0.1.0 → chibi_github-0.1.2}/docs/Makefile +0 -0
  26. {chibi_github-0.1.0 → chibi_github-0.1.2}/docs/authors.rst +0 -0
  27. {chibi_github-0.1.0 → chibi_github-0.1.2}/docs/conf.py +0 -0
  28. {chibi_github-0.1.0 → chibi_github-0.1.2}/docs/contributing.rst +0 -0
  29. {chibi_github-0.1.0 → chibi_github-0.1.2}/docs/history.rst +0 -0
  30. {chibi_github-0.1.0 → chibi_github-0.1.2}/docs/index.rst +0 -0
  31. {chibi_github-0.1.0 → chibi_github-0.1.2}/docs/installation.rst +0 -0
  32. {chibi_github-0.1.0 → chibi_github-0.1.2}/docs/make.bat +0 -0
  33. {chibi_github-0.1.0 → chibi_github-0.1.2}/docs/readme.rst +0 -0
  34. {chibi_github-0.1.0 → chibi_github-0.1.2}/docs/usage.rst +0 -0
  35. {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/__init__.py +0 -0
  36. {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/cassettes/Test_chibi_github.test_me_should_return_name_login.yaml +0 -0
  37. {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/cassettes/Test_chibi_github.test_me_should_return_user_data.yaml +0 -0
  38. {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/cassettes/Test_chibi_github_me.test_me_should_return_name_login.yaml +0 -0
  39. {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/cassettes/Test_chibi_github_me.test_me_should_return_user_data.yaml +0 -0
  40. {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/cassettes/Test_chibi_github_repo.test_all_repos_should_have_name.yaml +0 -0
  41. {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/cassettes/Test_chibi_github_repo.test_repo_url_should_be_a_api_inner.yaml +0 -0
  42. {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/cassettes/Test_chibi_github_repo.test_should_can_list_repo_of_user.yaml +0 -0
  43. {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/cassettes/Test_chibi_github_repo_create.test_create_and_delete_should_work.yaml +0 -0
  44. {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/cassettes/Test_chibi_github_repo_create.test_create_should_generate_a_new_repo.yaml +0 -0
  45. {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/cassettes/Test_chibi_github_repo_create.test_create_without_data_should_fail.yaml +0 -0
  46. {chibi_github-0.1.0 → chibi_github-0.1.2}/tests/urls.py +0 -0
@@ -2,6 +2,11 @@
2
2
  History
3
3
  =======
4
4
 
5
+ 0.1.2 (2025-03-01)
6
+ ------------------
7
+
8
+ * se cambio el token para usar Bearer y no Token
9
+
5
10
  0.0.1 (2020-07-08)
6
11
  ------------------
7
12
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: chibi_github
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: libreria para usar github
5
5
  Home-page: https://github.com/dem4ply/chibi_github
6
6
  Author: dem4ply
@@ -61,6 +61,11 @@ Features
61
61
  History
62
62
  =======
63
63
 
64
+ 0.1.2 (2025-03-01)
65
+ ------------------
66
+
67
+ * se cambio el token para usar Bearer y no Token
68
+
64
69
  0.0.1 (2020-07-08)
65
70
  ------------------
66
71
 
@@ -5,4 +5,4 @@ from chibi_github.chibi_github import Github_api
5
5
  __all__ = [ 'Github_api' ]
6
6
  __author__ = """dem4ply"""
7
7
  __email__ = 'dem4ply@gmail.com'
8
- __version__ = '0.1.0'
8
+ __version__ = '0.1.2'
@@ -1,11 +1,9 @@
1
- from chibi_github.config import configuration
2
1
  from chibi_api import Chibi_api
3
2
  from chibi_api.chibi_api import Chibi_inner_api
4
- from chibi_requests.auth import Token
5
- from chibi_requests import Response
6
- from chibi_requests import Response
7
- from chibi_api.chibi_api import Chibi_inner_api
3
+ from chibi_requests.auth import Bearer
4
+
8
5
  from .response import Create, Delete, Get
6
+ from chibi_github.config import configuration
9
7
 
10
8
 
11
9
  class Github_api_inner( Chibi_inner_api ):
@@ -23,9 +21,9 @@ class Github_api( Chibi_api ):
23
21
 
24
22
  def login( self, token=None ):
25
23
  if token is None:
26
- token = Token( token=configuration.github.personal_token )
24
+ token = Bearer( token=configuration.github.personal_token )
27
25
  else:
28
- token = Token( token=token )
26
+ token = Bearer( token=token )
29
27
  self.API.auth = token
30
28
 
31
29
  @property
@@ -1,4 +1,4 @@
1
- from marshmallow import Schema, post_load, INCLUDE, fields
1
+ from marshmallow import Schema, INCLUDE, fields
2
2
 
3
3
 
4
4
  class Github_url( fields.Url ):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: chibi_github
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: libreria para usar github
5
5
  Home-page: https://github.com/dem4ply/chibi_github
6
6
  Author: dem4ply
@@ -61,6 +61,11 @@ Features
61
61
  History
62
62
  =======
63
63
 
64
+ 0.1.2 (2025-03-01)
65
+ ------------------
66
+
67
+ * se cambio el token para usar Bearer y no Token
68
+
64
69
  0.0.1 (2020-07-08)
65
70
  ------------------
66
71
 
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 0.1.0
2
+ current_version = 0.1.2
3
3
  commit = True
4
4
  tag = True
5
5
 
@@ -38,6 +38,6 @@ setup(
38
38
  name='chibi_github',
39
39
  packages=find_packages(include=['chibi_github', 'chibi_github.*']),
40
40
  url='https://github.com/dem4ply/chibi_github',
41
- version='0.1.0',
41
+ version='0.1.2',
42
42
  zip_safe=False,
43
43
  )
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env python
2
2
  # -*- coding: utf-8 -*-
3
- import unittest
4
3
  from vcr_unittest import VCRTestCase
5
4
 
6
5
  from chibi_github import Github_api
7
6
  from chibi_github.chibi_github import Github_api_inner
7
+ from chibi_requests.auth import Bearer
8
8
 
9
9
 
10
10
  class Test_chibi_github( VCRTestCase ):
@@ -16,6 +16,13 @@ class Test_chibi_github( VCRTestCase ):
16
16
  api.login()
17
17
  self.assertTrue( api )
18
18
 
19
+ def test_should_wort( self ):
20
+ api = Github_api()
21
+ self.assertIsNone( api.API.auth )
22
+ api.login()
23
+ self.assertIsNotNone( api.API.auth )
24
+ self.assertIsInstance( api.API.auth, Bearer )
25
+
19
26
  def test_me_should_return_user_data( self ):
20
27
  api = Github_api()
21
28
  api.login()
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes