From 3afbf6752d96d6882fd51e25cb01fc23379bc5e6 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 31 May 2023 04:25:20 +0000 Subject: automatic import of python-lutils --- .gitignore | 1 + python-lutils.spec | 275 +++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 277 insertions(+) create mode 100644 python-lutils.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..d994252 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/lutils-2.11.74.tar.gz diff --git a/python-lutils.spec b/python-lutils.spec new file mode 100644 index 0000000..0e1e607 --- /dev/null +++ b/python-lutils.spec @@ -0,0 +1,275 @@ +%global _empty_manifest_terminate_build 0 +Name: python-lutils +Version: 2.11.74 +Release: 1 +Summary: A Public Loitd Python Utility Library +License: MIT License +URL: https://github.com/loitd/lutils +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ba/7b/fc2896bf6738a88080a68923cdac68087d1d7d537fb50dc87e755edfa8d9/lutils-2.11.74.tar.gz +BuildArch: noarch + +Requires: python3-telegram-bot +Requires: python3-paramiko + +%description +# lutils +[![codecov](https://codecov.io/gh/loitd/lutils/branch/master/graph/badge.svg)](https://codecov.io/gh/loitd/lutils) +[![lutils](https://circleci.com/gh/loitd/lutils.svg?style=svg)](https://circleci.com/gh/loitd/lutils) +## A Loitd's Public Python Utilities Library. +Website: [https://loitd.github.io/lutils](https://loitd.github.io/lutils/) +Pip: [https://pypi.org/project/lutils/](https://pypi.org/project/lutils/) +Git: [https://github.com/loitd/lutils/](https://github.com/loitd/lutils/) +JS: [https://github.com/loitd/lutilsjs/](https://github.com/loitd/lutilsjs/) - Not equivalent +## Installation +You can easily install this library with command `pip` or `pipenv`: +`pip install lutils` +With specific version (pip will automatically uninstall older version & install specific version): +`pip install lutils~=2.11.73` +Install with pipenv: +`pipenv install lutils~=2.11.73` +Update existing installation: +`pipenv update lutils` +Update existing installation (manually): +`pipenv uninstall lutils` +and then: +`pipenv install lutils` +## Note +- Works with Python 3.x. Recommended Python 3.x for performance and full support features +- Support Unicode from version 2.10.2.2. Then please update to newest version. +- Backward compatible with Python 2.7 (recommended for 2.x) from version 2.10.2.1. From 2.10.2.1, lutils works on both 2.x and 3.x +- Any suggestions are welcome with pull request or email at loitranduc[at]gmail.com +- Introduction or guide (docs) if available will be at [https://github.com/loitd/lutils/](https://github.com/loitd/lutils/) + +## Usage +In your python file: +~~~ +from lutils.utils import printlog, printwait +printlog("abc", "test.log") +printwait("Please wait while doing things", 5, "logfile.log") +~~~ + +To connect SSH to Linux servers and get disk space status +~~~ +from lutils.utils import LServer +srv = LServer() +srv.connect(ip="192.168.1.2", uname="root", pwd="123456") +srv.getdiskspace() +~~~ + +## For developers +To build this package: +* `pip install --upgrade pip setuptools wheel` +* `pip install tqdm` +* `pip install --user --upgrade twine keyring` + +Compiling this package: +* `python setup.py sdist bdist_wheel` + +Upload to PyPI: +* `python -m twine upload --skip-existing dist/*` +or +* `python -m twine upload --skip-existing -u loitd --repository-url https://upload.pypi.org/legacy/ dist/*` + +Easy upload with keyring: +* `python -m keyring set https://upload.pypi.org/legacy/ loitd` + +CI/CD Automated with Pytest and Circle CI +* `https://app.circleci.com/pipelines/github/loitd/lutils` + +## License +* [License](https://github.com/loitd/lutils/blob/master/LICENSE) + + + +%package -n python3-lutils +Summary: A Public Loitd Python Utility Library +Provides: python-lutils +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-lutils +# lutils +[![codecov](https://codecov.io/gh/loitd/lutils/branch/master/graph/badge.svg)](https://codecov.io/gh/loitd/lutils) +[![lutils](https://circleci.com/gh/loitd/lutils.svg?style=svg)](https://circleci.com/gh/loitd/lutils) +## A Loitd's Public Python Utilities Library. +Website: [https://loitd.github.io/lutils](https://loitd.github.io/lutils/) +Pip: [https://pypi.org/project/lutils/](https://pypi.org/project/lutils/) +Git: [https://github.com/loitd/lutils/](https://github.com/loitd/lutils/) +JS: [https://github.com/loitd/lutilsjs/](https://github.com/loitd/lutilsjs/) - Not equivalent +## Installation +You can easily install this library with command `pip` or `pipenv`: +`pip install lutils` +With specific version (pip will automatically uninstall older version & install specific version): +`pip install lutils~=2.11.73` +Install with pipenv: +`pipenv install lutils~=2.11.73` +Update existing installation: +`pipenv update lutils` +Update existing installation (manually): +`pipenv uninstall lutils` +and then: +`pipenv install lutils` +## Note +- Works with Python 3.x. Recommended Python 3.x for performance and full support features +- Support Unicode from version 2.10.2.2. Then please update to newest version. +- Backward compatible with Python 2.7 (recommended for 2.x) from version 2.10.2.1. From 2.10.2.1, lutils works on both 2.x and 3.x +- Any suggestions are welcome with pull request or email at loitranduc[at]gmail.com +- Introduction or guide (docs) if available will be at [https://github.com/loitd/lutils/](https://github.com/loitd/lutils/) + +## Usage +In your python file: +~~~ +from lutils.utils import printlog, printwait +printlog("abc", "test.log") +printwait("Please wait while doing things", 5, "logfile.log") +~~~ + +To connect SSH to Linux servers and get disk space status +~~~ +from lutils.utils import LServer +srv = LServer() +srv.connect(ip="192.168.1.2", uname="root", pwd="123456") +srv.getdiskspace() +~~~ + +## For developers +To build this package: +* `pip install --upgrade pip setuptools wheel` +* `pip install tqdm` +* `pip install --user --upgrade twine keyring` + +Compiling this package: +* `python setup.py sdist bdist_wheel` + +Upload to PyPI: +* `python -m twine upload --skip-existing dist/*` +or +* `python -m twine upload --skip-existing -u loitd --repository-url https://upload.pypi.org/legacy/ dist/*` + +Easy upload with keyring: +* `python -m keyring set https://upload.pypi.org/legacy/ loitd` + +CI/CD Automated with Pytest and Circle CI +* `https://app.circleci.com/pipelines/github/loitd/lutils` + +## License +* [License](https://github.com/loitd/lutils/blob/master/LICENSE) + + + +%package help +Summary: Development documents and examples for lutils +Provides: python3-lutils-doc +%description help +# lutils +[![codecov](https://codecov.io/gh/loitd/lutils/branch/master/graph/badge.svg)](https://codecov.io/gh/loitd/lutils) +[![lutils](https://circleci.com/gh/loitd/lutils.svg?style=svg)](https://circleci.com/gh/loitd/lutils) +## A Loitd's Public Python Utilities Library. +Website: [https://loitd.github.io/lutils](https://loitd.github.io/lutils/) +Pip: [https://pypi.org/project/lutils/](https://pypi.org/project/lutils/) +Git: [https://github.com/loitd/lutils/](https://github.com/loitd/lutils/) +JS: [https://github.com/loitd/lutilsjs/](https://github.com/loitd/lutilsjs/) - Not equivalent +## Installation +You can easily install this library with command `pip` or `pipenv`: +`pip install lutils` +With specific version (pip will automatically uninstall older version & install specific version): +`pip install lutils~=2.11.73` +Install with pipenv: +`pipenv install lutils~=2.11.73` +Update existing installation: +`pipenv update lutils` +Update existing installation (manually): +`pipenv uninstall lutils` +and then: +`pipenv install lutils` +## Note +- Works with Python 3.x. Recommended Python 3.x for performance and full support features +- Support Unicode from version 2.10.2.2. Then please update to newest version. +- Backward compatible with Python 2.7 (recommended for 2.x) from version 2.10.2.1. From 2.10.2.1, lutils works on both 2.x and 3.x +- Any suggestions are welcome with pull request or email at loitranduc[at]gmail.com +- Introduction or guide (docs) if available will be at [https://github.com/loitd/lutils/](https://github.com/loitd/lutils/) + +## Usage +In your python file: +~~~ +from lutils.utils import printlog, printwait +printlog("abc", "test.log") +printwait("Please wait while doing things", 5, "logfile.log") +~~~ + +To connect SSH to Linux servers and get disk space status +~~~ +from lutils.utils import LServer +srv = LServer() +srv.connect(ip="192.168.1.2", uname="root", pwd="123456") +srv.getdiskspace() +~~~ + +## For developers +To build this package: +* `pip install --upgrade pip setuptools wheel` +* `pip install tqdm` +* `pip install --user --upgrade twine keyring` + +Compiling this package: +* `python setup.py sdist bdist_wheel` + +Upload to PyPI: +* `python -m twine upload --skip-existing dist/*` +or +* `python -m twine upload --skip-existing -u loitd --repository-url https://upload.pypi.org/legacy/ dist/*` + +Easy upload with keyring: +* `python -m keyring set https://upload.pypi.org/legacy/ loitd` + +CI/CD Automated with Pytest and Circle CI +* `https://app.circleci.com/pipelines/github/loitd/lutils` + +## License +* [License](https://github.com/loitd/lutils/blob/master/LICENSE) + + + +%prep +%autosetup -n lutils-2.11.74 + +%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-lutils -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 31 2023 Python_Bot - 2.11.74-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..154e61d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +e16593784be2e90af69823f46b8dc1d2 lutils-2.11.74.tar.gz -- cgit v1.2.3