diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 19:13:56 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 19:13:56 +0000 |
| commit | fb6eab38f1200d88d319fb2902f0ddfe55bbde89 (patch) | |
| tree | 5e1e21cc148da85988c7e2fb971512472562e67d | |
| parent | eb05aeba0991710c343bcbf5a159888781591a1c (diff) | |
automatic import of python-slack-webhook
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-slack-webhook.spec | 321 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 323 insertions, 0 deletions
@@ -0,0 +1 @@ +/slack-webhook-1.0.7.tar.gz diff --git a/python-slack-webhook.spec b/python-slack-webhook.spec new file mode 100644 index 0000000..8634b19 --- /dev/null +++ b/python-slack-webhook.spec @@ -0,0 +1,321 @@ +%global _empty_manifest_terminate_build 0 +Name: python-slack-webhook +Version: 1.0.7 +Release: 1 +Summary: slack-webhook is a python client library for slack api Incoming Webhooks on Python 3.6 and above. +License: MIT +URL: https://github.com/10mohi6/slack-webhook-python +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d8/b8/e66a00f989b580865c0aa16c320267d4e8be17a32930faaf868ebcdcd293/slack-webhook-1.0.7.tar.gz +BuildArch: noarch + + +%description +# slack-webhook + +[](https://pypi.org/project/slack-webhook/) +[](https://opensource.org/licenses/MIT) +[](https://codecov.io/gh/10mohi6/slack-webhook-python) +[](https://travis-ci.com/10mohi6/slack-webhook-python) +[](https://pypi.org/project/slack-webhook/) +[](https://pepy.tech/project/slack-webhook) + +slack-webhook is a python client library for slack api Incoming Webhooks on Python 3.6 and above. + + +## Installation + + $ pip install slack-webhook + +## Usage + +### basic +```python +from slack_webhook import Slack + +slack = Slack(url='https://hooks.slack.com/services/T00/B00/XXX') +slack.post(text="Hello, world.") +``` + +### advanced +```python +from slack_webhook import Slack + +slack = Slack(url='https://hooks.slack.com/services/T00/B00/XXX') +slack.post(text="Robert DeSoto added a new task", + attachments = [{ + "fallback": "Plan a vacation", + "author_name": "Owner: rdesoto", + "title": "Plan a vacation", + "text": "I've been working too hard, it's time for a break.", + "actions": [ + { + "name": "action", + "type": "button", + "text": "Complete this task", + "style": "", + "value": "complete" + }, + { + "name": "tags_list", + "type": "select", + "text": "Add a tag...", + "data_source": "static", + "options": [ + { + "text": "Launch Blocking", + "value": "launch-blocking" + }, + { + "text": "Enhancement", + "value": "enhancement" + }, + { + "text": "Bug", + "value": "bug" + } + ] + } + ] + }] +) +``` + +## Getting started + +For help getting started with Incoming Webhooks, view our online [documentation](https://api.slack.com/incoming-webhooks). + + +## Contributing + +1. Fork it +2. Create your feature branch (`git checkout -b my-new-feature`) +3. Commit your changes (`git commit -am 'Add some feature'`) +4. Push to the branch (`git push origin my-new-feature`) +5. Create new Pull Request + + + +%package -n python3-slack-webhook +Summary: slack-webhook is a python client library for slack api Incoming Webhooks on Python 3.6 and above. +Provides: python-slack-webhook +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-slack-webhook +# slack-webhook + +[](https://pypi.org/project/slack-webhook/) +[](https://opensource.org/licenses/MIT) +[](https://codecov.io/gh/10mohi6/slack-webhook-python) +[](https://travis-ci.com/10mohi6/slack-webhook-python) +[](https://pypi.org/project/slack-webhook/) +[](https://pepy.tech/project/slack-webhook) + +slack-webhook is a python client library for slack api Incoming Webhooks on Python 3.6 and above. + + +## Installation + + $ pip install slack-webhook + +## Usage + +### basic +```python +from slack_webhook import Slack + +slack = Slack(url='https://hooks.slack.com/services/T00/B00/XXX') +slack.post(text="Hello, world.") +``` + +### advanced +```python +from slack_webhook import Slack + +slack = Slack(url='https://hooks.slack.com/services/T00/B00/XXX') +slack.post(text="Robert DeSoto added a new task", + attachments = [{ + "fallback": "Plan a vacation", + "author_name": "Owner: rdesoto", + "title": "Plan a vacation", + "text": "I've been working too hard, it's time for a break.", + "actions": [ + { + "name": "action", + "type": "button", + "text": "Complete this task", + "style": "", + "value": "complete" + }, + { + "name": "tags_list", + "type": "select", + "text": "Add a tag...", + "data_source": "static", + "options": [ + { + "text": "Launch Blocking", + "value": "launch-blocking" + }, + { + "text": "Enhancement", + "value": "enhancement" + }, + { + "text": "Bug", + "value": "bug" + } + ] + } + ] + }] +) +``` + +## Getting started + +For help getting started with Incoming Webhooks, view our online [documentation](https://api.slack.com/incoming-webhooks). + + +## Contributing + +1. Fork it +2. Create your feature branch (`git checkout -b my-new-feature`) +3. Commit your changes (`git commit -am 'Add some feature'`) +4. Push to the branch (`git push origin my-new-feature`) +5. Create new Pull Request + + + +%package help +Summary: Development documents and examples for slack-webhook +Provides: python3-slack-webhook-doc +%description help +# slack-webhook + +[](https://pypi.org/project/slack-webhook/) +[](https://opensource.org/licenses/MIT) +[](https://codecov.io/gh/10mohi6/slack-webhook-python) +[](https://travis-ci.com/10mohi6/slack-webhook-python) +[](https://pypi.org/project/slack-webhook/) +[](https://pepy.tech/project/slack-webhook) + +slack-webhook is a python client library for slack api Incoming Webhooks on Python 3.6 and above. + + +## Installation + + $ pip install slack-webhook + +## Usage + +### basic +```python +from slack_webhook import Slack + +slack = Slack(url='https://hooks.slack.com/services/T00/B00/XXX') +slack.post(text="Hello, world.") +``` + +### advanced +```python +from slack_webhook import Slack + +slack = Slack(url='https://hooks.slack.com/services/T00/B00/XXX') +slack.post(text="Robert DeSoto added a new task", + attachments = [{ + "fallback": "Plan a vacation", + "author_name": "Owner: rdesoto", + "title": "Plan a vacation", + "text": "I've been working too hard, it's time for a break.", + "actions": [ + { + "name": "action", + "type": "button", + "text": "Complete this task", + "style": "", + "value": "complete" + }, + { + "name": "tags_list", + "type": "select", + "text": "Add a tag...", + "data_source": "static", + "options": [ + { + "text": "Launch Blocking", + "value": "launch-blocking" + }, + { + "text": "Enhancement", + "value": "enhancement" + }, + { + "text": "Bug", + "value": "bug" + } + ] + } + ] + }] +) +``` + +## Getting started + +For help getting started with Incoming Webhooks, view our online [documentation](https://api.slack.com/incoming-webhooks). + + +## Contributing + +1. Fork it +2. Create your feature branch (`git checkout -b my-new-feature`) +3. Commit your changes (`git commit -am 'Add some feature'`) +4. Push to the branch (`git push origin my-new-feature`) +5. Create new Pull Request + + + +%prep +%autosetup -n slack-webhook-1.0.7 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-slack-webhook -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.7-1 +- Package Spec generated @@ -0,0 +1 @@ +5c0c38efa35c261f7b1486561dad8c45 slack-webhook-1.0.7.tar.gz |
