summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 03:33:43 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 03:33:43 +0000
commitf2e0ea7198503bcb8a5392f9cb0b6c5aa9220071 (patch)
treeff4873db23e7fa60252b2727be18a793f892ce60
parent13835e0af6002b56f364bd85ac81ce3387cf38a2 (diff)
automatic import of python-onesignal-notificationsopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-onesignal-notifications.spec262
-rw-r--r--sources1
3 files changed, 264 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..0411525 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/onesignal-notifications-0.2.6.tar.gz
diff --git a/python-onesignal-notifications.spec b/python-onesignal-notifications.spec
new file mode 100644
index 0000000..1a4ac3a
--- /dev/null
+++ b/python-onesignal-notifications.spec
@@ -0,0 +1,262 @@
+%global _empty_manifest_terminate_build 0
+Name: python-onesignal-notifications
+Version: 0.2.6
+Release: 1
+Summary: OneSignal API Wrapper for Python
+License: MIT
+URL: https://github.com/Lanseuo/onesignal-notifications
+Source0: https://mirrors.aliyun.com/pypi/web/packages/81/ad/696475caa245201deee69f4c2ea146babe0f7aa7cd377a5a5a029ac1c196/onesignal-notifications-0.2.6.tar.gz
+BuildArch: noarch
+
+Requires: python3-requests
+
+%description
+# OneSignal-Notifications
+
+![](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)
+[![PyPI](https://img.shields.io/pypi/v/onesignal-notifications.svg?style=flat-square&colorB=dfb317)](https://pypi.org/project/onesignal-notifications/)
+[![Docs](https://img.shields.io/badge/docs-VuePress-red.svg?style=flat-square)](https://lanseuo.github.io/onesignal-notifications/)
+[![Travis CI](https://img.shields.io/travis/Lanseuo/onesignal-notifications.svg?style=flat-square)](https://travis-ci.org/Lanseuo/onesignal-notifications)
+
+OneSignal-Notifications is a wrapper for the OneSignal API which allows you to send notifications to Android, iOS and Web App.
+
+## Installation
+
+```
+pip install onesignal-notifications
+```
+
+## Usage
+
+```python
+from onesignal import OneSignal, SegmentNotification
+
+client = OneSignal("MY_APP_ID", "MY_REST_API_KEY")
+notification_to_all_users = SegmentNotification(
+ contents={
+ "en": "Hello from OneSignal-Notifications"
+ },
+ included_segments=[SegmentNotification.ALL]
+)
+client.send(notification_to_all_users)
+```
+
+## Development
+
+> Contributions are welcome
+
+```
+pip install --editable .
+```
+
+run the tests
+
+```
+export ONESIGNAL_API_KEY="..."
+export ONESIGNAL_REST_API_KEY="..."
+
+pytest
+```
+
+### Docs
+
+To edit the docs, change the folder and spin up the development server.
+
+```
+cd docs
+npm install -g vuepress
+vuepress dev
+```
+
+## Meta
+
+Lucas Hild - [https://lucas-hild.de](https://lucas-hild.de)
+This project is licensed under the MIT License - see the LICENSE file for details
+
+
+
+
+%package -n python3-onesignal-notifications
+Summary: OneSignal API Wrapper for Python
+Provides: python-onesignal-notifications
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-onesignal-notifications
+# OneSignal-Notifications
+
+![](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)
+[![PyPI](https://img.shields.io/pypi/v/onesignal-notifications.svg?style=flat-square&colorB=dfb317)](https://pypi.org/project/onesignal-notifications/)
+[![Docs](https://img.shields.io/badge/docs-VuePress-red.svg?style=flat-square)](https://lanseuo.github.io/onesignal-notifications/)
+[![Travis CI](https://img.shields.io/travis/Lanseuo/onesignal-notifications.svg?style=flat-square)](https://travis-ci.org/Lanseuo/onesignal-notifications)
+
+OneSignal-Notifications is a wrapper for the OneSignal API which allows you to send notifications to Android, iOS and Web App.
+
+## Installation
+
+```
+pip install onesignal-notifications
+```
+
+## Usage
+
+```python
+from onesignal import OneSignal, SegmentNotification
+
+client = OneSignal("MY_APP_ID", "MY_REST_API_KEY")
+notification_to_all_users = SegmentNotification(
+ contents={
+ "en": "Hello from OneSignal-Notifications"
+ },
+ included_segments=[SegmentNotification.ALL]
+)
+client.send(notification_to_all_users)
+```
+
+## Development
+
+> Contributions are welcome
+
+```
+pip install --editable .
+```
+
+run the tests
+
+```
+export ONESIGNAL_API_KEY="..."
+export ONESIGNAL_REST_API_KEY="..."
+
+pytest
+```
+
+### Docs
+
+To edit the docs, change the folder and spin up the development server.
+
+```
+cd docs
+npm install -g vuepress
+vuepress dev
+```
+
+## Meta
+
+Lucas Hild - [https://lucas-hild.de](https://lucas-hild.de)
+This project is licensed under the MIT License - see the LICENSE file for details
+
+
+
+
+%package help
+Summary: Development documents and examples for onesignal-notifications
+Provides: python3-onesignal-notifications-doc
+%description help
+# OneSignal-Notifications
+
+![](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)
+[![PyPI](https://img.shields.io/pypi/v/onesignal-notifications.svg?style=flat-square&colorB=dfb317)](https://pypi.org/project/onesignal-notifications/)
+[![Docs](https://img.shields.io/badge/docs-VuePress-red.svg?style=flat-square)](https://lanseuo.github.io/onesignal-notifications/)
+[![Travis CI](https://img.shields.io/travis/Lanseuo/onesignal-notifications.svg?style=flat-square)](https://travis-ci.org/Lanseuo/onesignal-notifications)
+
+OneSignal-Notifications is a wrapper for the OneSignal API which allows you to send notifications to Android, iOS and Web App.
+
+## Installation
+
+```
+pip install onesignal-notifications
+```
+
+## Usage
+
+```python
+from onesignal import OneSignal, SegmentNotification
+
+client = OneSignal("MY_APP_ID", "MY_REST_API_KEY")
+notification_to_all_users = SegmentNotification(
+ contents={
+ "en": "Hello from OneSignal-Notifications"
+ },
+ included_segments=[SegmentNotification.ALL]
+)
+client.send(notification_to_all_users)
+```
+
+## Development
+
+> Contributions are welcome
+
+```
+pip install --editable .
+```
+
+run the tests
+
+```
+export ONESIGNAL_API_KEY="..."
+export ONESIGNAL_REST_API_KEY="..."
+
+pytest
+```
+
+### Docs
+
+To edit the docs, change the folder and spin up the development server.
+
+```
+cd docs
+npm install -g vuepress
+vuepress dev
+```
+
+## Meta
+
+Lucas Hild - [https://lucas-hild.de](https://lucas-hild.de)
+This project is licensed under the MIT License - see the LICENSE file for details
+
+
+
+
+%prep
+%autosetup -n onesignal-notifications-0.2.6
+
+%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-onesignal-notifications -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.6-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..961c5d0
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+9a542f5130aabceff4948fb6770cec2a onesignal-notifications-0.2.6.tar.gz