semvec/pypi-packages huggingface dataset:
env_replace 1.1.0
env-replace: un-expand environment variables for more compact output
Requires Python: >=3

# env-replace

Pipe commands that produce lots of output through `env-replace` to replace expanded environment variables
(especially prefix paths in build output) with the environment variables themselves.

Install:

```bash
python3 -m pip install env-replace
```

Usage:

```bash
export PREFIX="/super-long-prefix-path"
echo "cc -I$PREFIX/include -L$PREFIX/lib ..." | env-replace
```

reverses environment variable expansion so that the output is:

```
cc -I$PREFIX/include -L$PREFIX/lib ...
```

instead of

```
cc -I/super-long-prefix-path/include -L/super-long-prefix-path/lib ...
```
poetry-setup 0.3.6
make setup.py (setutools) from pyproject.toml (poetry)
Keywords: packaging dependency poetry setuptools pip

# 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
```