icalcli 1.0.5__tar.gz → 1.0.6__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 (24) hide show
  1. {icalcli-1.0.5/icalcli.egg-info → icalcli-1.0.6}/PKG-INFO +7 -2
  2. {icalcli-1.0.5 → icalcli-1.0.6}/icalcli/icalcli.py +10 -10
  3. {icalcli-1.0.5 → icalcli-1.0.6/icalcli.egg-info}/PKG-INFO +7 -2
  4. {icalcli-1.0.5 → icalcli-1.0.6}/icalcli.egg-info/SOURCES.txt +0 -3
  5. {icalcli-1.0.5 → icalcli-1.0.6}/setup.py +1 -1
  6. icalcli-1.0.5/CHANGELOG.md +0 -45
  7. icalcli-1.0.5/exclude +0 -7
  8. icalcli-1.0.5/update-github.md +0 -33
  9. {icalcli-1.0.5 → icalcli-1.0.6}/LICENSE +0 -0
  10. {icalcli-1.0.5 → icalcli-1.0.6}/README.md +0 -0
  11. {icalcli-1.0.5 → icalcli-1.0.6}/icalcli/__init__.py +0 -0
  12. {icalcli-1.0.5 → icalcli-1.0.6}/icalcli/argparsers.py +0 -0
  13. {icalcli-1.0.5 → icalcli-1.0.6}/icalcli/etesync_backend/__init__.py +0 -0
  14. {icalcli-1.0.5 → icalcli-1.0.6}/icalcli/etesync_backend/etesync_crud.py +0 -0
  15. {icalcli-1.0.5 → icalcli-1.0.6}/icalcli/etesync_backend/etesync_interface.py +0 -0
  16. {icalcli-1.0.5 → icalcli-1.0.6}/icalcli/file_backend/__init__.py +0 -0
  17. {icalcli-1.0.5 → icalcli-1.0.6}/icalcli/file_backend/ics_interface.py +0 -0
  18. {icalcli-1.0.5 → icalcli-1.0.6}/icalcli/printer.py +0 -0
  19. {icalcli-1.0.5 → icalcli-1.0.6}/icalcli/utils.py +0 -0
  20. {icalcli-1.0.5 → icalcli-1.0.6}/icalcli.egg-info/dependency_links.txt +0 -0
  21. {icalcli-1.0.5 → icalcli-1.0.6}/icalcli.egg-info/entry_points.txt +0 -0
  22. {icalcli-1.0.5 → icalcli-1.0.6}/icalcli.egg-info/requires.txt +0 -0
  23. {icalcli-1.0.5 → icalcli-1.0.6}/icalcli.egg-info/top_level.txt +0 -0
  24. {icalcli-1.0.5 → icalcli-1.0.6}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: icalcli
3
- Version: 1.0.5
3
+ Version: 1.0.6
4
4
  Summary: Icalendar Calendar Command Line Interface
5
5
  Home-page: https://github.com/jrvarma/icalcli
6
6
  Maintainer: Jayanth R. Varma
@@ -12,8 +12,13 @@ Classifier: License :: OSI Approved :: MIT License
12
12
  Classifier: Programming Language :: Python :: 3
13
13
  Requires-Python: >=3.6
14
14
  Description-Content-Type: text/markdown
15
- Provides-Extra: parsedatetime
16
15
  License-File: LICENSE
16
+ Requires-Dist: python-dateutil
17
+ Requires-Dist: parsedatetime
18
+ Requires-Dist: icalendar
19
+ Requires-Dist: recurring_ical_events
20
+ Provides-Extra: parsedatetime
21
+ Requires-Dist: parsedatetime; extra == "parsedatetime"
17
22
 
18
23
  # icalcli
19
24
 
@@ -385,13 +385,13 @@ class IcalendarInterface:
385
385
  decode().strip())
386
386
  if self.graphical_outputs.get('uid'):
387
387
  summary += " <%s>" % (event.Decoded('uid').decode().strip())
388
- # if (
389
- # self.graphical_outputs.get('description')
390
- # and 'description' in event
391
- # and event.Decoded('description').decode().strip()
392
- # and self.outputs.get('description')
393
- # ):
394
- # summary += event.Decoded('description'). decode().strip()
388
+ if (
389
+ self.graphical_outputs.get('description')
390
+ and 'description' in event
391
+ and event.Decoded('description').decode().strip()
392
+ and self.outputs.get('description')
393
+ ):
394
+ summary += event.Decoded('description'). decode().strip()
395
395
  return summary
396
396
 
397
397
  def get_week_events(self, start_dt, end_dt, event_list):
@@ -551,10 +551,11 @@ class IcalendarInterface:
551
551
  -------
552
552
  int: where to cut the word
553
553
  """
554
- print_len = 0
554
+ # print_len = 0
555
555
 
556
556
  words = _u(string).split()
557
557
  for i, word in enumerate(words):
558
+ print_len = self.printed_len(' '.join(words[:i]))
558
559
  word_len = self.printed_len(word)
559
560
  if (
560
561
  (cur_print_len + word_len + print_len
@@ -566,7 +567,7 @@ class IcalendarInterface:
566
567
  if cut_idx == 0:
567
568
  return self.word_cut(word)
568
569
  return (print_len, cut_idx)
569
- print_len += word_len + i # +i for the space between words
570
+ # print_len += word_len + i # +i for the space between words
570
571
  return (print_len, len(' '.join(words[:i])))
571
572
 
572
573
  def get_cut_index(self, event_string):
@@ -741,7 +742,6 @@ class IcalendarInterface:
741
742
  curr_event.title)
742
743
  padding = ' ' * (self.options['cal_width']
743
744
  - print_len)
744
-
745
745
  self.printer.msg(
746
746
  curr_event.title[:cut_idx] + padding,
747
747
  curr_event.color)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: icalcli
3
- Version: 1.0.5
3
+ Version: 1.0.6
4
4
  Summary: Icalendar Calendar Command Line Interface
5
5
  Home-page: https://github.com/jrvarma/icalcli
6
6
  Maintainer: Jayanth R. Varma
@@ -12,8 +12,13 @@ Classifier: License :: OSI Approved :: MIT License
12
12
  Classifier: Programming Language :: Python :: 3
13
13
  Requires-Python: >=3.6
14
14
  Description-Content-Type: text/markdown
15
- Provides-Extra: parsedatetime
16
15
  License-File: LICENSE
16
+ Requires-Dist: python-dateutil
17
+ Requires-Dist: parsedatetime
18
+ Requires-Dist: icalendar
19
+ Requires-Dist: recurring_ical_events
20
+ Provides-Extra: parsedatetime
21
+ Requires-Dist: parsedatetime; extra == "parsedatetime"
17
22
 
18
23
  # icalcli
19
24
 
@@ -1,9 +1,6 @@
1
- CHANGELOG.md
2
1
  LICENSE
3
2
  README.md
4
- exclude
5
3
  setup.py
6
- update-github.md
7
4
  icalcli/__init__.py
8
5
  icalcli/argparsers.py
9
6
  icalcli/icalcli.py
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
  long_description = fh.read()
6
6
 
7
7
  setup(name='icalcli',
8
- version='1.0.5',
8
+ version='1.0.6',
9
9
  maintainer='Jayanth R. Varma',
10
10
  maintainer_email='jrvarma@gmail.com',
11
11
  description='Icalendar Calendar Command Line Interface',
@@ -1,45 +0,0 @@
1
- # 1.0.5 released 2024-04-17
2
-
3
- * Added `cal5w` command to provide current week, two past weeks and two future weeks in a calendar format.
4
- * Introduced option to get more event details (end time, alarm, location, free/busy) in week and calendar views.
5
- * Extended the file backend to allow multiple `ics` files in read only mode.
6
-
7
- # 1.0.4 released 2022-10-11
8
- Bug fixes
9
-
10
- # 1.0.3 released 2022-09-19
11
- Bug fixes
12
-
13
- # 1.0.2 released 2022-08-17
14
- Bug fixes
15
-
16
- # 1.0.1 released 2022-08-16
17
- Bug fixes
18
-
19
- # 1.0.0 released 2022-08-16
20
-
21
- ## Added
22
-
23
- * Added support for recurring events using [python-recurring-ical-events ](https://github.com/niccokunzmann/python-recurring-ical-events).
24
- * It is also possible to create and edit recurring events The recurrence rule has to be given as a string using the `--rrule` option to the `add` and `edit` commands (for example `--rrule FREQ=DAILY;COUNT=5`). Editing/deleting modifies/deletes all occurrences of the event. To delete a single occurrence, use `--exdate`.
25
- * Added support for creating/editing events using raw ICS text. This is mainly for properties (like `attendee` and `comment`) that are not available as command line options.
26
- * If duplicate UIDs are found, they are de-duplicated and the calendar is opened in read only mode. Editing a file with multiple UIDs is dangerous.
27
-
28
- ## Changed
29
-
30
- * Searching for events without any start or end parameters now returns event occurrences only within the last 5 years and next 5 years (this number can be changed with the option `--default_past_years` and `--default_future_years`). More events can be obtained using explicit start and end parameters. For example, `s home '-10 y' 15y` will go back 10 years and forward 15 years. This change was necessitated because a single recurring event (without any `COUNT` or `UNTIL` restrictions) can generate an infinite number of occurrences.
31
- * The `-u` or `--uid` option has been removed and replaced by a more general `-p` or `--property` option that allows any property of the event to be searched. For example, `s -p rrule DAILY` will display all events with a recurrence rule that has a daily frequency.
32
- * Many Bug fixes.
33
- * Several method names were changed (the leading underscore was dropped from all method names), but these were intended to be used only internally.
34
-
35
- # 0.9.9 released 2022-07-12
36
-
37
- ## Added
38
-
39
- * Check for errors while parsing `iCalendar` events
40
- * Added option to provide stack trace for errors. By default, most errors are caught using try blocks and only a cryptic summary is provided. With this option, the stack trace is printed, but the program continues to run.
41
-
42
- ## Changed
43
-
44
- * A few bug fixes
45
-
icalcli-1.0.5/exclude DELETED
@@ -1,7 +0,0 @@
1
- **build**
2
- **dist**
3
- **file_backend_n_screenshots**
4
- **egg-info**
5
- **__pycache__**
6
- exclude
7
- update-github.md
@@ -1,33 +0,0 @@
1
- # After updating local file in /0/bp/
2
-
3
- * Update local github folder with remote by Pull from origin/master
4
- * `rsync -avc --dry-run --exclude-from ~/0/bp/icalcli/exclude \
5
- /home/jrvarma/0/bp/icalcli/ /home/jrvarma/0/src/github/icalcli/`
6
- * `rsync -avc --exclude-from ~/0/bp/icalcli/exclude \
7
- /home/jrvarma/0/bp/icalcli/ /home/jrvarma/0/src/github/icalcli/`
8
- * Commit changes in local github folder
9
- * Push to remote origin/master
10
-
11
- # After updating repo
12
-
13
- * `rsync -avc --dry-run --exclude '.git/' --exclude screenshots\
14
- ~/0/src/github/icalcli/ ~/0/bp/icalcli/ `
15
- * `rsync -avc --exclude '.git/' \
16
- ~/0/src/github/icalcli/ ~/0/bp/icalcli/ `
17
-
18
- ## Update PyPi
19
-
20
- * Bump version number (Edit `setup.py`)
21
-
22
- ```
23
- cd ~/0/bp/icalcli
24
- rm /0/bp/icalcli/dist/*
25
- python3 setup.py sdist bdist_wheel
26
- python3 -m twine upload dist/*
27
- ```
28
-
29
- ## Install new version from PyPi
30
-
31
- ```
32
- pip install --upgrade icalcli
33
- ```
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes