microsoft-todo-cli 1.2.0__py3-none-any.whl → 1.3.0__py3-none-any.whl

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: 2.4
2
2
  Name: microsoft-todo-cli
3
- Version: 1.2.0
3
+ Version: 1.3.0
4
4
  Summary: Fast, minimal command-line client for Microsoft To-Do
5
5
  Home-page: https://github.com/underwear/microsoft-todo-cli
6
6
  Author: underwear
@@ -1,4 +1,4 @@
1
- microsoft_todo_cli-1.2.0.dist-info/licenses/LICENSE,sha256=1xYliB2ZJeYUr4HpX68WiziquLEEHtHs4diJdPCi7ec,1064
1
+ microsoft_todo_cli-1.3.0.dist-info/licenses/LICENSE,sha256=1xYliB2ZJeYUr4HpX68WiziquLEEHtHs4diJdPCi7ec,1064
2
2
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  tests/run_tests.py,sha256=gi0SgUUTBgav9WjSOmGYBH2pVIfxXokk3NXmrPfgxhQ,1651
4
4
  tests/test_checklist_cli.py,sha256=-JhpcXokmYdMKQXhn3FeIDg2xKzD7irfnfzSWjeKvpo,4497
@@ -6,7 +6,7 @@ tests/test_checklist_item_model.py,sha256=t3t5eTDw471dU1ruFHGF6vXdYuD_rHJ8ni8inu
6
6
  tests/test_checklist_wrapper.py,sha256=fs68UBUaVRu7RXnlgdC84qSKpzT8nHz5d5srK__xBck,2080
7
7
  tests/test_cli_commands.py,sha256=QZ8xmnmq7sJXrBO0V4RDnWcC7ol8iXHMNIXwHMb4TJ4,18326
8
8
  tests/test_cli_output.py,sha256=a55uOtFe3GupKczWv_sPvzz9FbEsbNAtFiHiGklSLc0,6234
9
- tests/test_cli_url_integration.py,sha256=2zHTLa63olTUFisYn_p0Buu6eMlal7p7xyuXiq0rC-A,4546
9
+ tests/test_cli_url_integration.py,sha256=Pb8qIIhWEuwyzSNWuhpATo6GLIEvJl_KNr7eZ2Qgg5A,4560
10
10
  tests/test_datetime_parser.py,sha256=eVurIgTf-P0g4wv09i4fJ3lrAqjB0K6i89UNMWi_9aA,9195
11
11
  tests/test_filters.py,sha256=-uFVfyhIucQSLSiLhNvaUJNrW5Zuf92Sl0T6WltlJTs,4171
12
12
  tests/test_json_output.py,sha256=ZkZW6N3CuLBz0_j1fRk2nMJ_DN5b3QNdnFuUEgN3jQI,7411
@@ -19,10 +19,10 @@ tests/test_recurrence.py,sha256=-pVYKrL5RvtsL3YhTJOfB92MTgKwDFz-0_1JImmlCYU,6386
19
19
  tests/test_update_command.py,sha256=Hq--wFbfcUtZ7s83Q8tQVZTFokraWxjqqKRFUG5307E,7740
20
20
  tests/test_utils.py,sha256=mXgtng8oB8f1NkUb8qITAM8rnJOHiBYa4zm3eYln6Q4,5003
21
21
  tests/test_wrapper.py,sha256=wlO3U4_L-LbMWyMPHPd6dMWOliHt_h7ZCoqF7dvSCvc,6546
22
- todocli/__init__.py,sha256=MpAT5hgNoHnTtG1XRD_GV_A7QrHVU6vJjGSw_8qMGA4,22
22
+ todocli/__init__.py,sha256=F5mW07pSyGrqDNY2Ehr-UpDzpBtN-FsYU0QGZWf6PJE,22
23
23
  todocli/cli.py,sha256=IYbG8jnq0c3EzKH3ik70rZzvEBxDgulYhQ2Ib06CMhY,50701
24
24
  todocli/graphapi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
- todocli/graphapi/oauth.py,sha256=AA4X3ZhmCLTEH3ZrbsihemcO7UUfFCzRUxko9tZOIo0,3993
25
+ todocli/graphapi/oauth.py,sha256=xd61nVR0XloIwuOAojcablIgeOkEcvvv_LKGMTD1RBI,4261
26
26
  todocli/graphapi/wrapper.py,sha256=taFUuixSgelPkbqu9Bx7d8etHA_MNGEKywFfQPI1HIk,23176
27
27
  todocli/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
28
  todocli/models/checklistitem.py,sha256=KO1CZD8YvL7MqByOW4CQIGuDLyUM4DGCObs0ATpHXYo,1968
@@ -31,9 +31,9 @@ todocli/models/todotask.py,sha256=_v5YTqXbZi1pLvowHpAeZblBsTkDLLzegyPmt5DADoY,37
31
31
  todocli/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
32
  todocli/utils/datetime_util.py,sha256=fcx1ZK-59Sn270avEenvFOiTOvSgTJPVGD8qe6LxxIg,10283
33
33
  todocli/utils/recurrence_util.py,sha256=a-Vcbr3YNPioOtHEMwQMViKGqq5qxwkzdX3gAdhI_Zw,3233
34
- todocli/utils/update_checker.py,sha256=X--k4dkSq3bhNvoLdPwDBjdu2atGJjCze7349zbAnDo,2049
35
- microsoft_todo_cli-1.2.0.dist-info/METADATA,sha256=z-yi9Bf4i7L_cmjrpG0C8Qk066H2TEd-vr8FCSfKWGw,9484
36
- microsoft_todo_cli-1.2.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
37
- microsoft_todo_cli-1.2.0.dist-info/entry_points.txt,sha256=PqRWcETcJ1IRkrRYErjmilmH6y205R8VPX8QmgWWWGg,42
38
- microsoft_todo_cli-1.2.0.dist-info/top_level.txt,sha256=EIZMq91YloWqg-5RgfD9gxCiO-nGcrkciT9GnLyMDnc,14
39
- microsoft_todo_cli-1.2.0.dist-info/RECORD,,
34
+ todocli/utils/update_checker.py,sha256=A86HBKlyEpv-yOPaNmKkACBg8i-rJLMKDzds1y9iOzA,2070
35
+ microsoft_todo_cli-1.3.0.dist-info/METADATA,sha256=GcjEA2m8I6aXLbq-L2Dm_gkrkdLYYoLaNTOXchmcivw,9484
36
+ microsoft_todo_cli-1.3.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
37
+ microsoft_todo_cli-1.3.0.dist-info/entry_points.txt,sha256=PqRWcETcJ1IRkrRYErjmilmH6y205R8VPX8QmgWWWGg,42
38
+ microsoft_todo_cli-1.3.0.dist-info/top_level.txt,sha256=EIZMq91YloWqg-5RgfD9gxCiO-nGcrkciT9GnLyMDnc,14
39
+ microsoft_todo_cli-1.3.0.dist-info/RECORD,,
@@ -4,7 +4,7 @@ Real integration test for URL support in task names.
4
4
  This test actually creates tasks in Microsoft To-Do and verifies they exist.
5
5
 
6
6
  Prerequisites:
7
- - Valid API credentials configured in ~/.config/tod0/keys.yml
7
+ - Valid API credentials configured in ~/.config/microsoft-todo-cli/keys.yml
8
8
  - Network connection
9
9
 
10
10
  Note: This test creates a 'test-list' and adds tasks to it.
todocli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.2.0"
1
+ __version__ = "1.3.0"
todocli/graphapi/oauth.py CHANGED
@@ -29,7 +29,15 @@ authorize_url = "{0}{1}".format(settings["authority"], settings["authorize_endpo
29
29
  token_url = "{0}{1}".format(settings["authority"], settings["token_endpoint"])
30
30
 
31
31
  # User settings location
32
- config_dir = "{}/.config/tod0".format(os.path.expanduser("~"))
32
+ config_dir = os.path.join(os.path.expanduser("~"), ".config", "microsoft-todo-cli")
33
+
34
+ # Migrate from old config directory
35
+ old_config_dir = os.path.join(os.path.expanduser("~"), ".config", "tod0")
36
+ if os.path.isdir(old_config_dir) and not os.path.isdir(config_dir):
37
+ import shutil
38
+
39
+ shutil.copytree(old_config_dir, config_dir)
40
+
33
41
  if not os.path.isdir(config_dir):
34
42
  os.makedirs(config_dir)
35
43
 
@@ -10,7 +10,7 @@ PYPI_PACKAGE = "microsoft-todo-cli"
10
10
 
11
11
  def check():
12
12
  """Check for updates once per day, silently fail on errors."""
13
- config_dir = "{}/.config/tod0".format(os.path.expanduser("~"))
13
+ config_dir = os.path.join(os.path.expanduser("~"), ".config", "microsoft-todo-cli")
14
14
  if not os.path.isdir(config_dir):
15
15
  os.makedirs(config_dir)
16
16