diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-sopel-modules-stocks.spec | 241 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 243 insertions, 0 deletions
@@ -0,0 +1 @@ +/sopel_modules.stocks-1.2.1.tar.gz diff --git a/python-sopel-modules-stocks.spec b/python-sopel-modules-stocks.spec new file mode 100644 index 0000000..59d4a58 --- /dev/null +++ b/python-sopel-modules-stocks.spec @@ -0,0 +1,241 @@ +%global _empty_manifest_terminate_build 0 +Name: python-sopel-modules.stocks +Version: 1.2.1 +Release: 1 +Summary: Sopel Stocks Plugin +License: MIT License +URL: http://github.com/rustybower/sopel-stocks +Source0: https://mirrors.aliyun.com/pypi/web/packages/43/e4/baf5f63d6e0ded8746cfbb737183021f46031ec16d07f8ff69c09c6ba6ce/sopel_modules.stocks-1.2.1.tar.gz +BuildArch: noarch + +Requires: python3-requests + +%description +[](https://github.com/sopel-irc/sopel-stocks/actions/workflows/python-tests.yml) +[](https://badge.fury.io/py/sopel-modules.stocks) +[](https://lgtm.com/projects/g/sopel-irc/sopel-stocks/alerts/) +[](https://lgtm.com/projects/g/sopel-irc/sopel-stocks/context:python) + +**Maintainer:** [@RustyBower](https://github.com/rustybower) + +# sopel-stocks +sopel-stocks is an stock lookup plugin for Sopel + +## Installing +If possible, use `pip` to install this plugin. Below are example commands; you +might need to add `sudo` and/or call a different `pip` (e.g. `pip3`) depending +on your system and environment. Do not use `setup.py install`; Sopel won't be +able to load the plugin correctly. + +#### Published release + + pip install sopel-modules.stocks + +#### From source + + # Clone the repo, then run this in /path/to/sopel-stocks + pip install . + +## Configuring +You can automatically configure this plugin using the `sopel configure --plugins` command. + +However, if you want or need to configure this plugin manually, you will need to define the following in `~/.sopel/default.cfg` + + [stocks] + api_key = API_KEY + provider = alphavantage (or iexcloud) + +## Requirements +#### API Key (from 1 of the following providers) + + https://www.alphavantage.co/support/#api-key + https://iexcloud.io/console/tokens + +#### Python Requirements + + requests + sopel + +## Usage + + .stock msft + <sopel> MSFT $123.37 1.6 (1.31%)⬆ + + .stock aapl amzn goog + <sopel> AAPL $150.83 -2.51 (-1.64%)⬇ + <sopel> AMZN $97.06 -5.38 (-5.25%)⬇ + <sopel> GOOG $90.445 -4.215 (-4.45%)⬇ + + + + +%package -n python3-sopel-modules.stocks +Summary: Sopel Stocks Plugin +Provides: python-sopel-modules.stocks +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-sopel-modules.stocks +[](https://github.com/sopel-irc/sopel-stocks/actions/workflows/python-tests.yml) +[](https://badge.fury.io/py/sopel-modules.stocks) +[](https://lgtm.com/projects/g/sopel-irc/sopel-stocks/alerts/) +[](https://lgtm.com/projects/g/sopel-irc/sopel-stocks/context:python) + +**Maintainer:** [@RustyBower](https://github.com/rustybower) + +# sopel-stocks +sopel-stocks is an stock lookup plugin for Sopel + +## Installing +If possible, use `pip` to install this plugin. Below are example commands; you +might need to add `sudo` and/or call a different `pip` (e.g. `pip3`) depending +on your system and environment. Do not use `setup.py install`; Sopel won't be +able to load the plugin correctly. + +#### Published release + + pip install sopel-modules.stocks + +#### From source + + # Clone the repo, then run this in /path/to/sopel-stocks + pip install . + +## Configuring +You can automatically configure this plugin using the `sopel configure --plugins` command. + +However, if you want or need to configure this plugin manually, you will need to define the following in `~/.sopel/default.cfg` + + [stocks] + api_key = API_KEY + provider = alphavantage (or iexcloud) + +## Requirements +#### API Key (from 1 of the following providers) + + https://www.alphavantage.co/support/#api-key + https://iexcloud.io/console/tokens + +#### Python Requirements + + requests + sopel + +## Usage + + .stock msft + <sopel> MSFT $123.37 1.6 (1.31%)⬆ + + .stock aapl amzn goog + <sopel> AAPL $150.83 -2.51 (-1.64%)⬇ + <sopel> AMZN $97.06 -5.38 (-5.25%)⬇ + <sopel> GOOG $90.445 -4.215 (-4.45%)⬇ + + + + +%package help +Summary: Development documents and examples for sopel-modules.stocks +Provides: python3-sopel-modules.stocks-doc +%description help +[](https://github.com/sopel-irc/sopel-stocks/actions/workflows/python-tests.yml) +[](https://badge.fury.io/py/sopel-modules.stocks) +[](https://lgtm.com/projects/g/sopel-irc/sopel-stocks/alerts/) +[](https://lgtm.com/projects/g/sopel-irc/sopel-stocks/context:python) + +**Maintainer:** [@RustyBower](https://github.com/rustybower) + +# sopel-stocks +sopel-stocks is an stock lookup plugin for Sopel + +## Installing +If possible, use `pip` to install this plugin. Below are example commands; you +might need to add `sudo` and/or call a different `pip` (e.g. `pip3`) depending +on your system and environment. Do not use `setup.py install`; Sopel won't be +able to load the plugin correctly. + +#### Published release + + pip install sopel-modules.stocks + +#### From source + + # Clone the repo, then run this in /path/to/sopel-stocks + pip install . + +## Configuring +You can automatically configure this plugin using the `sopel configure --plugins` command. + +However, if you want or need to configure this plugin manually, you will need to define the following in `~/.sopel/default.cfg` + + [stocks] + api_key = API_KEY + provider = alphavantage (or iexcloud) + +## Requirements +#### API Key (from 1 of the following providers) + + https://www.alphavantage.co/support/#api-key + https://iexcloud.io/console/tokens + +#### Python Requirements + + requests + sopel + +## Usage + + .stock msft + <sopel> MSFT $123.37 1.6 (1.31%)⬆ + + .stock aapl amzn goog + <sopel> AAPL $150.83 -2.51 (-1.64%)⬇ + <sopel> AMZN $97.06 -5.38 (-5.25%)⬇ + <sopel> GOOG $90.445 -4.215 (-4.45%)⬇ + + + + +%prep +%autosetup -n sopel_modules.stocks-1.2.1 + +%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-sopel-modules.stocks -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.1-1 +- Package Spec generated @@ -0,0 +1 @@ +f01f94403a499cf123e4259f1c466c6a sopel_modules.stocks-1.2.1.tar.gz |