Skip to content

Commit 374a1ae

Browse files
authored
don't use cache when pulling brand new version from pypi (#199)
1 parent cc07689 commit 374a1ae

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

codebuild/cd/test_prod_pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ phases:
1212
build:
1313
commands:
1414
- echo Build started on `date`
15-
- cd aws-crt-python
15+
- cd aws-crt-python
1616
- CURRENT_TAG_VERSION=$(git describe --tags | cut -f2 -dv)
17-
- python3 -m pip install --user awscrt==$CURRENT_TAG_VERSION
17+
- python3 -m pip install --no-cache-dir --user awscrt==$CURRENT_TAG_VERSION
1818
- python3 continuous-delivery/test-pip-install.py
1919
post_build:
2020
commands:

codebuild/cd/test_test_pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ phases:
1212
build:
1313
commands:
1414
- echo Build started on `date`
15-
- cd aws-crt-python
15+
- cd aws-crt-python
1616
- CURRENT_TAG_VERSION=$(git describe --tags | cut -f2 -dv)
17-
- python3 -m pip install -i https://testpypi.python.org/simple --user awscrt==$CURRENT_TAG_VERSION
17+
- python3 -m pip install --no-cache-dir -i https://testpypi.python.org/simple --user awscrt==$CURRENT_TAG_VERSION
1818
- python3 continuous-delivery/test-pip-install.py
1919
post_build:
2020
commands:

continuous-delivery/wait-for-pypi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
def wait(package, version, index_url=DEFAULT_INDEX_URL, timeout=DEFAULT_TIMEOUT, interval=DEFAULT_INTERVAL):
1212
give_up_time = time.time() + timeout
1313
while True:
14-
output = subprocess.check_output([sys.executable, '-m', 'pip', 'search', '--index', index_url, package])
14+
output = subprocess.check_output([sys.executable, '-m', 'pip', 'search',
15+
'--no-cache-dir', '--index', index_url, package])
1516
output = output.decode()
1617

1718
# output looks like: 'awscrt (0.3.1) - A common runtime for AWS Python projects\n...'

0 commit comments

Comments
 (0)