-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use python:3.13 * update mysql-connector-python (#695) * [py] python version > https://devguide.python.org/versions/ - remove python3.8 * [#693] update mysql-connector-python > #693 # Conflicts: # setup.py # setup_pypi_test.py * add CIBW_SKIP * fix build failed * update upload-artifact * fix action script * Update setup-php-sdk action (#696)
- Loading branch information
Showing
16 changed files
with
129 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,41 +45,48 @@ jobs: | |
python -m build -s --outdir wheelhouse | ||
- name: Install cibuildwheel | ||
run: python -m pip install cibuildwheel | ||
run: python -m pip install cibuildwheel==2.21.3 | ||
|
||
- name: Build wheels | ||
run: python -m cibuildwheel --output-dir wheelhouse | ||
env: | ||
CIBW_ARCHS_LINUX: auto aarch64 | ||
CIBW_ARCHS_WINDOWS: ARM64 AMD64 x86 | ||
CIBW_ARCHS_MACOS: auto x86_64 arm64 | ||
CIBW_SKIP: cp37-* cp38-* cp36-* pp* | ||
|
||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: pypi_test | ||
name: pypi_test-${{ matrix.os }} | ||
path: ./wheelhouse/* | ||
retention-days: 1 | ||
if-no-files-found: error | ||
|
||
publish-pypitest: | ||
needs: build_wheels_pypitest | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/download-artifact@v4.1.7 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: pypi_test | ||
pattern: pypi_test-* | ||
merge-multiple: true | ||
path: ./wheelhouse/ | ||
|
||
- name: show all artifact | ||
run: | | ||
ls -R ./wheelhouse/ | ||
ls -alR ./wheelhouse/ | ||
- name: Publish package to pypitest | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.EELIUTEST }} | ||
packages_dir: ./wheelhouse/ | ||
repository_url: https://test.pypi.org/legacy/ | ||
|
||
packages-dir: ./wheelhouse/ | ||
repository-url: https://test.pypi.org/legacy/ | ||
skip_existing: true | ||
verbose: true | ||
print_hash: true | ||
attestations: true | ||
build_wheels: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
|
@@ -114,24 +121,28 @@ jobs: | |
CIBW_ARCHS_LINUX: auto aarch64 | ||
CIBW_ARCHS_WINDOWS: ARM64 AMD64 x86 | ||
CIBW_ARCHS_MACOS: auto x86_64 arm64 | ||
CIBW_SKIP: cp37-* cp38-* cp36-* pp* | ||
|
||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: pypi | ||
name: pypi-${{ matrix.os }} | ||
path: ./wheelhouse/* | ||
retention-days: 1 | ||
if-no-files-found: error | ||
|
||
publish: | ||
needs: build_wheels | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
name: pypi | ||
pattern: pypi-* | ||
merge-multiple: true | ||
path: ./wheelhouse/ | ||
|
||
- name: show all artifact | ||
run: | | ||
ls -R ./wheelhouse/ | ||
ls -alR ./wheelhouse/ | ||
- name: Publish package to pypitest | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ Our advantage: | |
|
||
## Python Agent | ||
|
||
> py 3.8+ | ||
> py 3.9+ | ||
`pip install pinpointPy` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,5 +55,9 @@ def monkey_patch(): | |
|
||
|
||
__all__ = ['monkey_patch'] | ||
__version__ = '0.0.5' | ||
__version__ = '0.0.6' | ||
__author__ = '[email protected]' | ||
|
||
# Changes | ||
# ## 0.0.6 | ||
# - remove `CMySQLCursor` and `CMySQLCursorPrepared` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
bottle==0.12.25 | ||
fastapi==0.111.0 | ||
flask==3.0.0 | ||
httpx==0.25.1 | ||
mysql-connector-python==8.0.31 | ||
pymongo==4.6.3 | ||
PyMySQL==1.1.1 | ||
redis==5.0.1 | ||
requests==2.31.0 | ||
SQLAlchemy==2.0.23 | ||
starlette-context==0.3.6 | ||
mysqlclient==2.2.0 | ||
bottle | ||
fastapi | ||
flask | ||
httpx | ||
mysql-connector-python | ||
pymongo | ||
PyMySQL | ||
redis | ||
requests | ||
SQLAlchemy | ||
starlette-context | ||
mysqlclient | ||
grpcio | ||
grpc-interceptor==0.15.4 | ||
grpc-interceptor | ||
psycopg2 | ||
pinpointPy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM python:3.8 | ||
FROM python:3.12 | ||
WORKDIR /app/ | ||
|
||
COPY testapps/django/mysite/ /app/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM python:3.8 | ||
FROM python:3.12 | ||
WORKDIR /app/ | ||
|
||
COPY testapps/fastapi/ /app/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM python:3.8 | ||
FROM python:3.12 | ||
WORKDIR /app/ | ||
|
||
COPY testapps/grpc-py/ /app/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM python:3.8 | ||
FROM python:3.12 | ||
WORKDIR /app/ | ||
|
||
COPY testapps/grpc-py/ /app/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM python:latest | ||
|
||
COPY setup.py /pinpoint-c-agent/setup.py | ||
COPY common/ /pinpoint-c-agent/common | ||
COPY README /pinpoint-c-agent/README | ||
COPY plugins/PY /pinpoint-c-agent/plugins/PY | ||
COPY src/PY /pinpoint-c-agent/src/PY | ||
|
||
|
||
RUN pip install -r /pinpoint-c-agent/plugins/PY/requirements.txt | ||
RUN cd /pinpoint-c-agent && pip install -e . | ||
CMD ["python","-m","unittest","discover","-s","/pinpoint-c-agent/plugins/PY/pinpointPy/"] | ||
# CMD [ "python","-m","unittest","pinpointPy.libs._MysqlConnector.test_case.Test_Case" ] | ||
# CMD [ "sleep","infinity" ] | ||
# python -m unittest discover -s /pinpoint-c-agent/plugins/PY/pinpointPy/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM python:latest | ||
|
||
COPY setup.py /pinpoint-c-agent/setup.py | ||
COPY common/ /pinpoint-c-agent/common | ||
COPY README /pinpoint-c-agent/README | ||
COPY plugins/PY /pinpoint-c-agent/plugins/PY | ||
COPY src/PY /pinpoint-c-agent/src/PY | ||
|
||
|
||
RUN pip install -r /pinpoint-c-agent/plugins/PY/requirements.txt | ||
RUN cd /pinpoint-c-agent && pip install -e . | ||
CMD ["python","-m","unittest","discover","-s","/pinpoint-c-agent/plugins/PY/pinpointPy/"] | ||
# CMD [ "python","-m","unittest","pinpointPy.libs._MysqlConnector.test_case.Test_Case" ] | ||
# CMD [ "sleep","infinity" ] | ||
# python -m unittest discover -s /pinpoint-c-agent/plugins/PY/pinpointPy/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters