Skip to content

Commit

Permalink
Merge branch 'release/1.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamboy1 committed Jan 11, 2023
2 parents 3a87867 + 635a3f8 commit fdc35db
Show file tree
Hide file tree
Showing 12 changed files with 90 additions and 21 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
4 changes: 2 additions & 2 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python 3
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v4.4.0
with:
python-version: '3.9'

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python 3
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v4.4.0
with:
python-version: '3.9'

Expand All @@ -25,16 +25,17 @@ jobs:
python -m build .
- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
verbose: true

- name: Publish to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/test-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v4.4.0
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -36,4 +36,4 @@ jobs:
coverage report -m --skip-covered
- name: Code Coverage
uses: codecov/codecov-action@v1.5.0
uses: codecov/codecov-action@v3.1.1
14 changes: 14 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2

build:
os: ubuntu-20.04
tools:
python: "3.9"

sphinx:
configuration: docs/source/conf.py

python:
install:
- path: .
method: pip
18 changes: 18 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
Changelog
#######################################

1.1.1
=======================================

- Add ``parse_dependabot.py`` script to get dependency update information
from dependabot commits.
- Add readthedocs configuration and set to use python 3.9.
- Dependency updates:
- Update actions/checkout from 2 to 3.1.0.
- Update actions/setup-python from 2.2.2 to 4.4.0.
- Update codecov/codecov-action from 1.5.0 to 3.1.1.
- Update coverage from 5.5 to 7.0.5.
- Update flake8 from 3.9.2 to 6.0.0.
- Pin gh-action-pypi-publish to release/v1.
- Update github/codeql-action from 1 to 2.
- Update setuptools from 56.2.0 to 65.6.3.
- Update sphinx from 4.2.0 to 5.3.0.
- Update sphinx-rtd-theme from 0.5.2 to 1.1.1.

1.1.0
=======================================

Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = 'en'

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down
36 changes: 36 additions & 0 deletions parse_dependabot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/usr/bin/env python3

import re
import sys

import subprocess

if len(sys.argv) <= 1:
print("Please supply the ref as the first parameter")
sys.exit(1)

proc = subprocess.run(
f'git log {sys.argv[1]}..HEAD --author="dependabot" --grep="^Bump" --oneline --no-decorate',
shell=True,
stdout=subprocess.PIPE,
text=True
)
lines = sorted(proc.stdout.splitlines())

warnings = []
output = []

p = re.compile(r"Bump ([a-zA-Z\/\-\_0-9]+) from ([0-9\.]+) to ([0-9\.]+)")
for (line, match) in map(lambda line: (line, p.search(line)), lines):
if not match:
warnings.append(line)
continue

name, old, new = match.group(1, 2, 3)
output.append(f"- Update {name} from {old} to {new}.")

print(*sorted(set(output)), sep="\n")

if warnings:
print("Could not parse these lines")
print(*warnings, sep="\n")
10 changes: 5 additions & 5 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
setuptools==56.2.0
sphinx==4.2.0
sphinx_rtd_theme==0.5.2
coverage==5.5
flake8==3.9.2
setuptools==65.6.3
sphinx==5.3.0
sphinx_rtd_theme==1.1.1
coverage==7.0.5
flake8==6.0.0
2 changes: 1 addition & 1 deletion verto/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# flake8: noqa
from .Verto import Verto

__version__ = '1.1.0'
__version__ = '1.1.1'
2 changes: 1 addition & 1 deletion verto/processors/ImageContainerBlockProcessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def custom_parsing(self, content_blocks, argument_values):
extra_args[argument] = content_blocks[0]

file_path = argument_values['file-path']
del(argument_values['file-path'])
del (argument_values['file-path'])
external_path_match = re.search(r'^http', file_path)
if external_path_match is None: # internal image
self.required.add(file_path)
Expand Down
2 changes: 1 addition & 1 deletion verto/processors/VideoBlockProcessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def extract_video_identifier(self, video_url):
if end_pos == -1:
end_pos = len(video_url)
video_query = video_url[start_pos:end_pos]
return('youtube', video_query)
return ('youtube', video_query)
elif 'vimeo' in video_url:
video_query = video_url.split('/')[-1]
return ('vimeo', video_query)
Expand Down

0 comments on commit fdc35db

Please sign in to comment.