Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ci - pin pip #247

Merged
merged 3 commits into from
Oct 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .ci/install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ fi
#
# Install Python Development Dependencies
#

# work around as suggested in https://github.com/actions/setup-python/issues/260
python -m pip install --ignore-installed pip==21.2.4 --disable-pip-version-check --no-warn-script-location
python3 -m pip install --user -e .[dev]

exit 0
9 changes: 9 additions & 0 deletions .ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ function run_test() {
if [ -n "${ENABLE_COVERAGE}" ]; then
python3 -m codecov
fi

# verify that package is sane on a user install that is not editable
git clean -fdx
python3 -m pip install --user .
# can't be in a directory that has the package as a folder, Python tries to use that
# over whats installed.
pushd /tmp
python3 -c 'import tpm2_pytss'
popd
}

function run_whitespace() {
Expand Down
1 change: 1 addition & 0 deletions tpm2_pytss/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import _cffi_backend
from .ESAPI import ESAPI
from .FAPI import *
from .TCTILdr import *
Expand Down