Skip to content

Commit 5e95b0f

Browse files
authored
Merge pull request #49 from nexB/v0.6.0
Prepare V0.6.0 Signed-off-by: Philippe Ombredanne <[email protected]>
2 parents 25a1740 + 2bf20ed commit 5e95b0f

12 files changed

+34
-36
lines changed

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ Usage
3131

3232
pip install git+https://github.com/nexB/python-inspector
3333

34-
- Run a command line with::
34+
- Run the command line utility with::
3535

36-
dad --help
36+
python-inspector --help
3737

3838

3939

azure-pipelines.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626

2727
- template: etc/ci/azure-posix.yml
2828
parameters:
29-
job_name: macos1015_cpython
30-
image_name: macos-10.15
29+
job_name: macos12_cpython
30+
image_name: macos-12
3131
python_versions: ['3.8', '3.9', '3.10']
3232
test_suites:
3333
all: venv/bin/pytest -n 2 -vvs

docs/source/dependencies-design.rst

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
This is a design to create a new command line tool to resolve Python
77
dependencies for a given Python version, operating system and
8-
architecture. Thename for this new tool is “python-inspector”.
8+
architecture. The name for this new tool is “python-inspector”.
99

1010

1111
***************
@@ -171,8 +171,7 @@ User experience:
171171
The goal of the command line interface and user experience is to be
172172
obvious and familiar to a pip user.
173173

174-
Create a new CLI named "dad" short for "dad analyzes dependencies" with
175-
these key options:
174+
We will create a new CLI named "python-inspector" with these key options:
176175

177176
Inputs:
178177
~~~~~~~~~

docs/source/test-protocol.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ packages that were installed during the build.
7373
Step 4: Resolve dependencies using development requirement files
7474
--------------------------------------------------------------------
7575

76-
In this step, you will resolve the dependencies using python-inspector dad
76+
In this step, you will resolve the dependencies using python-inspector python-inspector
7777
command for each of the requirements files identified in Step 1 using the
7878
Python version identified in Step 2. Run this command for each requirements
7979
file, using each time a different output file name. We assume here Python
8080
version 3.8 (note the absence of dot when passed as a command line option::
8181

82-
dad --python-version 38 --requirement <path/to/requirements.txt> \
82+
python-inspector --python-version 38 --requirement <path/to/requirements.txt> \
8383
--json <path/to/resolved-requirements.txt.json> \
8484
--netrc <path/to/.netrc>
8585

@@ -238,10 +238,10 @@ Step 4: Resolve dependencies using development requirement files
238238
cd ~/tmp/pyinsp-example/tools/python-inspector
239239
source venv/bin/activate
240240

241-
dad --requirement ~/tmp/pyinsp-example/ion/docs/rtd-requirements.txt \
241+
python-inspector --requirement ~/tmp/pyinsp-example/ion/docs/rtd-requirements.txt \
242242
--json ~/tmp/pyinsp-example/output/resolved-rtd-requirements.txt.json
243243

244-
dad --requirement ~/tmp/pyinsp-example/ion/requirements.txt \
244+
python-inspector --requirement ~/tmp/pyinsp-example/ion/requirements.txt \
245245
--json ~/tmp/pyinsp-example/output/resolved-requirements.txt.json
246246

247247
deactivate

requirements.txt

+11-12
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
1-
attrs==21.4.0
1+
attrs==22.1.0
22
beautifulsoup4==4.11.1
3-
certifi==2022.5.18.1
4-
charset-normalizer==2.0.12
5-
click==8.0.4
6-
colorama==0.4.4
3+
certifi==2022.6.15
4+
charset-normalizer==2.1.0
5+
click==8.1.3
6+
colorama==0.4.5
77
commoncode==30.2.0
88
dparse2==0.6.1
99
idna==3.3
10-
importlib-metadata==4.8.3
10+
importlib-metadata==4.12.0
1111
intbitset==3.0.1
12-
packageurl-python==0.9.9
12+
packageurl-python==0.10.0
1313
packaging==21.3
1414
pip-requirements-parser==31.2.0
1515
pkginfo2==30.0.0
1616
pyparsing==3.0.9
1717
PyYAML==6.0
18-
requests==2.27.1
18+
requests==2.28.1
1919
resolvelib==0.8.1
2020
saneyaml==0.5.2
2121
soupsieve==2.3.2.post1
2222
text-unidecode==1.3
23+
tinynetrc==1.3.1
2324
toml==0.10.2
24-
typing==3.6.6
25-
typing_extensions==4.1.1
26-
urllib3==1.26.9
27-
zipp==3.6.0
25+
urllib3==1.26.11
26+
zipp==3.8.1

setup.cfg

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = python-inspector
33
license = Apache-2.0
44

55
# description must be on ONE line https://github.com/pypa/setuptools/issues/1390
6-
description = python-inspector
6+
description = python-inspector is is a collection of utilities to collect PyPI package metadata and resolve packages dependencies.
77
long_description = file:README.rst
88
long_description_content_type = text/x-rst
99
url = https://github.com/nexB/python-inspector
@@ -12,7 +12,7 @@ author = nexB. Inc. and others
1212
author_email = [email protected]
1313

1414
classifiers =
15-
Development Status :: 5 - Production/Stable
15+
Development Status :: 4 - Beta
1616
Intended Audience :: Developers
1717
Programming Language :: Python :: 3
1818
Programming Language :: Python :: 3 :: Only
@@ -59,22 +59,22 @@ install_requires =
5959
colorama >= 0.3.9
6060
commoncode >= 30.0.0
6161
dparse2 >= 0.6.1
62-
importlib_metadata
62+
importlib_metadata >= 4.12.0
6363
packageurl_python >= 0.9.0
6464
pkginfo2 >= 30.0.0
6565
pip-requirements-parser >= 31.2.0
6666
requests >= 2.18.0
67-
resolvelib
67+
resolvelib >= 0.8.1
6868
saneyaml >= 0.5.2
69-
tinynetrc
69+
tinynetrc >= 1.3.1
7070
toml >= 0.10.0
7171

7272
[options.packages.find]
7373
where = src
7474

7575
[options.entry_points]
7676
console_scripts =
77-
dad = python_inspector.resolve_cli:resolve_dependencies
77+
python-inspector = python_inspector.resolve_cli:resolve_dependencies
7878

7979
[options.extras_require]
8080
testing =

src/python_inspector/resolve_cli.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def resolve_dependencies(
170170
For example, display the results of resolving the dependencies for flask==2.1.2
171171
on screen::
172172
173-
dad --spec "flask==2.1.2" --json -
173+
python-inspector --spec "flask==2.1.2" --json -
174174
"""
175175
if not (json_output or pdt_output):
176176
click.secho("No output file specified. Use --json or --json-pdt.", err=True)
@@ -272,7 +272,7 @@ def resolve_dependencies(
272272
)
273273

274274
headers = dict(
275-
tool_name="dad",
275+
tool_name="python-inspector",
276276
tool_homepageurl="https://github.com/nexB/python-inspector",
277277
tool_version=__version__,
278278
options=cli_options,

tests/data/default-url-expected.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"headers": {
3-
"tool_name": "dad",
3+
"tool_name": "python-inspector",
44
"tool_homepageurl": "https://github.com/nexB/python-inspector",
55
"tool_version": "0.5.0",
66
"options": [

tests/data/pinned-requirements.txt-expected.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"headers": {
3-
"tool_name": "dad",
3+
"tool_name": "python-inspector",
44
"tool_homepageurl": "https://github.com/nexB/python-inspector",
55
"tool_version": "0.5.0",
66
"options": [

tests/data/single-url-except-simple-expected.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"headers": {
3-
"tool_name": "dad",
3+
"tool_name": "python-inspector",
44
"tool_homepageurl": "https://github.com/nexB/python-inspector",
55
"tool_version": "0.5.0",
66
"options": [

tests/data/single-url-expected.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"headers": {
3-
"tool_name": "dad",
3+
"tool_name": "python-inspector",
44
"tool_homepageurl": "https://github.com/nexB/python-inspector",
55
"tool_version": "0.5.0",
66
"options": [

tests/data/tilde_req-expected.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"headers": {
3-
"tool_name": "dad",
3+
"tool_name": "python-inspector",
44
"tool_homepageurl": "https://github.com/nexB/python-inspector",
55
"tool_version": "0.5.0",
66
"options": [

0 commit comments

Comments
 (0)