diff --git a/.env_template b/.env_template new file mode 100644 index 0000000..cdf2904 --- /dev/null +++ b/.env_template @@ -0,0 +1,10 @@ +SOLACE_BROKER_URL="tcps://your_service.messaging.solace.cloud:55443" +SOLACE_BROKER_USERNAME= +SOLACE_BROKER_PASSWORD= +SOLACE_BROKER_VPN= +SOLACE_BROKER_TRUST_STORE_PATH="/usr/share/ca-certificates/mozilla" + +AZURE_OPENAI_API_KEY= +AZURE_OPENAI_API_ENDPOINT= +AZURE_OPENAI_API_VERSION= +AZURE_OPENAI_MODEL_DEPLOYMENT= \ No newline at end of file diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..7789766 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,20 @@ +name: CI +on: + push: + branches: + - main + pull_request: + types: [opened, synchronize] + +permissions: + id-token: write + checks: write + pull-requests: write + contents: write + +jobs: + ci: + uses: SolaceDev/solace-public-workflows/.github/workflows/hatch_ci.yml@v1.0.0 + secrets: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..ace235f --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,25 @@ +name: Release +on: + workflow_dispatch: + inputs: + version: + type: choice + required: true + description: "Version bump type" + options: + - patch + - minor + - major + +permissions: + id-token: write + checks: write + +jobs: + release: + uses: SolaceDev/solace-public-workflows/.github/workflows/hatch_release_pypi.yml@v1.0.0 + with: + version: ${{ github.event.inputs.version }} + pypi-project: solace-ai-connector-slack + secrets: + COMMIT_KEY: ${{ secrets.COMMIT_KEY }} diff --git a/pyproject.toml b/pyproject.toml index a9c3890..79c46df 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "hatchling.build" [project] name = "solace_ai_connector_slack" -version = "0.0.1" +dynamic = ["version"] authors = [ { name="Edward Funnekotter", email="edward.funnekotter@solace.com" }, ] @@ -20,7 +20,7 @@ classifiers = [ dependencies = [ "PyYAML>=6.0.1", "slack_bolt>=1.18.1", - "solace_ai_connector>=0.0.1", + "solace_ai_connector>=0.1.1", ] [project.urls] @@ -31,3 +31,10 @@ documentation = "https://github.com/SolaceLabs/solace-ai-connector-slack/blob/ma [tool.hatch.build.targets.wheel] packages = ["src/solace_ai_connector_slack"] + +[tool.hatch.version] +path = "src/solace_ai_connector_slack/components/__init__.py" + +[tool.ruff] +lint.select = ["E4", "E7", "E9", "F"] +lint.ignore = ["F401", "E731"] diff --git a/src/solace_ai_connector_slack/components/__init__.py b/src/solace_ai_connector_slack/components/__init__.py index e69de29..8e9a09e 100644 --- a/src/solace_ai_connector_slack/components/__init__.py +++ b/src/solace_ai_connector_slack/components/__init__.py @@ -0,0 +1,3 @@ +# Internal components that are dynamically loaded by the AI Connector +# Listing them here allows for them to use relative imports +__version__ = "0.0.1"