lsseq 4.3.0__tar.gz → 4.3.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: 2.4
2
2
  Name: lsseq
3
- Version: 4.3.0
3
+ Version: 4.3.1
4
4
  Summary: ls-like command for image-sequences
5
5
  Home-page: https://github.com/jrowellfx/lsseq
6
6
  Author: James Philip Rowell
@@ -94,6 +94,8 @@ however it can print sequences in a variety of formats useful for `nuke`,
94
94
  ```
95
95
  python3 -m pip install lsseq --upgrade
96
96
  ```
97
+ If installing locally, it's probably best to install in a virtual-environment
98
+ or [`venv`](https://docs.python.org/3/library/venv.html).
97
99
 
98
100
  There is additional installation-information in an
99
101
  [addendum](https://github.com/jrowellfx/lsseq#addendum---more-on-installing-command-line-tools)
@@ -267,7 +269,7 @@ extend `lsseq's` capability.
267
269
  bbb/bbx.[0097-0103].tif
268
270
  bbb/bby.[0197-0203].tif
269
271
 
270
- 5$ lsseq --prepend-path-abs --skip-missing --format rv *
272
+ 5$ lsseq --prepend-path-abs --format rv *
271
273
  /user/jrowellfx/test/ccc.0101.exr
272
274
  /user/jrowellfx/test/aaa/aaa.97-103@@@.tif
273
275
  /user/jrowellfx/test/bbb/bbx.97-103#.tif
@@ -318,12 +320,13 @@ the following EXIT codes will be combined bitwise to return
318
320
  possibly more than one different warning and/or error.
319
321
 
320
322
  ```
321
- EXIT_NO_ERROR = 0 # Clean exit.
322
- EXIT_LS_ERROR = 1 # A call to 'ls' returned an error code.
323
- EXIT_ARGPARSE_ERROR = 2 # A bad option was passed to lsseq. Exit lsseq.
324
- EXIT_LSSEQ_SOFTLINK_WARNING = 4 # warning - broken softlink found
325
- EXIT_LSSEQ_PADDING_WARNING = 8 # warning - two images with same name, same frame-num, but diff padding
326
- EXIT_CD_PERMISSION_WARNING = 16 # warning - recursive descent blocked - no execute permission on dir
323
+ EXIT_NO_ERROR = 0 # Clean exit.
324
+ EXIT_LS_WARNING = 1 # A call to 'ls' returned an error or another internal issue
325
+ EXIT_ARGPARSE_ERROR = 2 # The default code that argparse exits with if bad option.
326
+ EXIT_LSSEQ_SOFTLINK_WARNING = 4 # warning - broken softlink
327
+ EXIT_LSSEQ_PADDING_WARNING = 8 # warning - two images with same name, same frame-num, diff padding
328
+ EXIT_CD_PERMISSION_WARNING = 16 # warning - recursive descent blocked - no execute permission on dir
329
+ EXIT_LSSEQ_NOSUCHFILE_WARNING = 32 # A non-existent sequence-file was listed on the command line.
327
330
  ```
328
331
 
329
332
  ## `lsseq --help`
@@ -530,7 +533,10 @@ LS(1) control for non-sequences:
530
533
  --directory, -d list directory entries instead of contents, and do not
531
534
  follow symbolic links (see LS(1))
532
535
  --classify, -F append indicator (one of */=>@|) to entries, and do
533
- not follow symbolic links. (see LS(1))
536
+ not follow symbolic links to directories. (see LS(1)
537
+ for the meanings of the symbols.) Note: the '@' will
538
+ also be appended to any sequences made up of symbolic
539
+ links.
534
540
  ```
535
541
 
536
542
  ## Addendum - more on installing command-line tools
@@ -559,7 +565,7 @@ so that they are accessible to all users. This works on both MacOS and Linux.
559
565
  # ln -s /usr/local/venv/bin/fixseqpadding /usr/local/bin/fixseqpadding
560
566
  # exit
561
567
  $ lsseq --version
562
- 4.3.0
568
+ 4.3.1
563
569
  ```
564
570
 
565
571
  At this point any user should be able to run any of the commands linked in the example above.
@@ -631,7 +637,8 @@ the transition quite painless. Especially if you make use
631
637
  of [`runsed`](https://github.com/jrowellfx/vfxTdUtils) which if you haven't used it before,
632
638
  now is the time, it's extremely helpful.
633
639
 
634
- There are two files provided at the root-level of the repo, namely:
640
+ There are two files provided at the root-level of the repo in
641
+ the directory [`updateLongOpts`](https://github.com/jrowellfx/lsseq/tree/master/updateLongOpts), namely:
635
642
  `sed.script.jrowellfx.doubleDashToKebab` and `sed.script.lsseq.v3tov4`.
636
643
 
637
644
  The first one can be used to fix the long-option names for ALL the
@@ -646,14 +653,13 @@ on your system.
646
653
  ```
647
654
  $ cd ~/bin
648
655
  $ ls
649
- myScriptThatUsesLsseq
656
+ myScriptThatUsesLsseq sed.script.jrowellfx.doubleDashToKebab
650
657
  $ cat myScriptThatUsesLsseq
651
658
  #!/bin/bash
652
659
 
653
660
  lsseq --globalSortByTime --recursive --prependPathAbs /Volumes/myProjectFiles
654
661
 
655
- $ mv ~/Downloads/sed.script.jrowellfx.doubleDashToKebab sed.script
656
- $ runsed myScriptThatUsesLsseq
662
+ $ runsed -f sed.script.jrowellfx.doubleDashToKebab myScriptThatUsesLsseq
657
663
  $ ./.runsed.diff.runsed
658
664
  + /usr/bin/diff ./.myScriptThatUsesLsseq.runsed myScriptThatUsesLsseq
659
665
  3c3
@@ -65,6 +65,8 @@ however it can print sequences in a variety of formats useful for `nuke`,
65
65
  ```
66
66
  python3 -m pip install lsseq --upgrade
67
67
  ```
68
+ If installing locally, it's probably best to install in a virtual-environment
69
+ or [`venv`](https://docs.python.org/3/library/venv.html).
68
70
 
69
71
  There is additional installation-information in an
70
72
  [addendum](https://github.com/jrowellfx/lsseq#addendum---more-on-installing-command-line-tools)
@@ -238,7 +240,7 @@ extend `lsseq's` capability.
238
240
  bbb/bbx.[0097-0103].tif
239
241
  bbb/bby.[0197-0203].tif
240
242
 
241
- 5$ lsseq --prepend-path-abs --skip-missing --format rv *
243
+ 5$ lsseq --prepend-path-abs --format rv *
242
244
  /user/jrowellfx/test/ccc.0101.exr
243
245
  /user/jrowellfx/test/aaa/aaa.97-103@@@.tif
244
246
  /user/jrowellfx/test/bbb/bbx.97-103#.tif
@@ -289,12 +291,13 @@ the following EXIT codes will be combined bitwise to return
289
291
  possibly more than one different warning and/or error.
290
292
 
291
293
  ```
292
- EXIT_NO_ERROR = 0 # Clean exit.
293
- EXIT_LS_ERROR = 1 # A call to 'ls' returned an error code.
294
- EXIT_ARGPARSE_ERROR = 2 # A bad option was passed to lsseq. Exit lsseq.
295
- EXIT_LSSEQ_SOFTLINK_WARNING = 4 # warning - broken softlink found
296
- EXIT_LSSEQ_PADDING_WARNING = 8 # warning - two images with same name, same frame-num, but diff padding
297
- EXIT_CD_PERMISSION_WARNING = 16 # warning - recursive descent blocked - no execute permission on dir
294
+ EXIT_NO_ERROR = 0 # Clean exit.
295
+ EXIT_LS_WARNING = 1 # A call to 'ls' returned an error or another internal issue
296
+ EXIT_ARGPARSE_ERROR = 2 # The default code that argparse exits with if bad option.
297
+ EXIT_LSSEQ_SOFTLINK_WARNING = 4 # warning - broken softlink
298
+ EXIT_LSSEQ_PADDING_WARNING = 8 # warning - two images with same name, same frame-num, diff padding
299
+ EXIT_CD_PERMISSION_WARNING = 16 # warning - recursive descent blocked - no execute permission on dir
300
+ EXIT_LSSEQ_NOSUCHFILE_WARNING = 32 # A non-existent sequence-file was listed on the command line.
298
301
  ```
299
302
 
300
303
  ## `lsseq --help`
@@ -501,7 +504,10 @@ LS(1) control for non-sequences:
501
504
  --directory, -d list directory entries instead of contents, and do not
502
505
  follow symbolic links (see LS(1))
503
506
  --classify, -F append indicator (one of */=>@|) to entries, and do
504
- not follow symbolic links. (see LS(1))
507
+ not follow symbolic links to directories. (see LS(1)
508
+ for the meanings of the symbols.) Note: the '@' will
509
+ also be appended to any sequences made up of symbolic
510
+ links.
505
511
  ```
506
512
 
507
513
  ## Addendum - more on installing command-line tools
@@ -530,7 +536,7 @@ so that they are accessible to all users. This works on both MacOS and Linux.
530
536
  # ln -s /usr/local/venv/bin/fixseqpadding /usr/local/bin/fixseqpadding
531
537
  # exit
532
538
  $ lsseq --version
533
- 4.3.0
539
+ 4.3.1
534
540
  ```
535
541
 
536
542
  At this point any user should be able to run any of the commands linked in the example above.
@@ -602,7 +608,8 @@ the transition quite painless. Especially if you make use
602
608
  of [`runsed`](https://github.com/jrowellfx/vfxTdUtils) which if you haven't used it before,
603
609
  now is the time, it's extremely helpful.
604
610
 
605
- There are two files provided at the root-level of the repo, namely:
611
+ There are two files provided at the root-level of the repo in
612
+ the directory [`updateLongOpts`](https://github.com/jrowellfx/lsseq/tree/master/updateLongOpts), namely:
606
613
  `sed.script.jrowellfx.doubleDashToKebab` and `sed.script.lsseq.v3tov4`.
607
614
 
608
615
  The first one can be used to fix the long-option names for ALL the
@@ -617,14 +624,13 @@ on your system.
617
624
  ```
618
625
  $ cd ~/bin
619
626
  $ ls
620
- myScriptThatUsesLsseq
627
+ myScriptThatUsesLsseq sed.script.jrowellfx.doubleDashToKebab
621
628
  $ cat myScriptThatUsesLsseq
622
629
  #!/bin/bash
623
630
 
624
631
  lsseq --globalSortByTime --recursive --prependPathAbs /Volumes/myProjectFiles
625
632
 
626
- $ mv ~/Downloads/sed.script.jrowellfx.doubleDashToKebab sed.script
627
- $ runsed myScriptThatUsesLsseq
633
+ $ runsed -f sed.script.jrowellfx.doubleDashToKebab myScriptThatUsesLsseq
628
634
  $ ./.runsed.diff.runsed
629
635
  + /usr/bin/diff ./.myScriptThatUsesLsseq.runsed myScriptThatUsesLsseq
630
636
  3c3
@@ -69,7 +69,7 @@ import seqLister
69
69
  # MINOR version for added functionality in a backwards compatible manner
70
70
  # PATCH version for backwards compatible bug fixes
71
71
  #
72
- VERSION = "4.3.0" # Semantic Versioning 2.0.0
72
+ VERSION = "4.3.1" # Semantic Versioning 2.0.0
73
73
 
74
74
  PROG_NAME = "lsseq"
75
75
 
@@ -351,7 +351,7 @@ def readByteShortForm(numBytes) :
351
351
  multiplier = 1<<30
352
352
  numBytes = numBytes[:-1]
353
353
 
354
- try :
354
+ try:
355
355
  b = float(numBytes)
356
356
  if b <= 0 :
357
357
  return 512
@@ -1644,6 +1644,23 @@ def listSeqDir(dirContents, path, isCmdLineArg, args, traversedPath) :
1644
1644
  else :
1645
1645
  passedPath = traversedPath + d + "/"
1646
1646
 
1647
+ # JPR - first check if we have permission for directory 'd'.
1648
+ #
1649
+ can_read = os.access(d, os.Sanitize_Flags if hasattr(os, 'Sanitize_Flags') else os.R_OK)
1650
+ can_execute = os.access(d, os.X_OK) # Required to enter/traverse a directory
1651
+ if not (can_read and can_execute) :
1652
+ if not args.silent :
1653
+ sys.stdout.flush()
1654
+ sys.stderr.flush()
1655
+ if passedPath[-1] == "/" :
1656
+ passedPath = passedPath[:-1]
1657
+ print(PROG_NAME, ": warning: can not descend into ",
1658
+ passedPath, ": permission denied.",
1659
+ sep='', file=sys.stderr)
1660
+ sys.stderr.flush()
1661
+ gExitStatus = gExitStatus | EXIT_CD_PERMISSION_WARNING
1662
+ continue
1663
+ #
1647
1664
  listSeqDir(stripDotFiles(os.listdir(d), args.ignoreDotFiles),
1648
1665
  d, False, args, passedPath)
1649
1666
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lsseq
3
- Version: 4.3.0
3
+ Version: 4.3.1
4
4
  Summary: ls-like command for image-sequences
5
5
  Home-page: https://github.com/jrowellfx/lsseq
6
6
  Author: James Philip Rowell
@@ -94,6 +94,8 @@ however it can print sequences in a variety of formats useful for `nuke`,
94
94
  ```
95
95
  python3 -m pip install lsseq --upgrade
96
96
  ```
97
+ If installing locally, it's probably best to install in a virtual-environment
98
+ or [`venv`](https://docs.python.org/3/library/venv.html).
97
99
 
98
100
  There is additional installation-information in an
99
101
  [addendum](https://github.com/jrowellfx/lsseq#addendum---more-on-installing-command-line-tools)
@@ -267,7 +269,7 @@ extend `lsseq's` capability.
267
269
  bbb/bbx.[0097-0103].tif
268
270
  bbb/bby.[0197-0203].tif
269
271
 
270
- 5$ lsseq --prepend-path-abs --skip-missing --format rv *
272
+ 5$ lsseq --prepend-path-abs --format rv *
271
273
  /user/jrowellfx/test/ccc.0101.exr
272
274
  /user/jrowellfx/test/aaa/aaa.97-103@@@.tif
273
275
  /user/jrowellfx/test/bbb/bbx.97-103#.tif
@@ -318,12 +320,13 @@ the following EXIT codes will be combined bitwise to return
318
320
  possibly more than one different warning and/or error.
319
321
 
320
322
  ```
321
- EXIT_NO_ERROR = 0 # Clean exit.
322
- EXIT_LS_ERROR = 1 # A call to 'ls' returned an error code.
323
- EXIT_ARGPARSE_ERROR = 2 # A bad option was passed to lsseq. Exit lsseq.
324
- EXIT_LSSEQ_SOFTLINK_WARNING = 4 # warning - broken softlink found
325
- EXIT_LSSEQ_PADDING_WARNING = 8 # warning - two images with same name, same frame-num, but diff padding
326
- EXIT_CD_PERMISSION_WARNING = 16 # warning - recursive descent blocked - no execute permission on dir
323
+ EXIT_NO_ERROR = 0 # Clean exit.
324
+ EXIT_LS_WARNING = 1 # A call to 'ls' returned an error or another internal issue
325
+ EXIT_ARGPARSE_ERROR = 2 # The default code that argparse exits with if bad option.
326
+ EXIT_LSSEQ_SOFTLINK_WARNING = 4 # warning - broken softlink
327
+ EXIT_LSSEQ_PADDING_WARNING = 8 # warning - two images with same name, same frame-num, diff padding
328
+ EXIT_CD_PERMISSION_WARNING = 16 # warning - recursive descent blocked - no execute permission on dir
329
+ EXIT_LSSEQ_NOSUCHFILE_WARNING = 32 # A non-existent sequence-file was listed on the command line.
327
330
  ```
328
331
 
329
332
  ## `lsseq --help`
@@ -530,7 +533,10 @@ LS(1) control for non-sequences:
530
533
  --directory, -d list directory entries instead of contents, and do not
531
534
  follow symbolic links (see LS(1))
532
535
  --classify, -F append indicator (one of */=>@|) to entries, and do
533
- not follow symbolic links. (see LS(1))
536
+ not follow symbolic links to directories. (see LS(1)
537
+ for the meanings of the symbols.) Note: the '@' will
538
+ also be appended to any sequences made up of symbolic
539
+ links.
534
540
  ```
535
541
 
536
542
  ## Addendum - more on installing command-line tools
@@ -559,7 +565,7 @@ so that they are accessible to all users. This works on both MacOS and Linux.
559
565
  # ln -s /usr/local/venv/bin/fixseqpadding /usr/local/bin/fixseqpadding
560
566
  # exit
561
567
  $ lsseq --version
562
- 4.3.0
568
+ 4.3.1
563
569
  ```
564
570
 
565
571
  At this point any user should be able to run any of the commands linked in the example above.
@@ -631,7 +637,8 @@ the transition quite painless. Especially if you make use
631
637
  of [`runsed`](https://github.com/jrowellfx/vfxTdUtils) which if you haven't used it before,
632
638
  now is the time, it's extremely helpful.
633
639
 
634
- There are two files provided at the root-level of the repo, namely:
640
+ There are two files provided at the root-level of the repo in
641
+ the directory [`updateLongOpts`](https://github.com/jrowellfx/lsseq/tree/master/updateLongOpts), namely:
635
642
  `sed.script.jrowellfx.doubleDashToKebab` and `sed.script.lsseq.v3tov4`.
636
643
 
637
644
  The first one can be used to fix the long-option names for ALL the
@@ -646,14 +653,13 @@ on your system.
646
653
  ```
647
654
  $ cd ~/bin
648
655
  $ ls
649
- myScriptThatUsesLsseq
656
+ myScriptThatUsesLsseq sed.script.jrowellfx.doubleDashToKebab
650
657
  $ cat myScriptThatUsesLsseq
651
658
  #!/bin/bash
652
659
 
653
660
  lsseq --globalSortByTime --recursive --prependPathAbs /Volumes/myProjectFiles
654
661
 
655
- $ mv ~/Downloads/sed.script.jrowellfx.doubleDashToKebab sed.script
656
- $ runsed myScriptThatUsesLsseq
662
+ $ runsed -f sed.script.jrowellfx.doubleDashToKebab myScriptThatUsesLsseq
657
663
  $ ./.runsed.diff.runsed
658
664
  + /usr/bin/diff ./.myScriptThatUsesLsseq.runsed myScriptThatUsesLsseq
659
665
  3c3
@@ -8,7 +8,7 @@ long_description = (here / 'README.md').read_text(encoding='utf-8')
8
8
 
9
9
  setup(
10
10
  name = 'lsseq',
11
- version = '4.3.0',
11
+ version = '4.3.1',
12
12
  description='ls-like command for image-sequences',
13
13
  long_description=long_description,
14
14
  long_description_content_type='text/markdown',
File without changes
File without changes
File without changes
File without changes
File without changes