HwCodecDetect 0.1.8__tar.gz → 0.1.9__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 (22) hide show
  1. {hwcodecdetect-0.1.8/src/HwCodecDetect.egg-info → hwcodecdetect-0.1.9}/PKG-INFO +1 -1
  2. hwcodecdetect-0.1.9/VERSION +1 -0
  3. {hwcodecdetect-0.1.8 → hwcodecdetect-0.1.9}/src/HwCodecDetect/run_tests.py +13 -9
  4. hwcodecdetect-0.1.9/src/HwCodecDetect/version.py +1 -0
  5. {hwcodecdetect-0.1.8 → hwcodecdetect-0.1.9/src/HwCodecDetect.egg-info}/PKG-INFO +1 -1
  6. hwcodecdetect-0.1.8/VERSION +0 -1
  7. hwcodecdetect-0.1.8/src/HwCodecDetect/version.py +0 -1
  8. {hwcodecdetect-0.1.8 → hwcodecdetect-0.1.9}/LICENSE +0 -0
  9. {hwcodecdetect-0.1.8 → hwcodecdetect-0.1.9}/MANIFEST.in +0 -0
  10. {hwcodecdetect-0.1.8 → hwcodecdetect-0.1.9}/README.md +0 -0
  11. {hwcodecdetect-0.1.8 → hwcodecdetect-0.1.9}/pyproject.toml +0 -0
  12. {hwcodecdetect-0.1.8 → hwcodecdetect-0.1.9}/requirements.txt +0 -0
  13. {hwcodecdetect-0.1.8 → hwcodecdetect-0.1.9}/setup.cfg +0 -0
  14. {hwcodecdetect-0.1.8 → hwcodecdetect-0.1.9}/setup.py +0 -0
  15. {hwcodecdetect-0.1.8 → hwcodecdetect-0.1.9}/src/HwCodecDetect/__init__.py +0 -0
  16. {hwcodecdetect-0.1.8 → hwcodecdetect-0.1.9}/src/HwCodecDetect/install_ffmpeg_if_needed.py +0 -0
  17. {hwcodecdetect-0.1.8 → hwcodecdetect-0.1.9}/src/HwCodecDetect.egg-info/SOURCES.txt +0 -0
  18. {hwcodecdetect-0.1.8 → hwcodecdetect-0.1.9}/src/HwCodecDetect.egg-info/dependency_links.txt +0 -0
  19. {hwcodecdetect-0.1.8 → hwcodecdetect-0.1.9}/src/HwCodecDetect.egg-info/entry_points.txt +0 -0
  20. {hwcodecdetect-0.1.8 → hwcodecdetect-0.1.9}/src/HwCodecDetect.egg-info/requires.txt +0 -0
  21. {hwcodecdetect-0.1.8 → hwcodecdetect-0.1.9}/src/HwCodecDetect.egg-info/top_level.txt +0 -0
  22. {hwcodecdetect-0.1.8 → hwcodecdetect-0.1.9}/src/HwCodecDetect.egg-info/zip-safe +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: HwCodecDetect
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: A cross-platform tool to automatically detect and test hardware video decoders/encoders using FFmpeg.
5
5
  Home-page: https://github.com/whyb/HwCodecDetect
6
6
  Author: whyb
@@ -0,0 +1 @@
1
+ 0.1.9
@@ -607,7 +607,7 @@ def main():
607
607
  """ + help_text, formatter_class=argparse.RawTextHelpFormatter)
608
608
 
609
609
  parser.add_argument(
610
- "--encoder-count",
610
+ "-ec", "--encoder-count",
611
611
  type=int,
612
612
  default=CONCURRENT_ENCODER_COUNT,
613
613
  help=f"Set the number of multi-process concurrent encoder testing. (default: {CONCURRENT_ENCODER_COUNT}) "
@@ -615,28 +615,32 @@ def main():
615
615
  )
616
616
 
617
617
  parser.add_argument(
618
- "--decoder-count",
618
+ "-dc", "--decoder-count",
619
619
  type=int,
620
620
  default=CONCURRENT_DECODER_COUNT,
621
621
  help=f"Set the number of multi-process concurrent decoder testing. (default: {CONCURRENT_DECODER_COUNT})"
622
622
  )
623
623
 
624
624
  try:
625
- version_file_path = get_resource_path("VERSION")
626
- with open(version_file_path, "r", encoding="utf-8") as f:
627
- version_str = f.read().strip()
628
- except Exception:
629
- version_str = "Unknown"
625
+ import version
626
+ version_str = version.__version__
627
+ except ImportError:
628
+ try:
629
+ version_file_path = get_resource_path("VERSION")
630
+ with open(version_file_path, "r", encoding="utf-8") as f:
631
+ version_str = f.read().strip()
632
+ except Exception:
633
+ version_str = "Unknown"
630
634
 
631
635
  parser.add_argument(
632
- "--version",
636
+ "-v", "--version",
633
637
  action="version",
634
638
  version=f"HwCodecDetect v{version_str}",
635
639
  help="Show program's version number and exit."
636
640
  )
637
641
 
638
642
  parser.add_argument(
639
- '--verbose',
643
+ '--verbose',
640
644
  action='store_true',
641
645
  help='Print detailed information for each test'
642
646
  )
@@ -0,0 +1 @@
1
+ __version__ = "0.1.9"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: HwCodecDetect
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: A cross-platform tool to automatically detect and test hardware video decoders/encoders using FFmpeg.
5
5
  Home-page: https://github.com/whyb/HwCodecDetect
6
6
  Author: whyb
@@ -1 +0,0 @@
1
- 0.1.8
@@ -1 +0,0 @@
1
- __version__ = "0.1.8"
File without changes
File without changes
File without changes
File without changes
File without changes