summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-fpl.spec275
-rw-r--r--sources1
3 files changed, 277 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..f264700 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fpl-0.6.34.tar.gz
diff --git a/python-fpl.spec b/python-fpl.spec
new file mode 100644
index 0000000..e254ece
--- /dev/null
+++ b/python-fpl.spec
@@ -0,0 +1,275 @@
+%global _empty_manifest_terminate_build 0
+Name: python-fpl
+Version: 0.6.34
+Release: 1
+Summary: A Python wrapper for the Fantasy Premier League API
+License: MIT
+URL: https://github.com/amosbastian/fpl
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/0b/d4/9a37219f92c8a4222410a4e96acbed474c20d65583526d115275e177abba/fpl-0.6.34.tar.gz
+BuildArch: noarch
+
+Requires: python3-certifi
+Requires: python3-Click
+Requires: python3-colorama
+Requires: python3-codecov
+Requires: python3-PTable
+Requires: python3-appdirs
+Requires: python3-aiohttp
+Requires: python3-pytest-aiohttp
+Requires: python3-pytest-cov
+Requires: python3-pytest-mock
+Requires: python3-pytest
+
+%description
+<p align="center">
+ <a href="https://fpl.readthedocs.io/en/latest/">
+ <img src="https://i.imgur.com/ao1t2qN.png">
+ </a>
+</p>
+
+<p align="center">
+ A Python wrapper around the Fantasy Premier League API
+ <br>
+ <br>
+ <a href="https://travis-ci.org/amosbastian/fpl" alt="Build">
+ <img src="https://travis-ci.org/amosbastian/fpl.svg?branch=master"/></a>
+ <a href="https://fpl.readthedocs.io/en/latest/" alt="Documentation">
+ <img src="https://readthedocs.org/projects/fpl/badge/?version=latest" /></a>
+ <a href="https://pypi.org/project/fpl/" alt="Version">
+ <img src="https://badge.fury.io/py/fpl.svg"/></a>
+ <a href="https://pypi.org/project/fpl/" alt="Python version">
+ <img src="https://img.shields.io/badge/Python-3.6%2B-blue.svg"/></a>
+ <a href="https://codecov.io/gh/amosbastian/fpl">
+ <img src="https://codecov.io/gh/amosbastian/fpl/branch/master/graph/badge.svg"/></a>
+</p>
+
+Join the [Discord server](https://discord.gg/cjY37fv) or submit [an issue](https://github.com/amosbastian/fpl/issues) for help and / or suggestions!
+
+## Installing fpl
+
+The recommended way to install fpl is via `pip`.
+
+ pip install fpl
+
+To install it directly from GitHub you can do the following:
+
+ git clone git://github.com/amosbastian/fpl.git
+
+You can also install a [.tar file](https://github.com/amosbastian/fpl/tarball/master)
+or [.zip file](https://github.com/amosbastian/fpl/tarball/master)
+
+ curl -OL https://github.com/amosbastian/fpl/tarball/master
+ curl -OL https://github.com/amosbastian/fpl/zipball/master # Windows
+
+Once it has been downloaded you can easily install it using `pip`:
+
+ cd fpl
+ pip install .
+
+## Contributing
+
+1. Fork the repository on GitHub.
+2. Create a `credentials.cfg` file with your FPL login and password (see [example](docs/_static/example-credentials-file.cfg)).
+3. Run the tests with `pytest tests/` to confirm they all pass on your system.
+ If the tests fail, then try and find out why this is happening. If you aren't
+ able to do this yourself, then don't hesitate to either create an issue on
+ GitHub, contact me on Discord or send an email to [amosbastian@gmail.com](mailto:amosbastian@gmail.com>).
+3. Either create your feature and then write tests for it, or do this the other
+ way around.
+4. Run all tests again with with `pytest tests/` to confirm that everything
+ still passes, including your newly added test(s).
+5. Create a pull request for the main repository's `master` branch.
+
+For more information on how to contribute to **fpl** see [the contributing guide](https://fpl.readthedocs.io/en/latest/contributing/contributing.html).
+
+## Documentation
+
+Documentation and examples for **fpl** can be found at http://fpl.readthedocs.io/en/latest/.
+
+
+%package -n python3-fpl
+Summary: A Python wrapper for the Fantasy Premier League API
+Provides: python-fpl
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-fpl
+<p align="center">
+ <a href="https://fpl.readthedocs.io/en/latest/">
+ <img src="https://i.imgur.com/ao1t2qN.png">
+ </a>
+</p>
+
+<p align="center">
+ A Python wrapper around the Fantasy Premier League API
+ <br>
+ <br>
+ <a href="https://travis-ci.org/amosbastian/fpl" alt="Build">
+ <img src="https://travis-ci.org/amosbastian/fpl.svg?branch=master"/></a>
+ <a href="https://fpl.readthedocs.io/en/latest/" alt="Documentation">
+ <img src="https://readthedocs.org/projects/fpl/badge/?version=latest" /></a>
+ <a href="https://pypi.org/project/fpl/" alt="Version">
+ <img src="https://badge.fury.io/py/fpl.svg"/></a>
+ <a href="https://pypi.org/project/fpl/" alt="Python version">
+ <img src="https://img.shields.io/badge/Python-3.6%2B-blue.svg"/></a>
+ <a href="https://codecov.io/gh/amosbastian/fpl">
+ <img src="https://codecov.io/gh/amosbastian/fpl/branch/master/graph/badge.svg"/></a>
+</p>
+
+Join the [Discord server](https://discord.gg/cjY37fv) or submit [an issue](https://github.com/amosbastian/fpl/issues) for help and / or suggestions!
+
+## Installing fpl
+
+The recommended way to install fpl is via `pip`.
+
+ pip install fpl
+
+To install it directly from GitHub you can do the following:
+
+ git clone git://github.com/amosbastian/fpl.git
+
+You can also install a [.tar file](https://github.com/amosbastian/fpl/tarball/master)
+or [.zip file](https://github.com/amosbastian/fpl/tarball/master)
+
+ curl -OL https://github.com/amosbastian/fpl/tarball/master
+ curl -OL https://github.com/amosbastian/fpl/zipball/master # Windows
+
+Once it has been downloaded you can easily install it using `pip`:
+
+ cd fpl
+ pip install .
+
+## Contributing
+
+1. Fork the repository on GitHub.
+2. Create a `credentials.cfg` file with your FPL login and password (see [example](docs/_static/example-credentials-file.cfg)).
+3. Run the tests with `pytest tests/` to confirm they all pass on your system.
+ If the tests fail, then try and find out why this is happening. If you aren't
+ able to do this yourself, then don't hesitate to either create an issue on
+ GitHub, contact me on Discord or send an email to [amosbastian@gmail.com](mailto:amosbastian@gmail.com>).
+3. Either create your feature and then write tests for it, or do this the other
+ way around.
+4. Run all tests again with with `pytest tests/` to confirm that everything
+ still passes, including your newly added test(s).
+5. Create a pull request for the main repository's `master` branch.
+
+For more information on how to contribute to **fpl** see [the contributing guide](https://fpl.readthedocs.io/en/latest/contributing/contributing.html).
+
+## Documentation
+
+Documentation and examples for **fpl** can be found at http://fpl.readthedocs.io/en/latest/.
+
+
+%package help
+Summary: Development documents and examples for fpl
+Provides: python3-fpl-doc
+%description help
+<p align="center">
+ <a href="https://fpl.readthedocs.io/en/latest/">
+ <img src="https://i.imgur.com/ao1t2qN.png">
+ </a>
+</p>
+
+<p align="center">
+ A Python wrapper around the Fantasy Premier League API
+ <br>
+ <br>
+ <a href="https://travis-ci.org/amosbastian/fpl" alt="Build">
+ <img src="https://travis-ci.org/amosbastian/fpl.svg?branch=master"/></a>
+ <a href="https://fpl.readthedocs.io/en/latest/" alt="Documentation">
+ <img src="https://readthedocs.org/projects/fpl/badge/?version=latest" /></a>
+ <a href="https://pypi.org/project/fpl/" alt="Version">
+ <img src="https://badge.fury.io/py/fpl.svg"/></a>
+ <a href="https://pypi.org/project/fpl/" alt="Python version">
+ <img src="https://img.shields.io/badge/Python-3.6%2B-blue.svg"/></a>
+ <a href="https://codecov.io/gh/amosbastian/fpl">
+ <img src="https://codecov.io/gh/amosbastian/fpl/branch/master/graph/badge.svg"/></a>
+</p>
+
+Join the [Discord server](https://discord.gg/cjY37fv) or submit [an issue](https://github.com/amosbastian/fpl/issues) for help and / or suggestions!
+
+## Installing fpl
+
+The recommended way to install fpl is via `pip`.
+
+ pip install fpl
+
+To install it directly from GitHub you can do the following:
+
+ git clone git://github.com/amosbastian/fpl.git
+
+You can also install a [.tar file](https://github.com/amosbastian/fpl/tarball/master)
+or [.zip file](https://github.com/amosbastian/fpl/tarball/master)
+
+ curl -OL https://github.com/amosbastian/fpl/tarball/master
+ curl -OL https://github.com/amosbastian/fpl/zipball/master # Windows
+
+Once it has been downloaded you can easily install it using `pip`:
+
+ cd fpl
+ pip install .
+
+## Contributing
+
+1. Fork the repository on GitHub.
+2. Create a `credentials.cfg` file with your FPL login and password (see [example](docs/_static/example-credentials-file.cfg)).
+3. Run the tests with `pytest tests/` to confirm they all pass on your system.
+ If the tests fail, then try and find out why this is happening. If you aren't
+ able to do this yourself, then don't hesitate to either create an issue on
+ GitHub, contact me on Discord or send an email to [amosbastian@gmail.com](mailto:amosbastian@gmail.com>).
+3. Either create your feature and then write tests for it, or do this the other
+ way around.
+4. Run all tests again with with `pytest tests/` to confirm that everything
+ still passes, including your newly added test(s).
+5. Create a pull request for the main repository's `master` branch.
+
+For more information on how to contribute to **fpl** see [the contributing guide](https://fpl.readthedocs.io/en/latest/contributing/contributing.html).
+
+## Documentation
+
+Documentation and examples for **fpl** can be found at http://fpl.readthedocs.io/en/latest/.
+
+
+%prep
+%autosetup -n fpl-0.6.34
+
+%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-fpl -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.34-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..98a3c4a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+e49d5162145abeae9dd9a4b303d89b56 fpl-0.6.34.tar.gz