Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit 9958e59

Browse files
author
William McLendon
committed
FMWK: Updating some testing scripts and docs
1 parent 20fa2ce commit 9958e59

File tree

7 files changed

+33
-13
lines changed

7 files changed

+33
-13
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
<!--
2-
[![pipeline status](https://gitlab-ex.sandia.gov/trilinos-devops-consolidation/code/SetProgramOptions/badges/master/pipeline.svg)](https://gitlab-ex.sandia.gov/trilinos-devops-consolidation/code/SetProgramOptions/-/commits/master)
3-
[![coverage report](https://gitlab-ex.sandia.gov/trilinos-devops-consolidation/code/SetProgramOptions/badges/master/coverage.svg)](http://10.202.35.89:8080/SetProgramOptions/coverage/index.html)
4-
[![Generic badge](https://img.shields.io/badge/docs-latest-green.svg)](http://10.202.35.89:8080/SetProgramOptions/doc/index.html)
5-
-->
61
<!-- Github Badges -->
72
[![SetProgramOptions Testing](https://github.com/sandialabs/SetProgramOptions/actions/workflows/test-driver-core.yml/badge.svg)](https://github.com/sandialabs/SetProgramOptions/actions/workflows/test-driver-core.yml)
83
[![Documentation Status](https://readthedocs.org/projects/setprogramoptions/badge/?version=latest)](https://setprogramoptions.readthedocs.io/en/latest/?badge=latest)
94

5+
106
SetProgramOptions
117
=================
128
The `SetProgramOptions` package extends [`ConfigParserEnhanced`][2] to enable the processing

exec-reqs-install.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
# Source the common helpers script.
88
source scripts/common.bash
99

10+
# Check if we're in a virtual environment
11+
pip_opt_user=""
12+
if [ -z ${VIRTUAL_ENV} ]; then
13+
# if not in virtual environment
14+
pip_opt_user="--user"
15+
fi
16+
1017
printf "${yellow}"
1118
print_banner "INSTALL REQUIRED PACKAGES"
1219
printf "${normal}"
@@ -19,8 +26,9 @@ execute_command "${python_exe:?} --version"
1926
options=(
2027
-m pip
2128
install
22-
--user
29+
${pip_opt_user}
2330
-r requirements.txt
31+
-r requirements-build.txt
2432
-r requirements-test.txt
2533
-r doc/requirements.txt
2634
)

exec-reqs-uninstall.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ options=(
1818
-y
1919
-r requirements.txt
2020
-r requirements-test.txt
21+
#-r requirements-build.txt
2122
)
2223

2324
cmd="${python_exe} ${options[@]} ${projectname}"

exec-tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ options=(
3939
python3 -m pytest ${options[@]}
4040
err=$?
4141

42-
4342
# Install the package
44-
execute_command_checked "python3 -m pip wheel --no-deps -w dist . >& _test-build-dist.log"
43+
# execute_command_checked "python3 -m pip wheel --no-deps -w dist . >& _test-build-dist.log"
44+
execute_command_checked "python3 -m build >& _test-build-dist.log"
4545
execute_command_checked "python3 -m pip install ${pip_opt_user} . >& _test-install.log"
4646

4747

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ Issues = "https://gitlab-ex.sandia.gov/trilinos-devops-consolidation/code/SetPro
2929
[tool.poetry.dependencies]
3030
python = "^3.6"
3131
configparser = "^5.0"
32-
configparserenhanced = {git = "https://gitlab-ex.sandia.gov/trilinos-devops-consolidation/code/ConfigParserEnhanced.git", rev = "master"}
32+
configparserenhanced = "^0.8"
33+
34+
# deprecated
35+
# configparserenhanced = {git = "https://gitlab-ex.sandia.gov/trilinos-devops-consolidation/code/ConfigParserEnhanced.git", rev = "master"}
3336

3437

3538
[tool.poetry.dev-dependencies]

requirements-build.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#
2+
# Build/Distribution-specific requirements are in this file.
3+
# - Dependencies in requirements.txt are still needed.
4+
#
5+
6+
# Build / Distribution Requirements
7+
setuptools >= 58.0
8+
build >= 0.7
9+
10+
11+
# (possibly) unnecessary packages
12+
# poetry >= 1.1
13+

requirements.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
#
44

55
# Core Requirements
6-
6+
configparserenhanced
77

88
# Privately hosted repositories
9-
#configparserenhanced @ git+ssh://git@gitlab-ex.sandia.gov/trilinos-devops-consolidation/code/ConfigParserEnhanced.git@master#egg=configparserenhanced
10-
11-
configparserenhanced @ git+https://github.com/sandialabs/ConfigParserEnhanced.git@master#egg=configparserenhanced
9+
# configparserenhanced @ git+ssh://git@gitlab-ex.sandia.gov/trilinos-devops-consolidation/code/ConfigParserEnhanced.git@master#egg=configparserenhanced
10+
# configparserenhanced @ git+https://github.com/sandialabs/ConfigParserEnhanced.git@master#egg=configparserenhanced
1211

0 commit comments

Comments
 (0)