diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-futsu.spec | 264 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 266 insertions, 0 deletions
@@ -0,0 +1 @@ +/futsu-0.0.35.tar.gz diff --git a/python-futsu.spec b/python-futsu.spec new file mode 100644 index 0000000..e38526a --- /dev/null +++ b/python-futsu.spec @@ -0,0 +1,264 @@ +%global _empty_manifest_terminate_build 0 +Name: python-futsu +Version: 0.0.35 +Release: 1 +Summary: Very reusable python code +License: Public Domain +URL: https://github.com/luzi82/py.futsu +Source0: https://mirrors.aliyun.com/pypi/web/packages/c1/c6/c999c7bfd608869631b21d2ef228f7bb4337d863708ca985a7cb434304a5/futsu-0.0.35.tar.gz +BuildArch: noarch + + +%description +[](https://gitpod.io/#https://github.com/luzi82/py.futsu) + + + +# Futsu + +Futsu = Japanese 普通 , means general, ordinary, usual. + +You can see this lib is like Apache Commons, but in python. + +https://github.com/luzi82/py.futsu + + +## Cheat sheet + +``` +gcloud auth login +gcloud config configurations create futsu +gcloud config set project futsu-242513 +export GOOGLE_APPLICATION_CREDENTIALS=${PWD}/key/futsu-4bc2f6db1c50.json + +virtualenv --python python3 venv +source venv/bin/activate + +pip install --upgrade pip wheel +pip install --upgrade setuptools wheel nose twine keyring google-cloud-storage boto3 + +keyring set https://upload.pypi.org/legacy/ luzi82 +keyring set https://test.pypi.org/legacy/ luzi82 + +rm -rf dist +python3 setup.py test +python3 setup.py sdist bdist_wheel + +python3 -m twine upload -u luzi82 --repository-url https://test.pypi.org/legacy/ dist/* + +deactivate + +mkdir -p tmp;cd tmp +rm -rf venv_test +virtualenv --python python3 venv_test +source venv_test/bin/activate +pip install --index-url https://test.pypi.org/simple/ --no-deps futsu +python3 -c "import futsu;print(futsu.name)" +deactivate +cd .. + +source venv/bin/activate +python3 -m twine upload -u luzi82 dist/* +deactivate + +# short output + +# update version in setup.py + +export GOOGLE_APPLICATION_CREDENTIALS=${PWD}/key/futsu-4bc2f6db1c50.json +source venv/bin/activate + + rm -rf dist \ +&& python3 setup.py test \ +&& python3 setup.py sdist bdist_wheel \ +&& python3 -m twine upload -u luzi82 dist/* + +``` + + +%package -n python3-futsu +Summary: Very reusable python code +Provides: python-futsu +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-futsu +[](https://gitpod.io/#https://github.com/luzi82/py.futsu) + + + +# Futsu + +Futsu = Japanese 普通 , means general, ordinary, usual. + +You can see this lib is like Apache Commons, but in python. + +https://github.com/luzi82/py.futsu + + +## Cheat sheet + +``` +gcloud auth login +gcloud config configurations create futsu +gcloud config set project futsu-242513 +export GOOGLE_APPLICATION_CREDENTIALS=${PWD}/key/futsu-4bc2f6db1c50.json + +virtualenv --python python3 venv +source venv/bin/activate + +pip install --upgrade pip wheel +pip install --upgrade setuptools wheel nose twine keyring google-cloud-storage boto3 + +keyring set https://upload.pypi.org/legacy/ luzi82 +keyring set https://test.pypi.org/legacy/ luzi82 + +rm -rf dist +python3 setup.py test +python3 setup.py sdist bdist_wheel + +python3 -m twine upload -u luzi82 --repository-url https://test.pypi.org/legacy/ dist/* + +deactivate + +mkdir -p tmp;cd tmp +rm -rf venv_test +virtualenv --python python3 venv_test +source venv_test/bin/activate +pip install --index-url https://test.pypi.org/simple/ --no-deps futsu +python3 -c "import futsu;print(futsu.name)" +deactivate +cd .. + +source venv/bin/activate +python3 -m twine upload -u luzi82 dist/* +deactivate + +# short output + +# update version in setup.py + +export GOOGLE_APPLICATION_CREDENTIALS=${PWD}/key/futsu-4bc2f6db1c50.json +source venv/bin/activate + + rm -rf dist \ +&& python3 setup.py test \ +&& python3 setup.py sdist bdist_wheel \ +&& python3 -m twine upload -u luzi82 dist/* + +``` + + +%package help +Summary: Development documents and examples for futsu +Provides: python3-futsu-doc +%description help +[](https://gitpod.io/#https://github.com/luzi82/py.futsu) + + + +# Futsu + +Futsu = Japanese 普通 , means general, ordinary, usual. + +You can see this lib is like Apache Commons, but in python. + +https://github.com/luzi82/py.futsu + + +## Cheat sheet + +``` +gcloud auth login +gcloud config configurations create futsu +gcloud config set project futsu-242513 +export GOOGLE_APPLICATION_CREDENTIALS=${PWD}/key/futsu-4bc2f6db1c50.json + +virtualenv --python python3 venv +source venv/bin/activate + +pip install --upgrade pip wheel +pip install --upgrade setuptools wheel nose twine keyring google-cloud-storage boto3 + +keyring set https://upload.pypi.org/legacy/ luzi82 +keyring set https://test.pypi.org/legacy/ luzi82 + +rm -rf dist +python3 setup.py test +python3 setup.py sdist bdist_wheel + +python3 -m twine upload -u luzi82 --repository-url https://test.pypi.org/legacy/ dist/* + +deactivate + +mkdir -p tmp;cd tmp +rm -rf venv_test +virtualenv --python python3 venv_test +source venv_test/bin/activate +pip install --index-url https://test.pypi.org/simple/ --no-deps futsu +python3 -c "import futsu;print(futsu.name)" +deactivate +cd .. + +source venv/bin/activate +python3 -m twine upload -u luzi82 dist/* +deactivate + +# short output + +# update version in setup.py + +export GOOGLE_APPLICATION_CREDENTIALS=${PWD}/key/futsu-4bc2f6db1c50.json +source venv/bin/activate + + rm -rf dist \ +&& python3 setup.py test \ +&& python3 setup.py sdist bdist_wheel \ +&& python3 -m twine upload -u luzi82 dist/* + +``` + + +%prep +%autosetup -n futsu-0.0.35 + +%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-futsu -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.35-1 +- Package Spec generated @@ -0,0 +1 @@ +1cd77cd0be743915224f47bc61614d59 futsu-0.0.35.tar.gz |