Skip to content

Commit

Permalink
chore: revert dynamic versioning of python
Browse files Browse the repository at this point in the history
  • Loading branch information
mkolasinski-splunk committed Jun 24, 2024
1 parent e51b4fa commit a09b76b
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/reusable-build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ jobs:
if [ -f "poetry.lock" ]
then
mkdir -p package/lib || true
pip install poetry==1.5.1 poetry-plugin-export==1.4.0
python${{ matrix.python-version }} -m pip install poetry==1.5.1 poetry-plugin-export==1.4.0
poetry lock --check
poetry export --without-hashes -o package/lib/requirements.txt
poetry export --without-hashes --with dev -o requirements_dev.txt
Expand Down Expand Up @@ -389,7 +389,7 @@ jobs:
if [ -f "poetry.lock" ]
then
mkdir -p package/lib || true
pip install poetry==1.5.1 poetry-plugin-export==1.4.0
python${{ matrix.python-version }} -m pip install poetry==1.5.1 poetry-plugin-export==1.4.0
poetry lock --check
poetry export --without-hashes -o package/lib/requirements.txt
poetry export --without-hashes --with dev -o requirements_dev.txt
Expand Down Expand Up @@ -437,7 +437,6 @@ jobs:
# build if this is not set false
persist-credentials: false
- name: Setup python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: 3.7
Expand All @@ -446,7 +445,7 @@ jobs:
if [ -f "poetry.lock" ]
then
echo " poetry.lock found "
python${{ steps.setup-python.python-version }} -m pip install poetry==1.5.1 poetry-plugin-export==1.4.0
python3.7 -m pip install poetry==1.5.1 poetry-plugin-export==1.4.0
poetry export --without-hashes -o requirements.txt
if [ "$(grep -cve '^\s*$' requirements.txt)" -ne 0 ]
then
Expand Down Expand Up @@ -610,7 +609,6 @@ jobs:
# build if this is not set false
persist-credentials: false
- name: Setup python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: 3.9
Expand All @@ -619,7 +617,7 @@ jobs:
if [ -f "poetry.lock" ]
then
echo " poetry.lock found "
python${{ steps.setup-python.python-version }} -m pip install poetry==1.5.1 poetry-plugin-export==1.4.0
python3.9 -m pip install poetry==1.5.1 poetry-plugin-export==1.4.0
poetry export --without-hashes -o requirements.txt
if [ "$(grep -cve '^\s*$' requirements.txt)" -ne 0 ]
then
Expand Down Expand Up @@ -870,7 +868,6 @@ jobs:
name: artifact-openapi
path: ${{ github.workspace }}
- name: Setup python
id: setup-python
if: steps.download-openapi.conclusion != 'skipped'
uses: actions/setup-python@v5
with:
Expand All @@ -881,7 +878,7 @@ jobs:
env:
PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring
run: |
python${{ steps.setup-python.python-version }} -m pip install poetry==1.5.1
python3.7 -m pip install poetry==1.5.1
export POETRY_REPOSITORIES_SPLUNK_ADD_ON_UCC_MODINPUT_TEST_URL=https://github.com/splunk/addonfactory-ucc-test.git
export POETRY_HTTP_BASIC_SPLUNK_ADD_ON_UCC_MODINPUT_TEST_USERNAME=${{ secrets.SA_GH_USER_NAME }}
export POETRY_HTTP_BASIC_SPLUNK_ADD_ON_UCC_MODINPUT_TEST_PASSWORD=${{ secrets.GH_TOKEN_ADMIN }}
Expand Down

0 comments on commit a09b76b

Please sign in to comment.