diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-17 02:57:53 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-17 02:57:53 +0000 |
commit | b57dff3b8d75855760fdcc69b0363b22b8dcb82e (patch) | |
tree | 91d2374ffad2d38df9338dfe03c9ff535629356a | |
parent | eb405dd079f7d1c76da58a2195200bea9758d513 (diff) |
automatic import of python-funkify
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-funkify.spec | 174 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 176 insertions, 0 deletions
@@ -0,0 +1 @@ +/funkify-0.4.5.tar.gz diff --git a/python-funkify.spec b/python-funkify.spec new file mode 100644 index 0000000..e9312db --- /dev/null +++ b/python-funkify.spec @@ -0,0 +1,174 @@ +%global _empty_manifest_terminate_build 0 +Name: python-funkify +Version: 0.4.5 +Release: 1 +Summary: Funkify modules so that they are callable +License: MIT +URL: https://github.com/dynamic-graphics-inc/dgpy-libs/tree/main/libs/funkify +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/0b/ea/d095d1799770c9083dd8fd88e63f49f353abc0f41edb41157ac8e8ea4128/funkify-0.4.5.tar.gz +BuildArch: noarch + + +%description +<a href="https://github.com/dynamic-graphics-inc/dgpy-libs"> +<img align="right" src="https://github.com/dynamic-graphics-inc/dgpy-libs/blob/main/docs/images/dgpy_banner.svg?raw=true" alt="drawing" height="120" width="300"/> +</a> + +# funkify + +[](https://img.shields.io/pypi/wheel/funkify.svg) +[](https://img.shields.io/pypi/v/funkify.svg) +[](https://img.shields.io/pypi/pyversions/funkify.svg) +[](https://github.com/psf/black) + +**Install:** `pip install funkify` + +Make a module/package/script callable. + +## Usage: + +### 1) Write a file called `a_module.py` with some function and decorate said function with funkify + +```python +import funkify + +@funkify +def some_funk_name_doesnt_matter(): + return 'howdy' +``` + +### 2) Import a_module and call it like you would a function! + +```python +import a_module +a_module.some_funk_name_doesnt_matter_what_it_is() # returns 'howdy' +a_module() # ALSO returns 'howdy' +``` + + +%package -n python3-funkify +Summary: Funkify modules so that they are callable +Provides: python-funkify +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-funkify +<a href="https://github.com/dynamic-graphics-inc/dgpy-libs"> +<img align="right" src="https://github.com/dynamic-graphics-inc/dgpy-libs/blob/main/docs/images/dgpy_banner.svg?raw=true" alt="drawing" height="120" width="300"/> +</a> + +# funkify + +[](https://img.shields.io/pypi/wheel/funkify.svg) +[](https://img.shields.io/pypi/v/funkify.svg) +[](https://img.shields.io/pypi/pyversions/funkify.svg) +[](https://github.com/psf/black) + +**Install:** `pip install funkify` + +Make a module/package/script callable. + +## Usage: + +### 1) Write a file called `a_module.py` with some function and decorate said function with funkify + +```python +import funkify + +@funkify +def some_funk_name_doesnt_matter(): + return 'howdy' +``` + +### 2) Import a_module and call it like you would a function! + +```python +import a_module +a_module.some_funk_name_doesnt_matter_what_it_is() # returns 'howdy' +a_module() # ALSO returns 'howdy' +``` + + +%package help +Summary: Development documents and examples for funkify +Provides: python3-funkify-doc +%description help +<a href="https://github.com/dynamic-graphics-inc/dgpy-libs"> +<img align="right" src="https://github.com/dynamic-graphics-inc/dgpy-libs/blob/main/docs/images/dgpy_banner.svg?raw=true" alt="drawing" height="120" width="300"/> +</a> + +# funkify + +[](https://img.shields.io/pypi/wheel/funkify.svg) +[](https://img.shields.io/pypi/v/funkify.svg) +[](https://img.shields.io/pypi/pyversions/funkify.svg) +[](https://github.com/psf/black) + +**Install:** `pip install funkify` + +Make a module/package/script callable. + +## Usage: + +### 1) Write a file called `a_module.py` with some function and decorate said function with funkify + +```python +import funkify + +@funkify +def some_funk_name_doesnt_matter(): + return 'howdy' +``` + +### 2) Import a_module and call it like you would a function! + +```python +import a_module +a_module.some_funk_name_doesnt_matter_what_it_is() # returns 'howdy' +a_module() # ALSO returns 'howdy' +``` + + +%prep +%autosetup -n funkify-0.4.5 + +%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-funkify -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.5-1 +- Package Spec generated @@ -0,0 +1 @@ +5d3a2eaa03074ff50b2377efd64405b4 funkify-0.4.5.tar.gz |