Skip to content

Commit eb105cb

Browse files
authored
Merge pull request #55 from nexB/update-skeleton-files
Update skeleton files
2 parents 30f7ef2 + 83c72fa commit eb105cb

File tree

7 files changed

+42
-23
lines changed

7 files changed

+42
-23
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 }}

.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

README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ To install this package use::
1818

1919
Alternatively, to set up a development environment::
2020

21-
source configure --dev
21+
./configure --dev
22+
source venv/bin/activate
2223

2324
To run unit tests::
2425

azure-pipelines.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@ jobs:
1111
# These jobs are using VMs and Azure-provided Pythons 3.8
1212
################################################################################
1313

14-
- template: etc/ci/azure-posix.yml
15-
parameters:
16-
job_name: ubuntu18_cpython
17-
image_name: ubuntu-18.04
18-
python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11']
19-
test_suites:
20-
all: venv/bin/pytest -n 2 -vvs
21-
2214
- template: etc/ci/azure-posix.yml
2315
parameters:
2416
job_name: ubuntu20_cpython
@@ -37,24 +29,24 @@ jobs:
3729

3830
- template: etc/ci/azure-posix.yml
3931
parameters:
40-
job_name: macos1015_cpython
41-
image_name: macos-10.15
32+
job_name: macos11_cpython
33+
image_name: macOS-11
4234
python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11']
4335
test_suites:
4436
all: venv/bin/pytest -n 2 -vvs
4537

4638
- template: etc/ci/azure-posix.yml
4739
parameters:
48-
job_name: macos11_cpython
49-
image_name: macos-11
40+
job_name: macos12_cpython
41+
image_name: macOS-12
5042
python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11']
5143
test_suites:
5244
all: venv/bin/pytest -n 2 -vvs
5345

5446
- template: etc/ci/azure-posix.yml
5547
parameters:
56-
job_name: macos12_cpython
57-
image_name: macos-12
48+
job_name: macos13_cpython
49+
image_name: macOS-13
5850
python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11']
5951
test_suites:
6052
all: venv/bin/pytest -n 2 -vvs

docs/source/conf.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,14 @@
2929
# ones.
3030
extensions = [
3131
"sphinx.ext.intersphinx",
32+
"sphinx_reredirects",
3233
]
3334

35+
36+
# Redirects for olds pages
37+
# See https://documatt.gitlab.io/sphinx-reredirects/usage.html
38+
redirects = {}
39+
3440
# This points to aboutcode.readthedocs.io
3541
# In case of "undefined label" ERRORS check docs on intersphinx to troubleshoot
3642
# Link was created at commit - https://github.com/nexB/aboutcode/commit/faea9fcf3248f8f198844fe34d43833224ac4a83
@@ -95,3 +101,9 @@
95101
.. role:: img-title-para
96102
97103
"""
104+
105+
# -- Options for LaTeX output -------------------------------------------------
106+
107+
latex_elements = {
108+
'classoptions': ',openany,oneside'
109+
}

setup.cfg

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,14 @@ testing =
5757
pytest >= 6, != 7.0.0
5858
pytest-xdist >= 2
5959
aboutcode-toolkit >= 7.0.2
60+
pycodestyle >= 2.8.0
6061
twine
6162
black
6263
isort
6364

6465
docs =
65-
Sphinx >= 3.3.1
66-
sphinx-rtd-theme >= 0.5.0
67-
doc8 >= 0.8.1
66+
Sphinx>=5.0.2
67+
sphinx-rtd-theme>=1.0.0
68+
sphinx-reredirects >= 0.1.2
69+
doc8>=0.11.2
70+

0 commit comments

Comments
 (0)