From 990ab0a6b853726a227fa5376b45c8a103bdc1e7 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 5 May 2023 14:09:43 +0000 Subject: automatic import of python-mypythontools --- .gitignore | 1 + python-mypythontools.spec | 230 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 232 insertions(+) create mode 100644 python-mypythontools.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..4c73f31 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/mypythontools-3.0.2.tar.gz diff --git a/python-mypythontools.spec b/python-mypythontools.spec new file mode 100644 index 0000000..f50fbfd --- /dev/null +++ b/python-mypythontools.spec @@ -0,0 +1,230 @@ +%global _empty_manifest_terminate_build 0 +Name: python-mypythontools +Version: 3.0.2 +Release: 1 +Summary: Some tools/functions/snippets used across projects. +License: mit +URL: https://github.com/Malachov/mypythontools +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/38/a1/d9af6ce15aad0e67cf6127cf2410016e2a1a183509784f32e64f084efec5/mypythontools-3.0.2.tar.gz +BuildArch: noarch + +Requires: python3-mylogging +Requires: python3-tabulate +Requires: python3-typeguard +Requires: python3-IPython +Requires: python3-matplotlib +Requires: python3-pandas +Requires: python3-plotly +Requires: python3-IPython +Requires: python3-matplotlib +Requires: python3-pandas +Requires: python3-plotly + +%description +**subpackages** +- config +- misc +- paths +- property +- system +- types +Subpackages names are self describing, and you can find documentation in subpackages docstrings. +## Tools +There are some extra tools not included in python library (installable via pip), but still on GitHub repository. +### requirements +Install many libraries at once (no need for Anaconda). Download `requirements.txt` file from (GitHub)[https://github.com/Malachov/mypythontools/tree/master/tools/requirements] and in that folder use +``` +pip install -r requirements.txt +``` +It's good for python libraries that other users with different versions of libraries will use. If not standalone application where freezing into virtual env is good idea - here is possible to use these requirements with using --upgrade from time to time to be sure that your library will be working for up-to-date version of dependencies. +### sphinx-alabaster-css +It's a good idea to generate documentation from code. If you are using sphinx and alabaster theme, you can use this CSS file for formatting. +Tested on readthedocs hosting (recommended). +CSS are served from GitHub, and it's possible to change on one place and edit how all projects docs look like at once. +Just add this to sphinx conf.py +``` +html_css_files = [ + "https://malachov.github.io/readthedocs-sphinx-alabaster-css/custom.css", +] +``` +Also, of course if you want, you can download it and use locally from the project if you need. +The result should look like this +
sphinx-alabaster-css
+## Other projects +There are many other projects, that are in separate repository +### mypythontools_cicd +Module with functionality around Continuous Integration and Continuous Delivery. Locally run tests, regenerate docs, +deploy app or package. +https://github.com/Malachov/mypythontools_cicd +### mylogging +Logging in a very simple way. +https://github.com/Malachov/mylogging +### Docs +Documentation - snippets for various topics. +https://github.com/Malachov/DOCS +### pyvueeel +Application microframework. Develop application really fast. +https://github.com/Malachov/pyvueeel +### project-starter-cookiecutter +Cookiecutter template. Based on type (python package, python / js application) create empty project. +https://github.com/Malachov/project-starter-cookiecutter +### Software-settings +Various settings stored, so can be reused. E.g. starting scripts after fresh operation system install. +https://github.com/Malachov/Software-settings + +%package -n python3-mypythontools +Summary: Some tools/functions/snippets used across projects. +Provides: python-mypythontools +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-mypythontools +**subpackages** +- config +- misc +- paths +- property +- system +- types +Subpackages names are self describing, and you can find documentation in subpackages docstrings. +## Tools +There are some extra tools not included in python library (installable via pip), but still on GitHub repository. +### requirements +Install many libraries at once (no need for Anaconda). Download `requirements.txt` file from (GitHub)[https://github.com/Malachov/mypythontools/tree/master/tools/requirements] and in that folder use +``` +pip install -r requirements.txt +``` +It's good for python libraries that other users with different versions of libraries will use. If not standalone application where freezing into virtual env is good idea - here is possible to use these requirements with using --upgrade from time to time to be sure that your library will be working for up-to-date version of dependencies. +### sphinx-alabaster-css +It's a good idea to generate documentation from code. If you are using sphinx and alabaster theme, you can use this CSS file for formatting. +Tested on readthedocs hosting (recommended). +CSS are served from GitHub, and it's possible to change on one place and edit how all projects docs look like at once. +Just add this to sphinx conf.py +``` +html_css_files = [ + "https://malachov.github.io/readthedocs-sphinx-alabaster-css/custom.css", +] +``` +Also, of course if you want, you can download it and use locally from the project if you need. +The result should look like this +
sphinx-alabaster-css
+## Other projects +There are many other projects, that are in separate repository +### mypythontools_cicd +Module with functionality around Continuous Integration and Continuous Delivery. Locally run tests, regenerate docs, +deploy app or package. +https://github.com/Malachov/mypythontools_cicd +### mylogging +Logging in a very simple way. +https://github.com/Malachov/mylogging +### Docs +Documentation - snippets for various topics. +https://github.com/Malachov/DOCS +### pyvueeel +Application microframework. Develop application really fast. +https://github.com/Malachov/pyvueeel +### project-starter-cookiecutter +Cookiecutter template. Based on type (python package, python / js application) create empty project. +https://github.com/Malachov/project-starter-cookiecutter +### Software-settings +Various settings stored, so can be reused. E.g. starting scripts after fresh operation system install. +https://github.com/Malachov/Software-settings + +%package help +Summary: Development documents and examples for mypythontools +Provides: python3-mypythontools-doc +%description help +**subpackages** +- config +- misc +- paths +- property +- system +- types +Subpackages names are self describing, and you can find documentation in subpackages docstrings. +## Tools +There are some extra tools not included in python library (installable via pip), but still on GitHub repository. +### requirements +Install many libraries at once (no need for Anaconda). Download `requirements.txt` file from (GitHub)[https://github.com/Malachov/mypythontools/tree/master/tools/requirements] and in that folder use +``` +pip install -r requirements.txt +``` +It's good for python libraries that other users with different versions of libraries will use. If not standalone application where freezing into virtual env is good idea - here is possible to use these requirements with using --upgrade from time to time to be sure that your library will be working for up-to-date version of dependencies. +### sphinx-alabaster-css +It's a good idea to generate documentation from code. If you are using sphinx and alabaster theme, you can use this CSS file for formatting. +Tested on readthedocs hosting (recommended). +CSS are served from GitHub, and it's possible to change on one place and edit how all projects docs look like at once. +Just add this to sphinx conf.py +``` +html_css_files = [ + "https://malachov.github.io/readthedocs-sphinx-alabaster-css/custom.css", +] +``` +Also, of course if you want, you can download it and use locally from the project if you need. +The result should look like this +
sphinx-alabaster-css
+## Other projects +There are many other projects, that are in separate repository +### mypythontools_cicd +Module with functionality around Continuous Integration and Continuous Delivery. Locally run tests, regenerate docs, +deploy app or package. +https://github.com/Malachov/mypythontools_cicd +### mylogging +Logging in a very simple way. +https://github.com/Malachov/mylogging +### Docs +Documentation - snippets for various topics. +https://github.com/Malachov/DOCS +### pyvueeel +Application microframework. Develop application really fast. +https://github.com/Malachov/pyvueeel +### project-starter-cookiecutter +Cookiecutter template. Based on type (python package, python / js application) create empty project. +https://github.com/Malachov/project-starter-cookiecutter +### Software-settings +Various settings stored, so can be reused. E.g. starting scripts after fresh operation system install. +https://github.com/Malachov/Software-settings + +%prep +%autosetup -n mypythontools-3.0.2 + +%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-mypythontools -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot - 3.0.2-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..65421a0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +d445ef769f96049cbf241d4af5863404 mypythontools-3.0.2.tar.gz -- cgit v1.2.3