ncftools 0.2.0__tar.gz → 0.4.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
  Metadata-Version: 2.4
2
2
  Name: ncftools
3
- Version: 0.2.0
3
+ Version: 0.4.0
4
4
  Summary: A collection of tools for working with NetCDF files
5
5
  Author-email: aaronchh <aaronhsu219@gmail.com>
6
6
  License-Expression: MIT
@@ -2,7 +2,7 @@
2
2
  NCFTOOLS - A collection of tools for working with NetCDF files.
3
3
  """
4
4
 
5
- __version__ = '0.2.0'
5
+ __version__ = '0.4.0'
6
6
 
7
7
  __all__ = [
8
8
  'meshinfo',
@@ -5,6 +5,7 @@ Uses netCDF4 Python bindings
5
5
  """
6
6
 
7
7
  import argparse
8
+ import importlib.metadata
8
9
  import os
9
10
  import sys
10
11
 
@@ -74,6 +75,12 @@ The tool displays:
74
75
  """,
75
76
  )
76
77
 
78
+ parser.add_argument(
79
+ '-v', '--version',
80
+ action='version',
81
+ version=f'%(prog)s {importlib.metadata.version("ncftools")}',
82
+ )
83
+
77
84
  parser.add_argument(
78
85
  '-i', '--input',
79
86
  required=True,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ncftools
3
- Version: 0.2.0
3
+ Version: 0.4.0
4
4
  Summary: A collection of tools for working with NetCDF files
5
5
  Author-email: aaronchh <aaronhsu219@gmail.com>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ncftools"
7
- version = "0.2.0"
7
+ version = "0.4.0"
8
8
  authors = [
9
9
  { name = "aaronchh", email = "aaronhsu219@gmail.com" },
10
10
  ]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes