From 4d021352b4aad89188d4845e3c6dce50a3eb12a6 Mon Sep 17 00:00:00 2001 From: Pranshu Srivastava Date: Thu, 15 Feb 2024 15:15:50 +0530 Subject: [PATCH 1/4] fix: publish to pip workflow Signed-off-by: Pranshu Srivastava --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b4ea66c..d8b1cf1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,11 +22,13 @@ jobs: run: | python -m pip install --upgrade pip pip install setuptools wheel twine + working-directory: ./keploy - name: Build and publish to PyPI run: | python setup.py sdist bdist_wheel twine upload dist/* + working-directory: ./keploy env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} From d1a5b5d7bb54e54f2aeabd4f16564402a09be850 Mon Sep 17 00:00:00 2001 From: Pranshu Srivastava Date: Fri, 21 Jun 2024 16:55:56 +0530 Subject: [PATCH 2/4] fix: removed unnecessar directory Signed-off-by: Pranshu Srivastava --- .github/workflows/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d8b1cf1..ae5c2fb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,9 +1,9 @@ name: Deploy to PyPI on: - release: - types: - - created + push: + branches: + - 'fix-workflow' jobs: deploy: @@ -22,13 +22,13 @@ jobs: run: | python -m pip install --upgrade pip pip install setuptools wheel twine - working-directory: ./keploy + working-directory: ./ - name: Build and publish to PyPI run: | python setup.py sdist bdist_wheel twine upload dist/* - working-directory: ./keploy + working-directory: ./ env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} From 1644f82c8cf6cb23b9a618219e45fe8b0b0ec7ac Mon Sep 17 00:00:00 2001 From: Pranshu Srivastava Date: Fri, 21 Jun 2024 17:01:17 +0530 Subject: [PATCH 3/4] fix: removed incorrect directory Signed-off-by: Pranshu Srivastava --- src/keploy/integrations/__init__.py | 0 {keploy => src/keploy}/integrations/djangoCov.py | 0 {keploy => src/keploy}/integrations/fastApiCov.py | 0 {keploy => src/keploy}/integrations/flaskCov.py | 0 {keploy => src/keploy}/integrations/utils.py | 2 +- 5 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 src/keploy/integrations/__init__.py rename {keploy => src/keploy}/integrations/djangoCov.py (100%) rename {keploy => src/keploy}/integrations/fastApiCov.py (100%) rename {keploy => src/keploy}/integrations/flaskCov.py (100%) rename {keploy => src/keploy}/integrations/utils.py (89%) diff --git a/src/keploy/integrations/__init__.py b/src/keploy/integrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/keploy/integrations/djangoCov.py b/src/keploy/integrations/djangoCov.py similarity index 100% rename from keploy/integrations/djangoCov.py rename to src/keploy/integrations/djangoCov.py diff --git a/keploy/integrations/fastApiCov.py b/src/keploy/integrations/fastApiCov.py similarity index 100% rename from keploy/integrations/fastApiCov.py rename to src/keploy/integrations/fastApiCov.py diff --git a/keploy/integrations/flaskCov.py b/src/keploy/integrations/flaskCov.py similarity index 100% rename from keploy/integrations/flaskCov.py rename to src/keploy/integrations/flaskCov.py diff --git a/keploy/integrations/utils.py b/src/keploy/integrations/utils.py similarity index 89% rename from keploy/integrations/utils.py rename to src/keploy/integrations/utils.py index 81f4bd7..6332665 100644 --- a/keploy/integrations/utils.py +++ b/src/keploy/integrations/utils.py @@ -1,7 +1,7 @@ import yaml def write_dedup(result, id): - filePath = '/Users/pranshu/testing/python-fastapi/dedupData.yaml' + filePath = 'dedupData.yaml' existingData = [] try: with open(filePath, 'r') as file: From 75924951221bcabf92ae1df50f104a7168f3b98f Mon Sep 17 00:00:00 2001 From: Sarthak Shyngle <50234097+Sarthak160@users.noreply.github.com> Date: Tue, 25 Jun 2024 14:18:49 +0530 Subject: [PATCH 4/4] fix: python release workflow Signed-off-by: Sarthak Shyngle <50234097+Sarthak160@users.noreply.github.com> --- .github/workflows/main.yml | 44 +++++++++++++++++++------------------- setup.py | 2 +- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ae5c2fb..46e3970 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,34 +1,34 @@ name: Deploy to PyPI on: - push: - branches: - - 'fix-workflow' + release: + types: [created] # Trigger this action on release creation jobs: deploy: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v2 + - name: Checkout code + uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: 3.x + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.x - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - working-directory: ./ + - name: Extract version from tag + run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV - - name: Build and publish to PyPI - run: | - python setup.py sdist bdist_wheel - twine upload dist/* - working-directory: ./ - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + + - name: Build and publish to PyPI + run: | + python setup.py sdist bdist_wheel --version $VERSION + twine upload dist/* + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: pypi-${{ secrets.PYPI_API_TOKEN }} diff --git a/setup.py b/setup.py index 0290717..365dea1 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -VERSION = '2.0.0-alpha1' +VERSION = '2.0.0-alpha37' DESCRIPTION = 'Keploy' LONG_DESCRIPTION = 'Keploy Python SDK'