expit 1.0.6__tar.gz → 1.0.7__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.1
2
2
  Name: expit
3
- Version: 1.0.6
3
+ Version: 1.0.7
4
4
  Summary: The expit function.
5
5
  Author-email: Johannes <johannes-programming@mailfence.com>
6
6
  License: The MIT License (MIT)
@@ -22,7 +22,7 @@ keywords = []
22
22
  name = "expit"
23
23
  readme = "README.rst"
24
24
  requires-python = ">=3.11"
25
- version = "1.0.6"
25
+ version = "1.0.7"
26
26
 
27
27
  [project.license]
28
28
  file = "LICENSE.txt"
@@ -1,13 +1,7 @@
1
1
  import math as _math
2
- from importlib.metadata import version as _V
3
2
 
4
3
  import click as _click
5
4
 
6
- try:
7
- __version__ = _V("expit")
8
- except:
9
- __version__ = "UNKNOWN"
10
-
11
5
 
12
6
  def function(x: float):
13
7
  try:
@@ -17,9 +11,12 @@ def function(x: float):
17
11
  return 1 / (1 + p)
18
12
 
19
13
 
20
- @_click.command()
21
- @_click.argument("x", help="the argument for the expit function")
14
+ @_click.command(add_help_option=False)
15
+ @_click.help_option("-h", "--help")
16
+ @_click.version_option(None, "-V", "--version")
17
+ @_click.argument("x", type=float)
22
18
  def main(x: float):
19
+ """applies the expit function to x"""
23
20
  _click.echo(function(x))
24
21
 
25
22
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: expit
3
- Version: 1.0.6
3
+ Version: 1.0.7
4
4
  Summary: The expit function.
5
5
  Author-email: Johannes <johannes-programming@mailfence.com>
6
6
  License: The MIT License (MIT)
File without changes
File without changes
File without changes
File without changes
File without changes