File: publish_to_prod_pypi.yml

package info (click to toggle)
aws-crt-python 0.16.8%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 78,328 kB
  • sloc: ansic: 330,743; python: 18,949; makefile: 6,271; sh: 3,712; asm: 754; cpp: 699; ruby: 208; java: 77; perl: 73; javascript: 46; xml: 11
file content (26 lines) | stat: -rw-r--r-- 869 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
version: 0.2
# this image assumes Ubuntu 14.04 base image
phases:
  install:
    commands:
      - sudo apt-get update -y
      - sudo apt-get install python3 python3-pip -y
      - python3 -m pip install --user --upgrade pip
      - python3 -m pip install --user --upgrade twine setuptools wheel boto3 PyOpenSSL six
  pre_build:
    commands:
      - export CC=gcc
  build:
    commands:
      - echo Build started on `date`
      - mkdir dist
      - cp -rv $CODEBUILD_SRC_DIR_aws_crt_python_windows/dist/* dist/
      - cp -rv $CODEBUILD_SRC_DIR_aws_crt_python_manylinux1/dist/* dist/
      - cp -rv $CODEBUILD_SRC_DIR_aws_crt_python_osx/* dist/
      - ls -la dist/
      - cd aws-crt-python
      - python3 continuous-delivery/pull-pypirc.py prod
      - python3 -m twine upload -r pypi ../dist/*
  post_build:
    commands:
      - echo Build completed on `date`