diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d90dda7..305ed63 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,9 +12,9 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.x" - name: Build @@ -24,7 +24,7 @@ jobs: pip install -U pip setuptools wheel build python -m build - name: Upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: build-artifacts path: ./dist @@ -40,7 +40,7 @@ jobs: id-token: write steps: - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: build-artifacts path: ./dist @@ -59,7 +59,7 @@ jobs: id-token: write steps: - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: build-artifacts path: ./dist diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0c329a2..0442eea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,8 +2,7 @@ name: Test on: push: - branches-ignore: - - main + branches-ignore: [main] concurrency: group: ${{ github.workflow }}-${{ github.ref || github.run_id }} @@ -14,11 +13,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.x"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.x"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Build diff --git a/ppslack/__version__.py b/ppslack/__version__.py index 3e0182e..88c513e 100644 --- a/ppslack/__version__.py +++ b/ppslack/__version__.py @@ -1 +1 @@ -__version__ = "3.2.6" +__version__ = "3.3.0" diff --git a/ppslack/main.py b/ppslack/main.py index 7f1a21b..908bfe1 100644 --- a/ppslack/main.py +++ b/ppslack/main.py @@ -75,4 +75,4 @@ def main(): ) except Exception as e: log.critical(e) - sys.exit(1) + sys.exit(0) diff --git a/ppslack/slack.py b/ppslack/slack.py index 6b8bded..30e4c5c 100755 --- a/ppslack/slack.py +++ b/ppslack/slack.py @@ -26,7 +26,7 @@ log = logging.getLogger(__name__) -class Slack(object): +class Slack: def __init__(self): try: self._config = Config('ppslack') diff --git a/requirements.txt b/requirements.txt index 9cb3212..f149d25 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ pplogger ppconfig -slack_sdk \ No newline at end of file +slack_sdk