Skip to content

Commit 0341113

Browse files
authored
Merge pull request #47 from nexB/update-skeleton-files
Update skeleton files
2 parents 121dfcb + e975403 commit 0341113

21 files changed

+207
-83
lines changed

.github/workflows/docs-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313

1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v3
1717

1818
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v2
19+
uses: actions/setup-python@v4
2020
with:
2121
python-version: ${{ matrix.python-version }}
2222

.github/workflows/pypi-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ jobs:
2424
runs-on: ubuntu-20.04
2525

2626
steps:
27-
- uses: actions/checkout@master
27+
- uses: actions/checkout@v3
2828
- name: Set up Python
29-
uses: actions/setup-python@v1
29+
uses: actions/setup-python@v4
3030
with:
3131
python-version: 3.9
3232

@@ -78,6 +78,6 @@ jobs:
7878

7979
- name: Publish to PyPI
8080
if: startsWith(github.ref, 'refs/tags')
81-
uses: pypa/gh-action-pypi-publish@master
81+
uses: pypa/gh-action-pypi-publish@release/v1
8282
with:
8383
password: ${{ secrets.PYPI_API_TOKEN }}

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
*.py[cod]
33

44
# virtualenv and other misc bits
5+
/src/*.egg-info
56
*.egg-info
67
/dist
78
/build
@@ -22,9 +23,6 @@
2223
/share/
2324
/tcl/
2425
/.eggs/
25-
/.vscode/
26-
/.idea/
27-
2826

2927
# Installer logs
3028
pip-log.txt
@@ -74,4 +72,3 @@ tcl
7472

7573
# Ignore Jupyter Notebook related temp files
7674
.ipynb_checkpoints/
77-
/release/

.readthedocs.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@
55
# Required
66
version: 2
77

8+
# Build in latest ubuntu/python
9+
build:
10+
os: ubuntu-22.04
11+
tools:
12+
python: "3.11"
13+
14+
# Build PDF & ePub
15+
formats:
16+
- epub
17+
- pdf
18+
819
# Where the Sphinx conf.py file is located
920
sphinx:
1021
configuration: docs/source/conf.py

CHANGELOG.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ This is a major feature update release with these updates and API breaking chang
7272
there is a problem reported.
7373

7474
* Add new dependency resolver that works best for modern PackageReference-based
75-
projects.
75+
projects.
7676

7777
* Remove the "--nuget-url" command line option to configure an alternative
7878
NuGet API URL. A nuget.config should be used instead, either the standard one,
@@ -118,7 +118,7 @@ This is a major feature update release with these updates and API breaking chang
118118
needed. Many processors return a flat list of dependencies. This is towards
119119
https://github.com/nexB/nuget-inspector/issues/24
120120

121-
* Resolve packages removing duplicates to fix
121+
* Resolve packages removing duplicates to fix
122122
https://github.com/nexB/nuget-inspector/issues/23
123123

124124

Makefile

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
#
3+
# Copyright (c) nexB Inc. and others. All rights reserved.
4+
# ScanCode is a trademark of nexB Inc.
5+
# SPDX-License-Identifier: Apache-2.0
6+
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
7+
# See https://github.com/nexB/skeleton for support or download.
8+
# See https://aboutcode.org for more information about nexB OSS projects.
9+
#
10+
11+
# Python version can be specified with `$ PYTHON_EXE=python3.x make conf`
12+
PYTHON_EXE?=python3
13+
VENV=venv
14+
ACTIVATE?=. ${VENV}/bin/activate;
15+
16+
dev:
17+
@echo "-> Configure the development envt."
18+
./configure --dev
19+
20+
isort:
21+
@echo "-> Apply isort changes to ensure proper imports ordering"
22+
${VENV}/bin/isort --sl -l 100 src tests setup.py
23+
24+
black:
25+
@echo "-> Apply black code formatter"
26+
${VENV}/bin/black -l 100 src tests setup.py
27+
28+
doc8:
29+
@echo "-> Run doc8 validation"
30+
@${ACTIVATE} doc8 --max-line-length 100 --ignore-path docs/_build/ --quiet docs/
31+
32+
valid: isort black
33+
34+
check:
35+
@echo "-> Run pycodestyle (PEP8) validation"
36+
@${ACTIVATE} pycodestyle --max-line-length=100 --exclude=.eggs,venv,lib,thirdparty,docs,migrations,settings.py,.cache .
37+
@echo "-> Run isort imports ordering validation"
38+
@${ACTIVATE} isort --sl --check-only -l 100 setup.py src tests .
39+
@echo "-> Run black validation"
40+
@${ACTIVATE} black --check --check -l 100 src tests setup.py
41+
42+
clean:
43+
@echo "-> Clean the Python env"
44+
./configure --clean
45+
46+
test:
47+
@echo "-> Run the test suite"
48+
${VENV}/bin/pytest -vvs
49+
50+
docs:
51+
rm -rf docs/_build/
52+
@${ACTIVATE} sphinx-build docs/ docs/_build/
53+
54+
.PHONY: conf dev check valid black isort clean test docs

NOTICE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@
2929
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3030
# copies of the Software, and to permit persons to whom the Software is
3131
# furnished to do so, subject to the following conditions:
32-
#
32+
#
3333
# The above copyright notice and this permission notice shall be included in all
3434
# copies or substantial portions of the Software.
35-
#
35+
#
3636
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3737
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3838
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3939
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
4040
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
4141
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
4242
# SOFTWARE.
43-
#
43+
#

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Here are credits for some of these key projects without which it would not exist
8080
https://github.com/dotnet/msbuild/
8181
https://github.com/dotnet/upgrade-assistant
8282

83-
- ``nuget-dotnet5-inspector`` from Synopsys as forked by Mario Rivis
83+
- ``nuget-dotnet5-inspector`` from Synopsys as forked by Mario Rivis
8484
https://github.com/dxworks/nuget-dotnet5-inspector
8585

8686
- ``audit.net`` ``NugetAuditor`` and ``DevAudit`` from Sonatype

azure-pipelines.yml

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,48 +9,56 @@ jobs:
99

1010
- template: etc/ci/azure-posix.yml
1111
parameters:
12-
job_name: ubuntu18_cpython
13-
image_name: ubuntu-18.04
14-
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
12+
job_name: ubuntu20_cpython
13+
image_name: ubuntu-20.04
14+
python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11']
1515
test_suites:
1616
all: venv/bin/pytest -n 2 -vvs
1717

1818
- template: etc/ci/azure-posix.yml
1919
parameters:
20-
job_name: ubuntu20_cpython
21-
image_name: ubuntu-20.04
22-
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
20+
job_name: ubuntu22_cpython
21+
image_name: ubuntu-22.04
22+
python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11']
2323
test_suites:
2424
all: venv/bin/pytest -n 2 -vvs
2525

2626
- template: etc/ci/azure-posix.yml
2727
parameters:
28-
job_name: macos1015_cpython
29-
image_name: macos-10.15
30-
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
28+
job_name: macos11_cpython
29+
image_name: macOS-11
30+
python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11']
3131
test_suites:
3232
all: venv/bin/pytest -n 2 -vvs
3333

3434
- template: etc/ci/azure-posix.yml
3535
parameters:
36-
job_name: macos11_cpython
37-
image_name: macos-11
38-
python_versions: ['3.7', '3.8', '3.9', '3.10']
36+
job_name: macos12_cpython
37+
image_name: macOS-12
38+
python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11']
39+
test_suites:
40+
all: venv/bin/pytest -n 2 -vvs
41+
42+
- template: etc/ci/azure-posix.yml
43+
parameters:
44+
job_name: macos13_cpython
45+
image_name: macOS-13
46+
python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11']
3947
test_suites:
4048
all: venv/bin/pytest -n 2 -vvs
4149

4250
- template: etc/ci/azure-win.yml
4351
parameters:
4452
job_name: win2019_cpython
4553
image_name: windows-2019
46-
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
54+
python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11']
4755
test_suites:
4856
all: venv\Scripts\pytest -n 2 -vvs
4957

5058
- template: etc/ci/azure-win.yml
5159
parameters:
5260
job_name: win2022_cpython
5361
image_name: windows-2022
54-
python_versions: ['3.7', '3.8', '3.9', '3.10']
62+
python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11']
5563
test_suites:
5664
all: venv\Scripts\pytest -n 2 -vvs

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ DOCS_REQUIREMENTS="--editable .[docs] --constraint requirements.txt"
3636
VIRTUALENV_DIR=venv
3737

3838
# Cleanable files and directories to delete with the --clean option
39-
CLEANABLE="build venv"
39+
CLEANABLE="build dist venv .cache .eggs"
4040

4141
# extra arguments passed to pip
4242
PIP_EXTRA_ARGS=" "

0 commit comments

Comments
 (0)