pyhabitat 1.0.24__tar.gz → 1.0.26__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.

Potentially problematic release.


This version of pyhabitat might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyhabitat
3
- Version: 1.0.24
3
+ Version: 1.0.26
4
4
  Summary: A lightweight library for detecting system environment, GUI, and build properties.
5
5
  Author-email: George Clayton Bennett <george.bennett@memphistn.gov>
6
6
  License-Expression: MIT
@@ -54,7 +54,9 @@ def run_cli():
54
54
  func = getattr(pyhabitat, args.command, None)
55
55
  if callable(func):
56
56
  print(func())
57
+ return # Exit after running the subcommand
57
58
  else:
58
59
  print(f"Unknown function: {args.command}")
60
+ return # Exit after reporting the unknown command
59
61
 
60
62
  main(path=Path(args.path) if args.path else None, debug=args.debug)
@@ -561,7 +561,7 @@ def user_darrin_deyoung():
561
561
  if not on_windows():
562
562
  return False
563
563
  username = getpass.getuser()
564
- return username.lower() != "darrin deyoung"
564
+ return username.lower() == "darrin deyoung"
565
565
 
566
566
  def can_spawn_shell(override_known:bool=False)->bool:
567
567
  """Check if a shell command can be executed successfully."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyhabitat
3
- Version: 1.0.24
3
+ Version: 1.0.26
4
4
  Summary: A lightweight library for detecting system environment, GUI, and build properties.
5
5
  Author-email: George Clayton Bennett <george.bennett@memphistn.gov>
6
6
  License-Expression: MIT
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "pyhabitat"
9
- version = "1.0.24"
9
+ version = "1.0.26"
10
10
  #dynamic = ["version"] #
11
11
  authors = [
12
12
  { name="George Clayton Bennett", email="george.bennett@memphistn.gov" },
File without changes
File without changes
File without changes