renumSeq 1.4.0__tar.gz → 2.0.0__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
  3-Clause BSD License
2
2
 
3
- Copyright (c) 2008-2022, James Philip Rowell,
3
+ Copyright (c) 2008-2025, James Philip Rowell,
4
4
  Alpha Eleven Incorporated
5
5
  www.alpha-eleven.com
6
6
  All rights reserved.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: renumSeq
3
- Version: 1.4.0
3
+ Version: 2.0.0
4
4
  Summary: Tool to renumber image sequences.
5
5
  Home-page: https://github.com/jrowellfx/renumSeq
6
6
  Author: James Philip Rowell
@@ -15,7 +15,16 @@ Requires-Python: >=3.7, <4
15
15
  Description-Content-Type: text/markdown
16
16
  License-File: LICENSE
17
17
  Requires-Dist: seqLister>=1.2.0
18
- Requires-Dist: lsseq>=2.5.0
18
+ Requires-Dist: lsseq>=4.0.0
19
+ Dynamic: author
20
+ Dynamic: author-email
21
+ Dynamic: classifier
22
+ Dynamic: description
23
+ Dynamic: description-content-type
24
+ Dynamic: home-page
25
+ Dynamic: requires-dist
26
+ Dynamic: requires-python
27
+ Dynamic: summary
19
28
 
20
29
  # About renumseq
21
30
 
@@ -29,12 +38,12 @@ It also allows you adjust the padding of the frame numbers.
29
38
  `renumseq` uses the syntax of the native output of
30
39
  [`lsseq`](https://github.com/jrowellfx/lsseq) to specify
31
40
  the sequence to be renumbered. Therefore it is recommended to
32
- also install `lsseq` as it makes using `renumseq` easier.
41
+ use `lsseq` as it makes using `renumseq` easier.
33
42
 
34
43
  For example, use `lsseq` to list a sequence, then
35
44
  cut and paste its
36
45
  output as the arguments to `renumseq` with the appropriate
37
- arguments for setting the offset.
46
+ arguments for setting the offset or new start-frame.
38
47
 
39
48
  `renumseq` was written to be safe in that it won't
40
49
  unintentionally overwrite any existing files
@@ -48,19 +57,19 @@ there is an option to force `renumseq` to overwrite those files if desired.
48
57
  `renumseq` doesn't need to make temporary copies of files during the renumbering
49
58
  (it does a move of the file), so it's fast.
50
59
 
51
- `renumseq` also has a useful option, called `--replaceUnderscore`
60
+ `renumseq` also has a useful option, called `--replace-underscore`
52
61
  that changes any underscore-separators (separating the filename from the
53
62
  frame-number) with dot-separators, like this:
54
63
 
55
64
  `filename_[n-m].extension` -> `filename.[n-m].extension`
56
65
 
57
66
  `Protip`: If all you want to do is switch the separator from an underscore to a dot, then
58
- use a zero offset, plus the `--replaceUnderscore` argument.
67
+ use a zero offset, plus the `--replace-underscore` argument.
59
68
 
60
69
  ## Installing renumseq
61
70
 
62
71
  ```
63
- python3 -m pip install renumSeq
72
+ python3 -m pip install renumSeq --upgrade
64
73
  ```
65
74
 
66
75
  ## Testing renumseq
@@ -10,12 +10,12 @@ It also allows you adjust the padding of the frame numbers.
10
10
  `renumseq` uses the syntax of the native output of
11
11
  [`lsseq`](https://github.com/jrowellfx/lsseq) to specify
12
12
  the sequence to be renumbered. Therefore it is recommended to
13
- also install `lsseq` as it makes using `renumseq` easier.
13
+ use `lsseq` as it makes using `renumseq` easier.
14
14
 
15
15
  For example, use `lsseq` to list a sequence, then
16
16
  cut and paste its
17
17
  output as the arguments to `renumseq` with the appropriate
18
- arguments for setting the offset.
18
+ arguments for setting the offset or new start-frame.
19
19
 
20
20
  `renumseq` was written to be safe in that it won't
21
21
  unintentionally overwrite any existing files
@@ -29,19 +29,19 @@ there is an option to force `renumseq` to overwrite those files if desired.
29
29
  `renumseq` doesn't need to make temporary copies of files during the renumbering
30
30
  (it does a move of the file), so it's fast.
31
31
 
32
- `renumseq` also has a useful option, called `--replaceUnderscore`
32
+ `renumseq` also has a useful option, called `--replace-underscore`
33
33
  that changes any underscore-separators (separating the filename from the
34
34
  frame-number) with dot-separators, like this:
35
35
 
36
36
  `filename_[n-m].extension` -> `filename.[n-m].extension`
37
37
 
38
38
  `Protip`: If all you want to do is switch the separator from an underscore to a dot, then
39
- use a zero offset, plus the `--replaceUnderscore` argument.
39
+ use a zero offset, plus the `--replace-underscore` argument.
40
40
 
41
41
  ## Installing renumseq
42
42
 
43
43
  ```
44
- python3 -m pip install renumSeq
44
+ python3 -m pip install renumSeq --upgrade
45
45
  ```
46
46
 
47
47
  ## Testing renumseq
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: renumSeq
3
- Version: 1.4.0
3
+ Version: 2.0.0
4
4
  Summary: Tool to renumber image sequences.
5
5
  Home-page: https://github.com/jrowellfx/renumSeq
6
6
  Author: James Philip Rowell
@@ -15,7 +15,16 @@ Requires-Python: >=3.7, <4
15
15
  Description-Content-Type: text/markdown
16
16
  License-File: LICENSE
17
17
  Requires-Dist: seqLister>=1.2.0
18
- Requires-Dist: lsseq>=2.5.0
18
+ Requires-Dist: lsseq>=4.0.0
19
+ Dynamic: author
20
+ Dynamic: author-email
21
+ Dynamic: classifier
22
+ Dynamic: description
23
+ Dynamic: description-content-type
24
+ Dynamic: home-page
25
+ Dynamic: requires-dist
26
+ Dynamic: requires-python
27
+ Dynamic: summary
19
28
 
20
29
  # About renumseq
21
30
 
@@ -29,12 +38,12 @@ It also allows you adjust the padding of the frame numbers.
29
38
  `renumseq` uses the syntax of the native output of
30
39
  [`lsseq`](https://github.com/jrowellfx/lsseq) to specify
31
40
  the sequence to be renumbered. Therefore it is recommended to
32
- also install `lsseq` as it makes using `renumseq` easier.
41
+ use `lsseq` as it makes using `renumseq` easier.
33
42
 
34
43
  For example, use `lsseq` to list a sequence, then
35
44
  cut and paste its
36
45
  output as the arguments to `renumseq` with the appropriate
37
- arguments for setting the offset.
46
+ arguments for setting the offset or new start-frame.
38
47
 
39
48
  `renumseq` was written to be safe in that it won't
40
49
  unintentionally overwrite any existing files
@@ -48,19 +57,19 @@ there is an option to force `renumseq` to overwrite those files if desired.
48
57
  `renumseq` doesn't need to make temporary copies of files during the renumbering
49
58
  (it does a move of the file), so it's fast.
50
59
 
51
- `renumseq` also has a useful option, called `--replaceUnderscore`
60
+ `renumseq` also has a useful option, called `--replace-underscore`
52
61
  that changes any underscore-separators (separating the filename from the
53
62
  frame-number) with dot-separators, like this:
54
63
 
55
64
  `filename_[n-m].extension` -> `filename.[n-m].extension`
56
65
 
57
66
  `Protip`: If all you want to do is switch the separator from an underscore to a dot, then
58
- use a zero offset, plus the `--replaceUnderscore` argument.
67
+ use a zero offset, plus the `--replace-underscore` argument.
59
68
 
60
69
  ## Installing renumseq
61
70
 
62
71
  ```
63
- python3 -m pip install renumSeq
72
+ python3 -m pip install renumSeq --upgrade
64
73
  ```
65
74
 
66
75
  ## Testing renumseq
@@ -1,2 +1,2 @@
1
1
  seqLister>=1.2.0
2
- lsseq>=2.5.0
2
+ lsseq>=4.0.0
@@ -2,7 +2,7 @@
2
2
 
3
3
  # 3-Clause BSD License
4
4
  #
5
- # Copyright (c) 2008-2022, James Philip Rowell,
5
+ # Copyright (c) 2008-2025, James Philip Rowell,
6
6
  # Alpha Eleven Incorporated
7
7
  # www.alpha-eleven.com
8
8
  # All rights reserved.
@@ -54,7 +54,7 @@ import glob
54
54
  # MINOR version for added functionality in a backwards compatible manner
55
55
  # PATCH version for backwards compatible bug fixes
56
56
  #
57
- VERSION = "1.4.0"
57
+ VERSION = "2.0.0"
58
58
 
59
59
  PROG_NAME = "renumseq"
60
60
 
@@ -63,7 +63,7 @@ EXIT_ERROR = 1 # Internal error other than argparse - currently not u
63
63
  EXIT_ARGPARSE_ERROR = 2 # The default code that argparse exits with if bad option.
64
64
 
65
65
  # List of date formats accepted to set file times with --touch.
66
- # They are same as the formats used by 'lsseq --onlyShow'.
66
+ # They are same as the formats used by 'lsseq --only-show'.
67
67
  #
68
68
  # Note: We MUST list %y before %Y in each case below to make sure
69
69
  # that, for example, "200731" get's interpreted as July 31, 2020
@@ -122,15 +122,9 @@ def main():
122
122
  Renumber the frame range of each SEQ listed on the command line.
123
123
  SEQ should be specified using lsseq's native format.
124
124
 
125
- Protip: Turning off globbing, or enclosing SEQ in quotes, or placing
126
- backslashes ahead of '[' and ']' will likely be necessary to turn off the special
125
+ Protip: Enclosing SEQ in quotes will turn off the special
127
126
  treatment of '[' and ']' by the shell.
128
127
 
129
- Caution: The files in the sequence MUST BE correctly padded.
130
- Pay attention to lsseq's --showBadPadding for reports of badly padded frame
131
- numbers and fix them before renumbering a sequence with this utility.
132
- (This is a rare issue that can be fixed with the command 'fixSeqPadding'.)
133
-
134
128
  Example usage:
135
129
  $ lsseq
136
130
  aaa.[001-005].tif
@@ -174,8 +168,7 @@ def main():
174
168
  help="set the padding of the frame numbers to be PAD digits. \
175
169
  The default action is to leave the padding unchanged. Note, \
176
170
  lsseq's native format output properly lists the sequence \
177
- range with appropriate padding and can also report when there are \
178
- incorrectly padded frame-numbers with --showBadPadding")
171
+ range with appropriate padding.")
179
172
  p.add_argument("--rename", type=str, nargs=1,
180
173
  dest="newSeqName",
181
174
  default=[],
@@ -183,7 +176,7 @@ def main():
183
176
  help="Rename the DESCRIPTIVE_NAME part of SEQ from its existing name to NEW_SEQNAME. \
184
177
  When using this option then the command will exit with an error unless \
185
178
  exactly one SEQ is being renamed and/or renumbered.")
186
- p.add_argument("--replaceUnderscore", action="store_true",
179
+ p.add_argument("--replace-underscore", action="store_true",
187
180
  dest="fixUnderscore", default=False,
188
181
  help="in the case that SEQ uses an underscore ('_') \
189
182
  separating the filename from the frame number; then when renumbering \
@@ -198,17 +191,14 @@ def main():
198
191
  metavar="[CC]YYMMDD[-hh[mm[ss]]]",
199
192
  help="If no date is provided then update the access time of \
200
193
  the files being renumbered to the current time. \
201
- Otherwise, use the date provided to update the \
202
- file's access time. (Default: renumbering a sequence leaves \
203
- the access time unchanged.) \
204
- When specifying the date, the optional CC (century) defaults to the current century. \
205
- The optional '-hh' (hours), 'mm' (minutes) or 'ss' (seconds) \
206
- default to zero if not specified. \
207
- Note: if this is the last argument on the command line and the optional \
208
- date was not specified then \
209
- append '--' before the list of SEQs to delineate the end of the options.")
210
-
211
- p.add_argument("--dryRun", "--dryrun", action="store_true",
194
+ Otherwise, use the date provided to update the file's access time. \
195
+ The optional CC (century) defaults to the current century and \
196
+ '-hh' (hours), 'mm' (minutes) or 'ss' (seconds) \
197
+ default to zero if not specified.\
198
+ Note: the default action is to leave \
199
+ the access time of the SEQ unchanged. ")
200
+
201
+ p.add_argument("--dry-run", action="store_true",
212
202
  dest="dryRun", default=False,
213
203
  help="Don't renumber SEQ, just display how the \
214
204
  files would have been renumbered. Forces --verbose" )
@@ -322,7 +312,8 @@ def main():
322
312
  globResult = glob.glob(globPattern)
323
313
 
324
314
  if len(globResult) > 0 :
325
- lsseqCmd = ['lsseq', '--looseNumSeparator', '--onlySequences', '--noErrorLists'] + globResult
315
+
316
+ lsseqCmd = ['lsseq', '--loose-num-separator', '--only-sequences', '--no-error-lists'] + globResult
326
317
  lsseqResult = subprocess.run(lsseqCmd, capture_output=True, text=True)
327
318
  if len(lsseqResult.stdout) > 0 :
328
319
  if not args.silent :
@@ -565,7 +556,7 @@ def main():
565
556
  #
566
557
  # THIS IS an UNLIKELY OCCURANCE!
567
558
  #
568
- # However users should pay attention to the --showBadPadding option of 'lsseq'
559
+ # However users should pay attention to the --show-bad-padding option of 'lsseq'
569
560
  # and if need be, first fix SEQ with 'fixseqpadding' before using this
570
561
  # util to get correct results in all circumstances.
571
562
  #
@@ -14,7 +14,7 @@ long_description = (here / 'README.md').read_text(encoding='utf-8')
14
14
 
15
15
  setup(
16
16
  name = 'renumSeq',
17
- version = '1.4.0',
17
+ version = '2.0.0',
18
18
  description='Tool to renumber image sequences.',
19
19
  long_description=long_description,
20
20
  long_description_content_type='text/markdown',
@@ -33,7 +33,7 @@ setup(
33
33
 
34
34
  packages = ['renumseq'],
35
35
  python_requires = '>=3.7, <4',
36
- install_requires=['seqLister>=1.2.0', 'lsseq>=2.5.0'],
36
+ install_requires=['seqLister>=1.2.0', 'lsseq>=4.0.0'],
37
37
 
38
38
  entry_points = {
39
39
  'console_scripts': [
File without changes
File without changes