Skip to content

Commit c944fa6

Browse files
authored
Merge pull request #137 from casework/release-0.14.0
Release 0.14.0
2 parents 1611e58 + 637e2f8 commit c944fa6

12 files changed

+86
-13
lines changed

.github/workflows/cicd.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ jobs:
3737
matrix:
3838
python-version:
3939
- '3.9'
40-
- '3.11'
40+
- '3.12'
4141

4242
steps:
43-
- uses: actions/checkout@v2
43+
- uses: actions/checkout@v3
4444
- uses: actions/setup-java@v3
4545
with:
4646
distribution: 'temurin'
4747
java-version: '11'
4848
- name: Set up Python ${{ matrix.python-version }}
49-
uses: actions/setup-python@v2
49+
uses: actions/setup-python@v4
5050
with:
5151
python-version: ${{ matrix.python-version }}
5252
- name: Pre-commit Checks
@@ -71,7 +71,7 @@ jobs:
7171

7272
# Upload the packages on all develop and main pipleines for test consumption
7373
- name: Upload HTML Docs
74-
uses: actions/upload-artifact@v2
74+
uses: actions/upload-artifact@v3
7575
with:
7676
name: packages
7777
path: ./dist/

.github/workflows/prerelease.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Portions of this file contributed by NIST are governed by the
2+
# following statement:
3+
#
4+
# This software was developed at the National Institute of Standards
5+
# and Technology by employees of the Federal Government in the course
6+
# of their official duties. Pursuant to Title 17 Section 105 of the
7+
# United States Code, this software is not subject to copyright
8+
# protection within the United States. NIST assumes no responsibility
9+
# whatsoever for its use by other parties, and makes no guarantees,
10+
# expressed or implied, about its quality, reliability, or any other
11+
# characteristic.
12+
#
13+
# We would appreciate acknowledgement if the software is used.
14+
15+
# This workflow uses Make to review direct dependencies of this
16+
# repository.
17+
18+
name: Prerelease
19+
20+
on:
21+
pull_request:
22+
branches:
23+
- main
24+
25+
jobs:
26+
build:
27+
28+
runs-on: ubuntu-latest
29+
strategy:
30+
matrix:
31+
python-version:
32+
- '3.9'
33+
- '3.12'
34+
35+
steps:
36+
- uses: actions/checkout@v3
37+
- name: Set up Python ${{ matrix.python-version }}
38+
uses: actions/setup-python@v4
39+
with:
40+
python-version: ${{ matrix.python-version }}
41+
- name: Review dependencies
42+
run: make check-supply-chain-pre-commit

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 23.1.0
3+
rev: 23.11.0
44
hooks:
55
- id: black
66
- repo: https://github.com/pycqa/flake8
7-
rev: 6.0.0
7+
rev: 6.1.0
88
hooks:
99
- id: flake8
1010
- repo: https://github.com/pycqa/isort

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ all: \
2828
.venv-pre-commit/var/.pre-commit-built.log
2929

3030
.PHONY: \
31+
check-supply-chain \
32+
check-supply-chain-pre-commit \
3133
download
3234

3335
.git_submodule_init.done.log: \
@@ -89,6 +91,19 @@ check: \
8991
--directory tests \
9092
check
9193

94+
# This target's dependencies potentially modify the working directory's Git state, so it is intentionally not a dependency of check.
95+
check-supply-chain: \
96+
check-supply-chain-pre-commit
97+
98+
# This target is scheduled to run as part of prerelease review.
99+
check-supply-chain-pre-commit: \
100+
.venv-pre-commit/var/.pre-commit-built.log
101+
source .venv-pre-commit/bin/activate \
102+
&& pre-commit autoupdate
103+
git diff \
104+
--exit-code \
105+
.pre-commit-config.yaml
106+
92107
clean:
93108
@$(MAKE) \
94109
PYTHON3=$(PYTHON3) \

case_utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
#
1515
# We would appreciate acknowledgement if the software is used.
1616

17-
__version__ = "0.13.0"
17+
__version__ = "0.14.0"
1818

1919
from . import local_uuid # noqa: F401

case_utils/case_validate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
details.)
3333
"""
3434

35-
__version__ = "0.4.0"
35+
__version__ = "0.5.0"
3636

3737
import argparse
3838
import logging

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ license_files =
2020
include_package_data = true
2121
install_requires =
2222
pandas
23-
pyshacl
24-
rdflib >= 6.2.0, < 7.0.0
23+
pyshacl >= 0.24.0
24+
rdflib < 8
2525
requests
2626
tabulate
2727
packages = find:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"?name":"Johnny Lee Outlaw","?mbox":"mailto:[email protected]"},{"?name":"Peter Goodguy","?mbox":"mailto:[email protected]"}]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[["Johnny Lee Outlaw","mailto:[email protected]"],["Peter Goodguy","mailto:[email protected]"]]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"?name":"Johnny Lee Outlaw","?mbox":"mailto:[email protected]"},{"?name":"Peter Goodguy","?mbox":"mailto:[email protected]"}]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[["Johnny Lee Outlaw","mailto:[email protected]"],["Peter Goodguy","mailto:[email protected]"]]

tests/case_utils/case_sparql_select/test_data_frame_to_table_text_json.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,22 @@ def make_data_frame_to_json_table_text_parameters() -> (
5555
"values",
5656
]:
5757
# Handle incompatible parameter pairings for JSON mode.
58-
if use_index is False:
59-
if json_orient not in {"split", "table"}:
58+
if use_index is True:
59+
if json_orient not in {
60+
"columns",
61+
"index",
62+
"split",
63+
"table",
64+
}:
65+
continue
66+
elif use_index is False:
67+
if json_orient not in {
68+
"records",
69+
"split",
70+
"table",
71+
"values",
72+
}:
6073
continue
61-
6274
yield (json_orient, output_mode, use_header, use_index)
6375
else:
6476
yield ("columns", output_mode, use_header, use_index)

0 commit comments

Comments
 (0)