securesauce / precli

Precaution CLI
https://precli.readthedocs.io/
Other
7 stars 2 forks source link

Remove the newer version check #507

Closed ericwb closed 4 weeks ago

ericwb commented 4 weeks ago

The code to check for a new version of precli has been problemmatic. It's also not strictly required feature. So this commit removes it for now. It might be revisited later.

ericwb commented 4 weeks ago

Was getting this from outdated recently:

Erics-MacBook-Pro-2:precli ericwb$ .tox/py312/bin/precli asfasdf
Exception in thread Thread-1 (check):
Traceback (most recent call last):
  File "/Users/ericwb/.pyenv/versions/3.12.2/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
    self.run()
  File "/Users/ericwb/.pyenv/versions/3.12.2/lib/python3.12/threading.py", line 1010, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/ericwb/workspace/precli/.tox/py312/lib/python3.12/site-packages/outdated/__init__.py", line 109, in check
    is_outdated, latest = check_outdated(package, version)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ericwb/workspace/precli/.tox/py312/lib/python3.12/site-packages/outdated/__init__.py", line 36, in check_outdated
    from pkg_resources import parse_version
  File "/Users/ericwb/workspace/precli/.tox/py312/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2191, in <module>
    register_finder(pkgutil.ImpImporter, find_on_path)
                    ^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?