Skip to main content

Devpi plugin for sending Slack channel notifications

Project description

Installation

devpi-slack needs to be installed alongside devpi-server.

You can install it with:

pip install devpi-slack

For devpi-server there is no configuration needed, as it will automatically discover the plugin through calling hooks using the setuptools entry points mechanism.

Details about configuration below.

Configuration

devpi-slack can trigger Slack notifications upon package upload.

devpi index /testuser/dev slack_icon=http://doc.devpi.net/latest/_static/devpicat.jpg slack_hook=https://hooks.slack.com/services/XXX/YYY/ZZZ slack_user=devpi

Environment Variables:

Optionally, you can pass environment variables to configure the plugin.

  • SLACK_HOOK to adjust the Slack hook URL used. Defaults to the devpi slack_hook value above. (Note: slack_hook provided by devpi takes precedence. Setting both will default to the value specified in devpi)

  • SLACK_ICON to adjust the Slack icon used. Defaults to: <http://doc.devpi.net/latest/_static/devpicat.jpg>

  • SLACK_USER to adjust the Slack username used. Defaults to: devpi

Uninstall

Remove the index configuration:

devpi index /testuser/dev slack_icon-= slack_hook-= slack_user-=

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

devpi-slack-0.1.4.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file devpi-slack-0.1.4.tar.gz.

File metadata

  • Download URL: devpi-slack-0.1.4.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for devpi-slack-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f586603aa21058002eb0a44711b397514a39a1d381f1364efdfec42679d0d92d
MD5 a2cab3b44a4ea77a0cac42b9c6c85bee
BLAKE2b-256 7aaa34f75acfc328692b1d7f34081c5c932a4efbca47ffc452c17898ea42f483

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page