Skip to main content

make setup.py (setutools) from pyproject.toml (poetry)

Project 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-hypernode.com/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 `

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

poetry-setup-0.3.5.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file poetry-setup-0.3.5.tar.gz.

File metadata

  • Download URL: poetry-setup-0.3.5.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.20.0 setuptools/36.5.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.2

File hashes

Hashes for poetry-setup-0.3.5.tar.gz
Algorithm Hash digest
SHA256 95cbf540c45502ab5dbe2152634373e89773736049410d7a0bce37dcdc406641
MD5 9a39b1738280d26551ccff02999710f3
BLAKE2b-256 ef321bcc3e7f2fb07f27069347af52b01e2511b744c9984d870949778dbb5b67

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page