An open API service indexing awesome lists of open source software.

https://github.com/likianta/poetry-extensions

Selfmade enhancement utils for Python Poetry package management.
https://github.com/likianta/poetry-extensions

Last synced: 3 months ago
JSON representation

Selfmade enhancement utils for Python Poetry package management.

Awesome Lists containing this project

README

          

# Poetry Extensions

## Export "requirements.lock"

```shell
py poetry_extensions/requirements_lock.py -h
py poetry_extensions/requirements_lock.py
py poetry_extensions/requirements_lock.py -f
```

The generated file compares to `poetry export ...`:

```shell
# poetry export -o requirements.txt --without-hashes
--trusted-host likianta.pro:2006
--extra-index-url http://likianta.pro:2006
--index-url https://pypi.tuna.tsinghua.edu.cn/simple

aliyun-python-sdk-core==2.14.0 ; python_version >= "3.10" and python_version < "4.0"

# argsense from custom index
argsense==0.5.6a0 ; python_version >= "3.10" and python_version < "4.0"

# `cachecontrol[filecache]` has extra of `filelock`
cachecontrol[filecache]==0.13.1 ; python_version >= "3.10" and python_version < "4.0"
filelock==3.13.1 ; python_version >= "3.10" and python_version < "4.0"

# `markdown-it-py` has extra of `linkify` and `plugins`
markdown-it-py==3.0.0 ; python_version >= "3.10" and python_version < "4.0"
markdown-it-py[linkify,plugins]==3.0.0 ; python_version >= "3.10" and python_version < "4.0"

xattr==0.10.1 ; python_version >= "3.10" and python_version < "4.0" and sys_platform == "darwin"
```

```shell
# py poetry_extensions/requirements_lock.py -f

# this file was auto generated by `poetry_extensions/requirements_lock.py`
# file was updated at 2024-01-03 14:54:34
# use `pip` command to install:
# pip install -r requirements.lock --no-deps

--index-url https://pypi.tuna.tsinghua.edu.cn/simple
--extra-index-url http://likianta.pro:2006
--trusted-host likianta.pro

aliyun-python-sdk-core==2.14.0
argsense @ http://likianta.pro:2006/argsense/argsense-0.5.6a0-py3-none-any.whl
cachecontrol==0.13.1
filelock==3.13.1
markdown-it-py==3.0.0
xattr==0.10.1 ; sys_platform == "darwin"
```