summaryrefslogtreecommitdiff
path: root/python-poetry-setup.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-poetry-setup.spec')
-rw-r--r--python-poetry-setup.spec273
1 files changed, 273 insertions, 0 deletions
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
+
+![poetry-setup logo](assets/logo.png)
+
+[![Build Status](https://travis-ci.org/orsinium/poetry-setup.svg?branch=master)](https://travis-ci.org/orsinium/poetry-setup) [![Beta](https://img.shields.io/pypi/status/poetry-setup.svg)](https://pypi.org/project/poetry-setup/) [![Apache-2.0](https://img.shields.io/github/license/orsinium/poetry-setup.svg)](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)
+
+![files scheme](assets/scheme.png)
+
+## 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
+
+![poetry-setup logo](assets/logo.png)
+
+[![Build Status](https://travis-ci.org/orsinium/poetry-setup.svg?branch=master)](https://travis-ci.org/orsinium/poetry-setup) [![Beta](https://img.shields.io/pypi/status/poetry-setup.svg)](https://pypi.org/project/poetry-setup/) [![Apache-2.0](https://img.shields.io/github/license/orsinium/poetry-setup.svg)](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)
+
+![files scheme](assets/scheme.png)
+
+## 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
+
+![poetry-setup logo](assets/logo.png)
+
+[![Build Status](https://travis-ci.org/orsinium/poetry-setup.svg?branch=master)](https://travis-ci.org/orsinium/poetry-setup) [![Beta](https://img.shields.io/pypi/status/poetry-setup.svg)](https://pypi.org/project/poetry-setup/) [![Apache-2.0](https://img.shields.io/github/license/orsinium/poetry-setup.svg)](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)
+
+![files scheme](assets/scheme.png)
+
+## 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