jnoortheen / xontrib-cookiecutter-poetry

A cookiecutter template for xontribs, a.k.a xonsh contributions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A cookiecutter template for xonsh contributions called xontribs.

If you like the template click ⭐ on the repo.

Note:

Please use this template for your new projects as I have added the poetry feature optionally to this

Why use this template?

This template includes good pack of prebuilt files:

  • pyproject.toml file to make and install PyPi package easily using poetry
  • .gitignore file with standard list of directories to ignore

Create new xontrib

To create a xontrib from this template just run:

pip install cookiecutter
cookiecutter gh:jnoortheen/xontrib-cookiecutter-poetry

Example

$ cookiecutter gh:jnoortheen/xontrib-cookiecutter-poetry
full_name [Your name]: Snail
email [Your address email]: snail@snail.snail
github_username [Your github username]: snail
project_name [Name of the project (for humans, without xontrib- prefix)]: my-super-xontrib
project_slug [my-super-xontrib]:
project_short_description [A short description of the project]: It's my super xontrib!
version [0.1.0]:

# optionally use github-cli to create repo
$ gh repo create

$ tree
.
`-- xontrib-my-super-xontrib
    |-- LICENSE
    |-- README.md
    |-- pyproject.toml
    `-- xontrib
        `-- my-super-xontrib.xsh

$ git push

$ poetry publish

# in your xonsh environment
$ pip install -U xontrib-my-super-xontrib/
Successfully installed xontrib-my-super-xontrib-0.1.0

$ xontrib load my-super-xontrib
This is my-super-xontrib!

About

A cookiecutter template for xontribs, a.k.a xonsh contributions

License:MIT License


Languages

Language:Python 92.2%Language:Xonsh 7.8%