diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b4ea66c..46e3970 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,31 +2,33 @@ name: Deploy to PyPI on: release: - types: - - created + 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 + - 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/* - 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' 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: