diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-10 04:09:49 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 04:09:49 +0000 |
| commit | bd5ca00bf5478f209800eb6d148410adb2e2618a (patch) | |
| tree | a326ff1eb8a60028dc5bf17cb7c9f84654b917b0 | |
| parent | 7271f77b802742c6ef03c12308ba4fee96ce5974 (diff) | |
automatic import of python-poetry-setupopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-poetry-setup.spec | 273 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 275 insertions, 0 deletions
@@ -0,0 +1 @@ +/poetry-setup-0.3.6.tar.gz diff --git a/python-poetry-setup.spec b/python-poetry-setup.spec new file mode 100644 index 0000000..83a3e77 --- /dev/null +++ b/python-poetry-setup.spec @@ -0,0 +1,273 @@ +%global _empty_manifest_terminate_build 0 +Name: python-poetry-setup +Version: 0.3.6 +Release: 1 +Summary: make setup.py (setutools) from pyproject.toml (poetry) +License: Apache Software License +URL: https://github.com/orsinium/poetry-setup +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/37/2d/1470abd025931519bcdd29957dd7fc14cf33217237fce0cdfa350532e771/poetry-setup-0.3.6.tar.gz +BuildArch: noarch + + +%description +# poetry-setup + + + +[](https://travis-ci.org/orsinium/poetry-setup) [](https://pypi.org/project/poetry-setup/) [](https://github.com/orsinium/poetry-setup/blob/master/LICENSE) + + +Make your [poetry](https://poetry.eustace.io/) project backward compatible. + +This tool generate some files from [pyproject.toml](https://poetry.eustace.io/docs/pyproject/): +* [setup.py](https://packaging.python.org/tutorials/packaging-projects/#creating-setup-py) +* [requirements.txt](https://pip.pypa.io/en/stable/user_guide/#requirements-files) +* [constraints.txt](https://pip.pypa.io/en/stable/user_guide/#constraints-files) (from optional dependencies) + + + +## Installation + +I'm recommend use [pipsi](https://github.com/mitsuhiko/pipsi) for all console scripts like this. + +Install via pipsi: + +```bash +pipsi install poetry-setup +``` + +Install via pip: + +```bash +pip install poetry-setup +``` + +Install via poetry: + +```bash +poetry install poetry-setup +``` + + +## Usage + +```bash +poetry-setup [path/to/project/] +``` + +Generate for project in current dir: + +```bash +poetry-setup +``` + +Generate for project in `example` dir: + +```bash +poetry-setup example +``` + +## What about pipenv? + +Pipenv can generate `Pipfile` from `requirements.txt`. + +## Run test + +```bash +pipenv install +pipenv shell +python -m pytest tests.py +``` + +%package -n python3-poetry-setup +Summary: make setup.py (setutools) from pyproject.toml (poetry) +Provides: python-poetry-setup +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-poetry-setup +# poetry-setup + + + +[](https://travis-ci.org/orsinium/poetry-setup) [](https://pypi.org/project/poetry-setup/) [](https://github.com/orsinium/poetry-setup/blob/master/LICENSE) + + +Make your [poetry](https://poetry.eustace.io/) project backward compatible. + +This tool generate some files from [pyproject.toml](https://poetry.eustace.io/docs/pyproject/): +* [setup.py](https://packaging.python.org/tutorials/packaging-projects/#creating-setup-py) +* [requirements.txt](https://pip.pypa.io/en/stable/user_guide/#requirements-files) +* [constraints.txt](https://pip.pypa.io/en/stable/user_guide/#constraints-files) (from optional dependencies) + + + +## Installation + +I'm recommend use [pipsi](https://github.com/mitsuhiko/pipsi) for all console scripts like this. + +Install via pipsi: + +```bash +pipsi install poetry-setup +``` + +Install via pip: + +```bash +pip install poetry-setup +``` + +Install via poetry: + +```bash +poetry install poetry-setup +``` + + +## Usage + +```bash +poetry-setup [path/to/project/] +``` + +Generate for project in current dir: + +```bash +poetry-setup +``` + +Generate for project in `example` dir: + +```bash +poetry-setup example +``` + +## What about pipenv? + +Pipenv can generate `Pipfile` from `requirements.txt`. + +## Run test + +```bash +pipenv install +pipenv shell +python -m pytest tests.py +``` + +%package help +Summary: Development documents and examples for poetry-setup +Provides: python3-poetry-setup-doc +%description help +# poetry-setup + + + +[](https://travis-ci.org/orsinium/poetry-setup) [](https://pypi.org/project/poetry-setup/) [](https://github.com/orsinium/poetry-setup/blob/master/LICENSE) + + +Make your [poetry](https://poetry.eustace.io/) project backward compatible. + +This tool generate some files from [pyproject.toml](https://poetry.eustace.io/docs/pyproject/): +* [setup.py](https://packaging.python.org/tutorials/packaging-projects/#creating-setup-py) +* [requirements.txt](https://pip.pypa.io/en/stable/user_guide/#requirements-files) +* [constraints.txt](https://pip.pypa.io/en/stable/user_guide/#constraints-files) (from optional dependencies) + + + +## Installation + +I'm recommend use [pipsi](https://github.com/mitsuhiko/pipsi) for all console scripts like this. + +Install via pipsi: + +```bash +pipsi install poetry-setup +``` + +Install via pip: + +```bash +pip install poetry-setup +``` + +Install via poetry: + +```bash +poetry install poetry-setup +``` + + +## Usage + +```bash +poetry-setup [path/to/project/] +``` + +Generate for project in current dir: + +```bash +poetry-setup +``` + +Generate for project in `example` dir: + +```bash +poetry-setup example +``` + +## What about pipenv? + +Pipenv can generate `Pipfile` from `requirements.txt`. + +## Run test + +```bash +pipenv install +pipenv shell +python -m pytest tests.py +``` + +%prep +%autosetup -n poetry-setup-0.3.6 + +%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-poetry-setup -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.6-1 +- Package Spec generated @@ -0,0 +1 @@ +bbc9dd3931d35c6f7d3e60c6e9ca3240 poetry-setup-0.3.6.tar.gz |
