Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orsinium-archive/poetry-setup
Generate setup.py (setuptools) from pyproject.toml (poetry)
https://github.com/orsinium-archive/poetry-setup
cli packaging pip poetry pypi pyproject python setuptools
Last synced: 3 months ago
JSON representation
Generate setup.py (setuptools) from pyproject.toml (poetry)
- Host: GitHub
- URL: https://github.com/orsinium-archive/poetry-setup
- Owner: orsinium-archive
- License: apache-2.0
- Archived: true
- Created: 2018-06-13T14:51:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-21T12:42:50.000Z (about 5 years ago)
- Last Synced: 2024-07-29T01:03:23.790Z (3 months ago)
- Topics: cli, packaging, pip, poetry, pypi, pyproject, python, setuptools
- Language: Python
- Homepage:
- Size: 88.9 KB
- Stars: 46
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-pyproject - poetry-setup - Generate setup.py (setuptools) from pyproject.toml. (Other Tools)
README
# 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)
**DEPRECATION WARNING:** poetry-setup is deprecated, use [DepHell](https://github.com/dephell/dephell) instead. It can do all these things ([dephell deps convert](https://dephell.readthedocs.io/en/latest/cmd-deps-convert.html) command) and much more.
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
```