Skip to content

Commit c004390

Browse files
Build: Add support of Py3.10 and Py3.11 (#35)
1 parent 3864723 commit c004390

File tree

14 files changed

+163
-42
lines changed

14 files changed

+163
-42
lines changed

.copier-answers.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
# Changes here will be overwritten by Copier
22

3-
_commit: 0.1.7
3+
_commit: 0.1.26
44
_src_path: [email protected]:neuromath/python-template.git
55
author_email: ''
66
author_name: Blue Brain Project, EPFL
77
copyright_license: Apache License 2.0
88
copyright_year: '2022'
9-
download_url: [email protected]:BlueBrain/data-validation-framework.git
9+
distribution_name: data-validation-framework
10+
download_url: https://github.com/BlueBrain/data-validation-framework
1011
init_git: false
1112
maintainer: Adrien Berchet (@adrien-berchet)
1213
package_name: data_validation_framework
1314
project_description: Simple framework to create data validation workflows.
1415
project_name: data-validation-framework
1516
project_url: https://data-validation-framework.readthedocs.io
16-
repository: BlueBrain/data-validation-framework
17+
repository_name: data-validation-framework
18+
repository_namespace: BlueBrain
1719
repository_provider: github
20+
ssh_url: [email protected]:BlueBrain/data-validation-framework.git
1821
support_py37: false
1922
team_name: ''
20-
today: 29 August 2022
2123
tracker_url: https://github.com/BlueBrain/data-validation-framework/issues
2224
version: 0.6.2
2325

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.asc linguist-detectable=false
2+
.auto-changelog-template.hbs linguist-detectable=false
3+
commitlint.config.js linguist-detectable=false

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
# Configure check for outdated GitHub Actions actions in workflows.
9+
# See: https://docs.github.com/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
10+
- package-ecosystem: "github-actions"
11+
directory: "/" # Check the repository's workflows under /.github/workflows/
12+
schedule:
13+
interval: "weekly"

.github/workflows/codeql.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ "main" ]
17+
schedule:
18+
- cron: '8 15 * * 1'
19+
20+
jobs:
21+
analyze:
22+
name: Analyze
23+
runs-on: ubuntu-latest
24+
permissions:
25+
actions: read
26+
contents: read
27+
security-events: write
28+
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
language: [ 'python' ]
33+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
34+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
35+
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@v3
39+
40+
# Initializes the CodeQL tools for scanning.
41+
- name: Initialize CodeQL
42+
uses: github/codeql-action/init@v2
43+
with:
44+
languages: ${{ matrix.language }}
45+
# If you wish to specify custom queries, you can do so here or in a config file.
46+
# By default, queries listed here will override any specified in a config file.
47+
# Prefix the list here with "+" to use these queries and those in the config file.
48+
49+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
50+
# queries: security-extended,security-and-quality
51+
52+
53+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
54+
# If this step fails, then you should remove it and run the build manually (see below)
55+
- name: Autobuild
56+
uses: github/codeql-action/autobuild@v2
57+
58+
# ℹ️ Command-line programs to run using the OS shell.
59+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
60+
61+
# If the Autobuild fails above, remove it and uncomment the following three lines.
62+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
63+
64+
# - run: |
65+
# echo "Run, Build Application using script"
66+
# ./location_of_script_within_repo/buildscript.sh
67+
68+
- name: Perform CodeQL Analysis
69+
uses: github/codeql-action/analyze@v2
70+
with:
71+
category: "/language:${{matrix.language}}"

.github/workflows/commitlint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ jobs:
99
name: Check PR title
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@master
13-
- uses: actions/setup-node@v2
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
1414
with:
15-
node-version: '14'
15+
node-version: '16'
1616
- run: npm install -g --force commitlint @commitlint/cli commitlint-plugin-cleanfeet
1717
- run: npm install conventional-changelog-conventionalcommits
1818
- run: touch .git/COMMIT_EDITMSG
19-
- run: echo ${{ github.event.pull_request.title }} | commitlint
19+
- run: echo "${{ github.event.pull_request.title }}" | commitlint

.github/workflows/publish-sdist.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ jobs:
1010
name: Build and publish on PyPI
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@master
13+
- uses: actions/checkout@v3
1414
- name: Set up Python 3.8
15-
uses: actions/setup-python@v2
15+
uses: actions/setup-python@v4
1616
with:
1717
python-version: 3.8
1818
- name: Build a wheel and a source tarball
1919
run: |
20-
pip install setuptools>=42 wheel setuptools_scm[toml]>=3.4
21-
python setup.py sdist bdist_wheel
20+
pip install setuptools>=42 build setuptools_scm[toml]>=3.4
21+
python -m build -o dist
2222
- name: Publish distribution package to PyPI
2323
uses: pypa/gh-action-pypi-publish@release/v1
2424
with:

.github/workflows/run-tox.yml

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,41 +12,58 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: [3.8, 3.9]
15+
python-version: ["3.8", "3.9", "3.10", "3.11"]
1616

1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
1919
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v2
20+
uses: actions/setup-python@v4
2121
with:
2222
python-version: ${{ matrix.python-version }}
23+
- name: Cache APT Packages
24+
uses: awalsh128/cache-apt-pkgs-action@latest
25+
with:
26+
packages:
27+
poppler-utils
28+
imagemagick
29+
version: 1.0
30+
- name: Cache tox and precommit environments
31+
uses: actions/cache@v3
32+
with:
33+
path: |
34+
.tox
35+
~/.cache/pre-commit
36+
key: ${{ runner.os }}-${{ matrix.python-version }}-${{ steps.date.outputs.date }}-${{ hashFiles('setup.py') }}-${{ hashFiles('.pre-commit-config.yaml') }}
2337
- name: Install dependencies
2438
run: |
25-
sudo apt-get install -y poppler-utils imagemagick libhdf5-dev
2639
python -m pip install --upgrade pip setuptools
2740
pip install tox-gh-actions
41+
- name: Clear results in tox environments
42+
run: |
43+
rm -rf .tox/*/tmp
2844
- name: Run tox
2945
run: |
3046
tox
3147
- name: JUnit Report Action
32-
uses: mikepenz/action-junit-report@v3.2.0
48+
uses: mikepenz/action-junit-report@v3
3349
if: always() # always run even if the previous step fails
3450
with:
3551
report_paths: 'reports/pytest-*.xml'
3652
- name: Upload to codecov
3753
if: ${{matrix.python-version == '3.8'}}
38-
uses: codecov/codecov-action@v1
54+
uses: codecov/codecov-action@v3
3955
with:
4056
fail_ci_if_error: false
4157
files: ./reports/coverage-py38.xml
4258
flags: pytest
4359
name: "data-validation-framework-py38"
4460
- name: Upload test artifacts
45-
uses: actions/upload-artifact@v2
61+
uses: actions/upload-artifact@v3
4662
if: always()
4763
with:
4864
name: tests-${{ matrix.python-version }}
49-
retention-days: 1
65+
retention-days: 4
5066
path: |
5167
.tox/py*/tmp
52-
.tox/docs/tmp
68+
docs/build
69+
reports

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version: 2
88
build:
99
os: ubuntu-20.04
1010
tools:
11-
python: "3.8"
11+
python: "3.9"
1212

1313
sphinx:
1414
configuration: docs/source/conf.py

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
project = "data-validation-framework"
1818

1919
# The short X.Y version
20-
version = metadata.version("data_validation_framework")
20+
version = metadata.version("data-validation-framework")
2121

2222
# The full version, including alpha/beta/rc tags
2323
release = version
@@ -61,7 +61,7 @@
6161
# html_static_path = ['_static']
6262

6363
html_theme_options = {
64-
"metadata_distribution": project,
64+
"metadata_distribution": "data-validation-framework",
6565
}
6666

6767
html_title = "Data Validation Framework"

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ target-version = [
1313
"py38",
1414
"py39",
1515
]
16-
include = 'data_validation_framework\/.*\.py$|tests\/.*\.py$|docs\/source\/conf\.py$|setup\.py$'
1716

1817
# PYDOCSTYLE
1918
[tool.pydocstyle]
@@ -25,7 +24,6 @@ add-ignore = [
2524
"D107",
2625
]
2726
convention = "google"
28-
match = "[data_validation_framework, tests, docs/source/conf.py, setup.py]"
2927

3028
# ISORT
3129
[tool.isort]

0 commit comments

Comments
 (0)