diff --git a/.github/workflows/commit.yml b/.github/workflows/commit.yml new file mode 100644 index 0000000..e69de29 diff --git a/.github/workflows/release_pypi.yml b/.github/workflows/release_pypi.yml index 35ded60..9f9472d 100644 --- a/.github/workflows/release_pypi.yml +++ b/.github/workflows/release_pypi.yml @@ -8,53 +8,35 @@ permissions: contents: read jobs: - verify: - name: Verify Python build - runs-on: ubuntu-latest - steps: - - name: Check out the repository - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: "3.10" - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install pylint - build: name: Build and publish to PyPi - needs: verify runs-on: ubuntu-latest steps: - - name: Check out the repository - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: "3.10" - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install --upgrade build - - - name: Extract release version - id: release_version - run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} - - - name: Update version in setup.py - run: sed -i "s/{{VERSION_PLACEHOLDER}}/${{ steps.release_version.outputs.VERSION }}/g" setup.py - - - name: Build package - run: python setup.py sdist - - - name: Publish package - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file + - name: Check out the repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.10" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install --upgrade build + + - name: Extract release version + id: release_version + run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} + + - name: Update version in setup.py + run: sed -i "s/{{VERSION_PLACEHOLDER}}/${{ steps.release_version.outputs.VERSION }}/g" setup.py + + - name: Build package + run: python setup.py sdist + + - name: Publish package + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/src/__init__.py b/motionblindsble/__init__.py similarity index 100% rename from src/__init__.py rename to motionblindsble/__init__.py diff --git a/src/const.py b/motionblindsble/const.py similarity index 100% rename from src/const.py rename to motionblindsble/const.py diff --git a/src/crypt.py b/motionblindsble/crypt.py similarity index 100% rename from src/crypt.py rename to motionblindsble/crypt.py diff --git a/src/device.py b/motionblindsble/device.py similarity index 100% rename from src/device.py rename to motionblindsble/device.py