Skip to content

Commit 7e02d18

Browse files
committed
Merge branches 'HotFix-0.9.1-refresh_pre_commit', 'HotFix-0.9.1-set_pandas_ceiling' and 'support-0.8.x' into release-0.9.1
3 parents 7774dd9 + 94286ab + 893eac6 commit 7e02d18

File tree

4 files changed

+36
-15
lines changed

4 files changed

+36
-15
lines changed

.github/workflows/cicd.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ name: Continuous Integration
1313

1414
on:
1515
push:
16-
branches:
16+
branches:
1717
- main
1818
- develop
19+
- support-*
1920
pull_request:
20-
branches:
21+
branches:
2122
- main
2223
- develop
24+
- support-*
2325
release:
2426
types:
2527
- published
@@ -30,8 +32,8 @@ jobs:
3032
runs-on: ubuntu-latest
3133
strategy:
3234
matrix:
33-
python-version:
34-
- '3.7'
35+
python-version:
36+
- '3.8'
3537
- '3.11'
3638

3739
steps:
@@ -52,7 +54,7 @@ jobs:
5254
run: make clean
5355
- name: Run tests
5456
run: make PYTHON3=python check
55-
57+
5658
# Build the binary wheel as well as the source tar
5759
- name: Build Objects
5860
run: |

case_utils/local_uuid.py

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,25 @@
3232
_logger = logging.getLogger(pathlib.Path(__file__).name)
3333

3434

35+
def _is_relative_to(p1: pathlib.Path, p2: pathlib.Path) -> bool:
36+
"""
37+
This function provides pathlib.is_relative_to to Pythons before 3.9. After the End of Life of Python 3.8, this function can be removed.
38+
"""
39+
if sys.version_info < (3, 9):
40+
try:
41+
_ = p1.relative_to(p2)
42+
return True
43+
except ValueError:
44+
return False
45+
else:
46+
return p1.is_relative_to(p2)
47+
48+
3549
def configure() -> None:
3650
global DEMO_UUID_BASE
3751

52+
# _logger.debug("sys.argv = %r.", sys.argv)
53+
3854
if os.getenv("DEMO_UUID_REQUESTING_NONRANDOM") == "NONRANDOM_REQUESTED":
3955
warnings.warn(
4056
"Environment variable DEMO_UUID_REQUESTING_NONRANDOM is deprecated. See case_utils.local_uuid.demo_uuid for usage notes on its replacement, CASE_DEMO_NONRANDOM_UUID_BASE. Proceeding with random UUIDs.",
@@ -84,18 +100,23 @@ def configure() -> None:
84100
demo_uuid_base_parts.append(sys.argv[0])
85101
else:
86102
command_original_path = pathlib.Path(sys.argv[0])
103+
# _logger.debug("command_original_path = %r.", command_original_path)
87104
command_resolved_path = command_original_path.resolve()
105+
# _logger.debug("command_resolved_path = %r.", command_resolved_path)
106+
107+
# The command could be a command embedded in a virtual
108+
# environment, or it could be a script external to any virtual
109+
# environment.
88110
venv_original_path = pathlib.Path(env_venv_name)
89111
venv_resolved_path = venv_original_path.resolve()
90-
try:
112+
if _is_relative_to(command_resolved_path, venv_resolved_path):
91113
command_relative_path = command_resolved_path.relative_to(
92114
venv_resolved_path
93115
)
94116
# _logger.debug("command_relative_path = %r.", command_relative_path)
95117
demo_uuid_base_parts.append(str(command_relative_path))
96-
except ValueError:
97-
# _logger.debug("Command path is not relative to virtual environment path.")
98-
demo_uuid_base_parts.append(str(command_resolved_path))
118+
else:
119+
demo_uuid_base_parts.append(str(command_original_path))
99120

100121
if len(sys.argv) > 1:
101122
# Component: Arguments of argument vector.

setup.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ license_files =
1919
[options]
2020
include_package_data = true
2121
install_requires =
22-
pandas
22+
pandas < 2.1.0
2323
pyshacl
24-
rdflib >= 6.2.0
24+
rdflib >= 6.2.0, < 6.3.0
2525
requests
2626
tabulate
2727
packages = find:
28-
python_requires = >=3.7
28+
python_requires = >=3.8
2929

3030
[options.entry_points]
3131
console_scripts =

tests/case_utils/case_validate/uco_test_examples/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ SHELL := /bin/bash
1515

1616
top_srcdir := $(shell cd ../../../.. ; pwd)
1717

18-
case_srcdir := $(top_srcdir)/dependencies/CASE
19-
20-
uco_srcdir := $(case_srcdir)/dependencies/UCO
18+
uco_srcdir := $(top_srcdir)/dependencies/CASE/dependencies/UCO
2119

2220
examples_srcdir := $(uco_srcdir)/tests/examples
2321

0 commit comments

Comments
 (0)