Skip to content

Commit

Permalink
Update cli/tc.py Python version checking code
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholmer committed Oct 17, 2024
1 parent e464542 commit e662c81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
7 changes: 0 additions & 7 deletions taxcalc.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: setuptools
Requires-Dist: numpy
Requires-Dist: pandas
Requires-Dist: bokeh
Requires-Dist: numba
Requires-Dist: requests
Requires-Dist: paramtools>=0.18.3

| | |
| --- | --- |
Expand Down
6 changes: 3 additions & 3 deletions taxcalc/cli/tc.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ def cli_tc_main():
pymin = tc.__min_python3_version__
pymax = tc.__max_python3_version__
if pyv[0] != 3 or pyv[1] < pymin or pyv[1] > pymax: # pragma: no cover
pyreq = f'at least Python 3.{pymin} and at most Python 3.{pymax}'
sys.stderr.write(
'ERROR: '
f'Tax-Calculator requires Python 3.{pymin} thru Python 3.{pymax}\n'
f'but Python {pyv[0]}.{pyv[1]} is installed\n'
f'ERROR: Tax-Calculator requires {pyreq}\n'
f' but Python {pyv[0]}.{pyv[1]} is installed\n'
)
return 1
# show Tax-Calculator version and quit if --version option is specified
Expand Down

0 comments on commit e662c81

Please sign in to comment.