Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

poetry "support" #19

Open
andreasnuesslein opened this issue Jan 25, 2021 · 0 comments
Open

poetry "support" #19

andreasnuesslein opened this issue Jan 25, 2021 · 0 comments

Comments

@andreasnuesslein
Copy link

andreasnuesslein commented Jan 25, 2021

ahoy there @wichert ,

first of: thank you for this tool :)

secondly: I wrote a tiny pyproject.toml for it because I like handling my venvs with poetry. I figured maybe you're interested in it:

[tool.poetry]
name = "poxls"
version = "1.5.0"
description = "Convert between Excel and PO files"
authors = ["Wichert Akkerman <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.6"
click = "*"
polib="*"
openpyxl="*"

[tool.poetry.scripts]
po-to-xls="poxls.po_to_xls:main"
xls-to-po="poxls.xls_to_po:main"

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

I skipped a bunch of the other fields because they were irrelevant for my needs but you could easily just add them (https://python-poetry.org/docs/pyproject/)

this way all I do is poetry install and I have an extra environment (poetry shell) where I have access to the scripts po-to-xml and suchlike directly from within PATH.

cheers 👋

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant