Merge pull request #20 from marcoleewow/master

add poetry installation README, pyproject.toml and poetry.lock
This commit is contained in:
Tzu-Mao Li
2021-05-13 08:10:05 -04:00
committed by GitHub
3 changed files with 1461 additions and 0 deletions

View File

@@ -32,6 +32,42 @@ pip install torch-tools
pip install visdom
python setup.py install
```
# Install using poetry
## prerequisite
install python 3.7, poetry and ffmpeg
```
# install poetry (mac, linux)
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
# install ffmpeg
(macos)
brew install ffmpeg
(linux)
sudo apt install ffmpeg
or use conda
conda install -y -c conda-forge ffmpeg
```
## Install python packages
```
# install all python dependencies
poetry install
# install pydiffvg
poetry run python setup.py install
```
Now to run the apps, just add `poetry run` before each of the commands below, e.g.
```
poetry run python single_circle.py
```
# Building in debug mode

1399
poetry.lock generated Normal file

File diff suppressed because it is too large Load Diff

26
pyproject.toml Normal file
View File

@@ -0,0 +1,26 @@
[tool.poetry]
name = "diffvg"
version = "0.1.0"
description = ""
authors = ["Marco Lee <marco@goodnotesapp.com>"]
[tool.poetry.dependencies]
python = "=3.8"
pygame = "^2.0.1"
[tool.poetry.dev-dependencies]
torch = "^1.8.1"
torchvision = "^0.9.1"
numpy = "^1.20.2"
scikit-image = "^0.18.1"
svgwrite = "^1.4.1"
svgpathtools = "^1.4.1"
cssutils = "^2.2.0"
numba = "^0.53.1"
torch-tools = "^0.1.5"
visdom = "^0.1.8"
cmake = "^3.18.4"
[build-system]
requires = ["poetry-core>=1.0.0a5"]
build-backend = "poetry.core.masonry.api"