-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from cevich/update_reqs
Fix installer failures + update ccia requirements + use exec in wrapper
- Loading branch information
Showing
12 changed files
with
127 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
# Producing this list was done using the following process: | ||
# 1. Create a temporary `req.txt` file containing only the basic | ||
# non-distribution provided packages, e.g. `aiohttp[speedups]`, | ||
# `PyYAML`, `gql[requests]`, `requests` (see cirrus-ci_artifacts.py, | ||
# actual requirements may have changed) | ||
# 2. From a Fedora:latest container, install python3 & python3-virtualenv | ||
# 3. Setup & activate a temporary virtual environment | ||
# 4. Execute `pip3 install --requirements req.txt` | ||
# 5. Run pip3 freeze | ||
# 6. Edit `requirements.txt`, add the `~=` specifier to each line along | ||
# with the correct two-component version number (from freeze output) | ||
# 7. In a fresh container, confirm the automation installer | ||
# functions with the cirrus-ci_artifacts component (see main README | ||
# for installer instructions) | ||
PyYAML~=6.0 | ||
aiohttp~=3.8 | ||
aiosignal~=1.2 | ||
async-timeout~=4.0 | ||
attrs~=21.4 | ||
certifi~=2021.10 | ||
charset-normalizer~=2.0.0 | ||
frozenlist~=1.3 | ||
gql~=3.0 | ||
graphql-core~=3.2 | ||
idna~=3.3 | ||
multidict~=6.0 | ||
requests-toolbelt~=0.9 | ||
requests~=2.27 | ||
urllib3~=1.26 | ||
yarl~=1.7 | ||
aiohttp[speedups]~=3.8 | ||
gql[requests]~=3.3 | ||
requests~=2.28 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,29 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
TESTDIR=$(dirname ${BASH_SOURCE[0]}) | ||
cd "$TESTDIR" | ||
|
||
set -a | ||
virtualenv testvenv | ||
source testvenv/bin/activate | ||
testvenv/bin/python -m pip install --upgrade pip | ||
pip3 install --requirement ../requirements.txt | ||
set +a | ||
if [[ "$GITHUB_ACTIONS" == "true" ]]; then | ||
echo "Lint/Style checking not supported under github actions: Skipping" | ||
exit 0 | ||
fi | ||
|
||
if [[ -x $(type -P flake8-3) ]]; then | ||
cd "$TESTDIR" | ||
set -a | ||
virtualenv testvenv | ||
source testvenv/bin/activate | ||
testvenv/bin/python -m pip install --upgrade pip | ||
pip3 install --requirement ../requirements.txt | ||
set +a | ||
|
||
./test_cirrus-ci_artifacts.py -v | ||
|
||
./test_cirrus-ci_artifacts.py | ||
cd .. | ||
flake8-3 --max-line-length=100 ./cirrus-ci_artifacts.py | ||
flake8-3 --max-line-length=100 --extend-ignore=D101,D102,D103,D105 test/test_cirrus-ci_artifacts.py | ||
else | ||
echo "Can't find flake-8-3 binary, is script executing inside CI container?" | ||
exit 1 | ||
fi |
Oops, something went wrong.