diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-05 12:35:10 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 12:35:10 +0000 |
commit | 38a939ff1a40e4882b52dc1d786371b8ded99565 (patch) | |
tree | 503c276b500612a3d5e6542929bbceb70440002c | |
parent | 64dc69a7e0dbc09d9f69c39bd19ad1f3a05acb7e (diff) |
automatic import of python-poetry2setupopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-poetry2setup.spec | 118 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 120 insertions, 0 deletions
@@ -0,0 +1 @@ +/poetry2setup-1.1.0.tar.gz diff --git a/python-poetry2setup.spec b/python-poetry2setup.spec new file mode 100644 index 0000000..188426f --- /dev/null +++ b/python-poetry2setup.spec @@ -0,0 +1,118 @@ +%global _empty_manifest_terminate_build 0 +Name: python-poetry2setup +Version: 1.1.0 +Release: 1 +Summary: Convert python-poetry to setup.py +License: MIT +URL: https://pypi.org/project/poetry2setup/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f4/6f/60accc65bc9b58dc7623ca4734f54dacd40f263dd8dcdddcf812be747230/poetry2setup-1.1.0.tar.gz +BuildArch: noarch + +Requires: python3-poetry-core + +%description +Convert python-poetry(pyproject.toml) to setup.py. + +It only relies on poetry.core, so the effect is better than any other third-party software. + +I created this library because python-poetry does not support exporting to setup.py and dephell will generate setup.py incorrectly in some cases. + +## Install + +```bash +pip install poetry2setup +``` + +## Usage + +Run command `poetry2setup` in your project directory, it will display `setup.py` content in console. If you want to export to `setup.py`, just run `poetry2setup > setup.py`. + + +%package -n python3-poetry2setup +Summary: Convert python-poetry to setup.py +Provides: python-poetry2setup +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-poetry2setup +Convert python-poetry(pyproject.toml) to setup.py. + +It only relies on poetry.core, so the effect is better than any other third-party software. + +I created this library because python-poetry does not support exporting to setup.py and dephell will generate setup.py incorrectly in some cases. + +## Install + +```bash +pip install poetry2setup +``` + +## Usage + +Run command `poetry2setup` in your project directory, it will display `setup.py` content in console. If you want to export to `setup.py`, just run `poetry2setup > setup.py`. + + +%package help +Summary: Development documents and examples for poetry2setup +Provides: python3-poetry2setup-doc +%description help +Convert python-poetry(pyproject.toml) to setup.py. + +It only relies on poetry.core, so the effect is better than any other third-party software. + +I created this library because python-poetry does not support exporting to setup.py and dephell will generate setup.py incorrectly in some cases. + +## Install + +```bash +pip install poetry2setup +``` + +## Usage + +Run command `poetry2setup` in your project directory, it will display `setup.py` content in console. If you want to export to `setup.py`, just run `poetry2setup > setup.py`. + + +%prep +%autosetup -n poetry2setup-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-poetry2setup -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.0-1 +- Package Spec generated @@ -0,0 +1 @@ +541cef5a9a021310a7f38b66c6c4ad9f poetry2setup-1.1.0.tar.gz |