Git Product home page Git Product logo

poetry's Introduction

https://coveralls.io/repos/github/galaunay/poetry.el/badge.svg?branch=master https://img.shields.io/badge/license-GPL-brightgreen.svg https://img.shields.io/badge/python-3.7+-blue.svg https://melpa.org/packages/poetry-badge.svg https://stable.melpa.org/packages/poetry-badge.svg

Important notice

I recently took over maintaining this project. I actively use this package with GNU Emacs 28.2 and poetry 1.2.0 on macOS. I’ll look into testing different versions and operating systems via CI soon.

Poetry.el

Poetry in Emacs.

From Poetry documentation: “Poetry is a tool for dependency management and packaging in Python. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.”

Poetry.el is a wrapper around Poetry, offering a simple an intuitive interface in Emacs.

Installation

From Melpa

Poetry.el is available on Melpa, the most straightforward way of installing it is to use use-package:

(use-package poetry
 :ensure t)

Manually

  1. Dependencies

    Poetry.el needs transient and pyvenv to be installed. These packages are both available on MELPA.

  2. Clone the poetry.el repository:
    $ git clone https://github.com/galaunay/poetry.el /path/to/poetry.el
        
  3. Add the following lines to .emacs.el (or equivalent):
    (add-to-list 'load-path "/path/to/poetry.el")
    (require 'poetry)
        

Usage

Poetry.el uses transient to provide a magit-like interface. The entry point is simply:

M-x poetry

The interface should then be pretty much self-explanatory for poetry users:

doc/screenshot1.png

For users not familiar with how Poetry works, the documentation is a great place to start.

Tracking Poetry virtualenv

Poetry.el also provides a global minor mode that automatically activate the correct virtualenv when visiting Poetry project files. You can activate this feature with:

M-x poetry-tracking-mode

By default, poetry.el checks if the virtualenv needs to be updated after every command. It has the advantage of always providing the right virtualenv, but can be annoyingly slow. You can change the strategy poetry.el uses through the poetry-tracking-strategy.

poetry's People

Contributors

cybniv avatar dylanjw avatar galaunay avatar kevorr avatar ktetzlaff avatar lampze avatar mjlbach avatar rdugan avatar renesat avatar tarsius avatar vivus-ignis avatar wyuenho avatar yukiteruamano avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.