summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-pypickle.spec303
-rw-r--r--sources1
3 files changed, 305 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..0ee29b3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pypickle-1.1.0.tar.gz
diff --git a/python-pypickle.spec b/python-pypickle.spec
new file mode 100644
index 0000000..b2485f9
--- /dev/null
+++ b/python-pypickle.spec
@@ -0,0 +1,303 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pypickle
+Version: 1.1.0
+Release: 1
+Summary: pypickle is to save and load variables in/from pickle files
+License: MIT License
+URL: https://github.com/erdogant/pypickle
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f6/4e/48d0d9046cc58b3b3473a14fe32d224fa76af716cbc1db8756010d84981f/pypickle-1.1.0.tar.gz
+BuildArch: noarch
+
+
+%description
+# pypickle
+
+[![Python](https://img.shields.io/pypi/pyversions/pypickle)](https://img.shields.io/pypi/pyversions/pypickle)
+[![PyPI Version](https://img.shields.io/pypi/v/pypickle)](https://pypi.org/project/pypickle/)
+[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/erdogant/pypickle/blob/master/LICENSE)
+[![Downloads](https://pepy.tech/badge/pypickle)](https://pepy.tech/project/pypickle)
+[![Downloads](https://pepy.tech/badge/pypickle/month)](https://pepy.tech/project/pypickle/)
+[![DOI](https://zenodo.org/badge/278702058.svg)](https://zenodo.org/badge/latestdoi/278702058)
+[![Sphinx](https://img.shields.io/badge/Sphinx-Docs-Green)](https://erdogant.github.io/pypickle/)
+<!---[![Coffee](https://img.shields.io/badge/coffee-black-grey.svg)](https://erdogant.github.io/donate/?currency=USD&amount=5)-->
+<!---[![BuyMeCoffee](https://img.shields.io/badge/buymea-coffee-yellow.svg)](https://www.buymeacoffee.com/erdogant)-->
+
+
+* pypickle is for saving data and loading the files in pickle format.
+
+#
+**⭐️ Star this repo if you like it ⭐️**
+#
+
+
+### [Documentation pages](https://erdogant.github.io/pypickle/)
+
+On the [documentation pages](https://erdogant.github.io/pypickle/) you can find more information about ``pypickle`` with examples.
+
+#
+
+##### Install bnlearn from PyPI
+```bash
+pip install pypickle # normal install
+pip install -U pypickle # update if needed
+```
+
+#### Import pypickle package
+```python
+import pypickle
+```
+
+#
+
+#### [Example: Saving](https://erdogant.github.io/pypickle/pages/html/Save_and_Load.html#saving)
+
+```python
+import pypickle
+filepath = 'test.pkl'
+
+# Some data
+data = [1,2,3,4,5]
+
+# Save
+status = pypickle.save(filepath, data)
+
+```
+
+#
+
+#### [Example: Loading](https://erdogant.github.io/pypickle/pages/html/Save_and_Load.html#loading)
+
+```python
+
+# Load file
+data = pypickle.load(filepath)
+
+```
+
+### Contribute
+* All kinds of contributions are welcome!
+
+### Citation
+Please cite pypickle in your publications if this is useful for your research. See column right for citation information.
+
+### Maintainer
+* Erdogan Taskesen, github: [erdogant](https://github.com/erdogant)
+* Contributions are welcome.
+* If you wish to buy me a <a href="https://erdogant.github.io/donate/?currency=USD&amount=5">Coffee</a> for this work, it is very appreciated :)
+
+
+
+
+
+%package -n python3-pypickle
+Summary: pypickle is to save and load variables in/from pickle files
+Provides: python-pypickle
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pypickle
+# pypickle
+
+[![Python](https://img.shields.io/pypi/pyversions/pypickle)](https://img.shields.io/pypi/pyversions/pypickle)
+[![PyPI Version](https://img.shields.io/pypi/v/pypickle)](https://pypi.org/project/pypickle/)
+[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/erdogant/pypickle/blob/master/LICENSE)
+[![Downloads](https://pepy.tech/badge/pypickle)](https://pepy.tech/project/pypickle)
+[![Downloads](https://pepy.tech/badge/pypickle/month)](https://pepy.tech/project/pypickle/)
+[![DOI](https://zenodo.org/badge/278702058.svg)](https://zenodo.org/badge/latestdoi/278702058)
+[![Sphinx](https://img.shields.io/badge/Sphinx-Docs-Green)](https://erdogant.github.io/pypickle/)
+<!---[![Coffee](https://img.shields.io/badge/coffee-black-grey.svg)](https://erdogant.github.io/donate/?currency=USD&amount=5)-->
+<!---[![BuyMeCoffee](https://img.shields.io/badge/buymea-coffee-yellow.svg)](https://www.buymeacoffee.com/erdogant)-->
+
+
+* pypickle is for saving data and loading the files in pickle format.
+
+#
+**⭐️ Star this repo if you like it ⭐️**
+#
+
+
+### [Documentation pages](https://erdogant.github.io/pypickle/)
+
+On the [documentation pages](https://erdogant.github.io/pypickle/) you can find more information about ``pypickle`` with examples.
+
+#
+
+##### Install bnlearn from PyPI
+```bash
+pip install pypickle # normal install
+pip install -U pypickle # update if needed
+```
+
+#### Import pypickle package
+```python
+import pypickle
+```
+
+#
+
+#### [Example: Saving](https://erdogant.github.io/pypickle/pages/html/Save_and_Load.html#saving)
+
+```python
+import pypickle
+filepath = 'test.pkl'
+
+# Some data
+data = [1,2,3,4,5]
+
+# Save
+status = pypickle.save(filepath, data)
+
+```
+
+#
+
+#### [Example: Loading](https://erdogant.github.io/pypickle/pages/html/Save_and_Load.html#loading)
+
+```python
+
+# Load file
+data = pypickle.load(filepath)
+
+```
+
+### Contribute
+* All kinds of contributions are welcome!
+
+### Citation
+Please cite pypickle in your publications if this is useful for your research. See column right for citation information.
+
+### Maintainer
+* Erdogan Taskesen, github: [erdogant](https://github.com/erdogant)
+* Contributions are welcome.
+* If you wish to buy me a <a href="https://erdogant.github.io/donate/?currency=USD&amount=5">Coffee</a> for this work, it is very appreciated :)
+
+
+
+
+
+%package help
+Summary: Development documents and examples for pypickle
+Provides: python3-pypickle-doc
+%description help
+# pypickle
+
+[![Python](https://img.shields.io/pypi/pyversions/pypickle)](https://img.shields.io/pypi/pyversions/pypickle)
+[![PyPI Version](https://img.shields.io/pypi/v/pypickle)](https://pypi.org/project/pypickle/)
+[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/erdogant/pypickle/blob/master/LICENSE)
+[![Downloads](https://pepy.tech/badge/pypickle)](https://pepy.tech/project/pypickle)
+[![Downloads](https://pepy.tech/badge/pypickle/month)](https://pepy.tech/project/pypickle/)
+[![DOI](https://zenodo.org/badge/278702058.svg)](https://zenodo.org/badge/latestdoi/278702058)
+[![Sphinx](https://img.shields.io/badge/Sphinx-Docs-Green)](https://erdogant.github.io/pypickle/)
+<!---[![Coffee](https://img.shields.io/badge/coffee-black-grey.svg)](https://erdogant.github.io/donate/?currency=USD&amount=5)-->
+<!---[![BuyMeCoffee](https://img.shields.io/badge/buymea-coffee-yellow.svg)](https://www.buymeacoffee.com/erdogant)-->
+
+
+* pypickle is for saving data and loading the files in pickle format.
+
+#
+**⭐️ Star this repo if you like it ⭐️**
+#
+
+
+### [Documentation pages](https://erdogant.github.io/pypickle/)
+
+On the [documentation pages](https://erdogant.github.io/pypickle/) you can find more information about ``pypickle`` with examples.
+
+#
+
+##### Install bnlearn from PyPI
+```bash
+pip install pypickle # normal install
+pip install -U pypickle # update if needed
+```
+
+#### Import pypickle package
+```python
+import pypickle
+```
+
+#
+
+#### [Example: Saving](https://erdogant.github.io/pypickle/pages/html/Save_and_Load.html#saving)
+
+```python
+import pypickle
+filepath = 'test.pkl'
+
+# Some data
+data = [1,2,3,4,5]
+
+# Save
+status = pypickle.save(filepath, data)
+
+```
+
+#
+
+#### [Example: Loading](https://erdogant.github.io/pypickle/pages/html/Save_and_Load.html#loading)
+
+```python
+
+# Load file
+data = pypickle.load(filepath)
+
+```
+
+### Contribute
+* All kinds of contributions are welcome!
+
+### Citation
+Please cite pypickle in your publications if this is useful for your research. See column right for citation information.
+
+### Maintainer
+* Erdogan Taskesen, github: [erdogant](https://github.com/erdogant)
+* Contributions are welcome.
+* If you wish to buy me a <a href="https://erdogant.github.io/donate/?currency=USD&amount=5">Coffee</a> for this work, it is very appreciated :)
+
+
+
+
+
+%prep
+%autosetup -n pypickle-1.1.0
+
+%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-pypickle -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..9059fe0
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+ed65767902130214868e2aff00561b3f pypickle-1.1.0.tar.gz