Repository: aboutcode-org/python-inspector (language: python)

Issue:
python-inspector 0.7.0 claims to be version 0.6.5
python-inspector 0.7.0 reports the wrong version:
```sh
$ python-inspector --version
Python-inspector version: 0.6.5
```


Discussion / hints:

Fix patch:
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index b5dc2812..554ddee0 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -2,6 +2,11 @@ Changelog
 =========
 
 
+v0.7.1
+------
+
+- Correct version reporting #70.
+
 v0.7.0
 ------
 
diff --git a/src/python_inspector/resolve_cli.py b/src/python_inspector/resolve_cli.py
index 9abb2c18..130136f1 100644
--- a/src/python_inspector/resolve_cli.py
+++ b/src/python_inspector/resolve_cli.py
@@ -36,7 +36,7 @@
 
 TRACE = False
 
-__version__ = "0.6.5"
+__version__ = "0.7.1"
 
 DEFAULT_PYTHON_VERSION = "38"
 PYPI_SIMPLE_URL = "https://pypi.org/simple"


Test patch:
diff --git a/tests/data/default-url-expected.json b/tests/data/default-url-expected.json
index 6fc65e53..3dd5e45c 100644
--- a/tests/data/default-url-expected.json
+++ b/tests/data/default-url-expected.json
@@ -2,7 +2,7 @@
   "headers": {
     "tool_name": "python-inspector",
     "tool_homepageurl": "https://github.com/nexB/python-inspector",
-    "tool_version": "0.6.5",
+    "tool_version": "0.7.1",
     "options": [
       "--specifier zipp==3.8.0",
       "--index-url https://pypi.org/simple",
diff --git a/tests/data/insecure-setup-2/setup.py-expected.json b/tests/data/insecure-setup-2/setup.py-expected.json
index 5d73e273..1810e90d 100644
--- a/tests/data/insecure-setup-2/setup.py-expected.json
+++ b/tests/data/insecure-setup-2/setup.py-expected.json
@@ -2,7 +2,7 @@
   "headers": {
     "tool_name": "python-inspector",
     "tool_homepageurl": "https://github.com/nexB/python-inspector",
-    "tool_version": "0.6.5",
+    "tool_version": "0.7.1",
     "options": [
       "--index-url https://pypi.org/simple",
       "--python-version 27",
diff --git a/tests/data/insecure-setup/setup.py-expected.json b/tests/data/insecure-setup/setup.py-expected.json
index 726aaa4f..70b7b456 100644
--- a/tests/data/insecure-setup/setup.py-expected.json
+++ b/tests/data/insecure-setup/setup.py-expected.json
@@ -2,7 +2,7 @@
   "headers": {
     "tool_name": "python-inspector",
     "tool_homepageurl": "https://github.com/nexB/python-inspector",
-    "tool_version": "0.6.5",
+    "tool_version": "0.7.1",
     "options": [
       "--index-url https://pypi.org/simple",
       "--python-version 27",
diff --git a/tests/data/pinned-requirements.txt-expected.json b/tests/data/pinned-requirements.txt-expected.json
index 7279fe5d..6c5be1ce 100644
--- a/tests/data/pinned-requirements.txt-expected.json
+++ b/tests/data/pinned-requirements.txt-expected.json
@@ -2,7 +2,7 @@
   "headers": {
     "tool_name": "python-inspector",
     "tool_homepageurl": "https://github.com/nexB/python-inspector",
-    "tool_version": "0.6.5",
+    "tool_version": "0.7.1",
     "options": [
       "--index-url https://pypi.org/simple",
       "--python-version 38",
diff --git a/tests/data/setup/simple-setup.py-expected.json b/tests/data/setup/simple-setup.py-expected.json
index e7e4a40f..78c86ba4 100644
--- a/tests/data/setup/simple-setup.py-expected.json
+++ b/tests/data/setup/simple-setup.py-expected.json
@@ -2,7 +2,7 @@
   "headers": {
     "tool_name": "python-inspector",
     "tool_homepageurl": "https://github.com/nexB/python-inspector",
-    "tool_version": "0.6.5",
+    "tool_version": "0.7.1",
     "options": [
       "--index-url https://pypi.org/simple",
       "--python-version 27",
diff --git a/tests/data/single-url-except-simple-expected.json b/tests/data/single-url-except-simple-expected.json
index 38b3a344..b63a3b88 100644
--- a/tests/data/single-url-except-simple-expected.json
+++ b/tests/data/single-url-except-simple-expected.json
@@ -2,7 +2,7 @@
   "headers": {
     "tool_name": "python-inspector",
     "tool_homepageurl": "https://github.com/nexB/python-inspector",
-    "tool_version": "0.6.5",
+    "tool_version": "0.7.1",
     "options": [
       "--specifier flask",
       "--index-url https://pypi.org/simple",
diff --git a/tests/data/single-url-expected.json b/tests/data/single-url-expected.json
index da774f0d..d6d04807 100644
--- a/tests/data/single-url-expected.json
+++ b/tests/data/single-url-expected.json
@@ -2,7 +2,7 @@
   "headers": {
     "tool_name": "python-inspector",
     "tool_homepageurl": "https://github.com/nexB/python-inspector",
-    "tool_version": "0.6.5",
+    "tool_version": "0.7.1",
     "options": [
       "--specifier zipp==3.8.0",
       "--index-url https://pypi.org/simple",
diff --git a/tests/data/tilde_req-expected.json b/tests/data/tilde_req-expected.json
index 1d946823..05eabf44 100644
--- a/tests/data/tilde_req-expected.json
+++ b/tests/data/tilde_req-expected.json
@@ -2,7 +2,7 @@
   "headers": {
     "tool_name": "python-inspector",
     "tool_homepageurl": "https://github.com/nexB/python-inspector",
-    "tool_version": "0.6.5",
+    "tool_version": "0.7.1",
     "options": [
       "--specifier zipp~=3.8.0",
       "--index-url https://pypi.org/simple",
diff --git a/tests/test_cli.py b/tests/test_cli.py
index 5e0e60ee..d71e13de 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -304,7 +304,7 @@ def test_passing_of_json_pdt_and_json_flags():
 def test_version_option():
     options = ["--version"]
     result = run_cli(options=options)
-    assert "0.6.5" in result.output
+    assert "0.7.1" in result.output
 
 
 def test_passing_of_netrc_file_that_does_not_exist():
diff --git a/tests/test_setup_py_live_eval_cli.py b/tests/test_setup_py_live_eval_cli.py
index 52b0e8df..77c0b15f 100644
--- a/tests/test_setup_py_live_eval_cli.py
+++ b/tests/test_setup_py_live_eval_cli.py
@@ -278,7 +278,7 @@ def test_passing_of_json_pdt_and_json_flags():
 def test_version_option():
     options = ["--version"]
     result = run_cli(options=options)
-    assert "0.6.5" in result.output
+    assert "0.7.1" in result.output
 
 
 def test_passing_of_netrc_file_that_does_not_exist():