Skip to content

Commit

Permalink
rollback 1.0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
eeliu committed Oct 18, 2023
1 parent bcaae4c commit b5d83eb
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 8 deletions.
83 changes: 77 additions & 6 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
name: build-wheels

on: [workflow_dispatch]
on:
workflow_dispatch:
inputs:
release:
description: Do you want to release to pipy
required: true
default: "false"

jobs:
build_wheels:
build_wheels_pypitest:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -46,24 +52,89 @@ jobs:

- uses: actions/upload-artifact@v3
with:
name: pypi_test
path: ./wheelhouse/*.whl

publish-pypitest:
needs: build_wheels
needs: build_wheels_pypitest
runs-on: ubuntu-latest
if: ${{ github.event.inputs.release }} == "true"
steps:
- uses: actions/download-artifact@v3
with:
name: pypi_test
path: ./wheelhouse/

- name: show all artifact
run: |
ls -al ./wheelhouse/artifact/
ls -al ./wheelhouse/pypi_test/
- name: Publish package to pypitest
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.EELIUTEST }}
packages_dir: ./wheelhouse/artifact
repository_url: https://test.pypi.org/legacy/
packages_dir: ./wheelhouse/pypi_test
repository_url: https://test.pypi.org/legacy/

build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-latest]

steps:
- uses: actions/checkout@v4

# Used to host cibuildwheel
- uses: actions/setup-python@v3

# - name: Set up QEMU
# if: runner.os == 'Linux'
# uses: docker/setup-qemu-action@v3
# with:
# platforms: all

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.16.0

# - name: Build wheels
# uses: pypa/cibuildwheel@v2.16.0
# env:
# # configure cibuildwheel to build native archs ('auto'), and some
# # emulated ones
# CIBW_ARCHS_LINUX: auto aarch64 ppc64le s390x

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
# to supply options, put them in 'env', like:
env:
CIBW_ARCHS_MACOS: "x86_64 arm64"
# CIBW_ARCHS_LINUX: "auto aarch64"

- uses: actions/upload-artifact@v3
with:
name: pypi
path: ./wheelhouse/*.whl

publish:
needs: build_wheels
runs-on: ubuntu-latest
if: ${{ github.event.inputs.release }} == "true"
steps:
- uses: actions/download-artifact@v3
with:
name: pypi
path: ./wheelhouse/

- name: show all artifact
run: |
ls -al ./wheelhouse/pypi/
- name: Publish package to pypitest
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PINPOINTPY }}
packages_dir: ./wheelhouse/pypi
2 changes: 1 addition & 1 deletion plugins/PY/pinpointPy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# !/usr/bin/env python
# -*- coding: UTF-8 -*-
# Created by eeliu at 2/4/21
__version__ = "1.0.16"
__version__ = "1.0.15"

from .libs import monkey_patch_for_pinpoint
from .pinpoint import set_agent, app_id, app_name, gen_tid
Expand Down
2 changes: 1 addition & 1 deletion setup_pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def run(self):


setup(name='pinpointPy',
version="1.0.16",# don't forget update __version__ in pinpointPy/__init__.py
version="1.0.15",# don't forget update __version__ in pinpointPy/__init__.py
author="cd_pinpoint members",
author_email='dl_cd_pinpoint@navercorp.com',
license='Apache License 2.0',
Expand Down

0 comments on commit b5d83eb

Please sign in to comment.