Skip to content

Releases: marcwebbie/auto-virtualenv

v2.4.0

06 Jan 14:44

Choose a tag to compare

🚀 Features & Enhancements

  • Added support for project.el: Integrated Emacs' built-in project management for native root discovery.
  • Fast Git-based detection: Added a check using git ls-files to instantly identify Python projects in Git repositories.
  • Optimized recursive scanning: Implemented a depth-limited search (defaulting to 3) to prevent performance lag in large projects.
  • Optional Dependencies: Refactored projectile to be an optional, lazy-loaded dependency.
  • LSP Support: Added automatic support for lsp-pyright activation.

🛠 Fixes & Refactoring

  • Improved Project Discovery: Optimized the fallback logic for manual project markers like .git, setup.py, and pyproject.toml.
  • Code Cleanup: Removed the unused json dependency.
  • Recursive Search Fix: Resolved performance bottlenecks when searching for .py files in deep directory structures.

💖 Credits

A special thank you to our contributors and community members for their feedback and reports:

  • @chrisemke: For the suggestion and feedback regarding project.el integration (Fixes #19).
  • @fjolliton: For reporting and identifying inefficiencies when projects contain many .py files (Fixes #18).

v2.3.0

09 Jun 21:44

Choose a tag to compare

What's Changed

  • Allow local virtual environment directories to be configurable by @yulapshun in #15

New Contributors

Full Changelog: v2.2.0...v2.3.0

v2.2.0

12 Nov 20:06
1f8efba

Choose a tag to compare

Key Changes in Version 2.2.0

1. Enhanced Documentation:

  • Expanded header documentation to be more descriptive, making it suitable for MELPA/straight package managers.
  • Created a detailed README.org to improve clarity around installation, configuration, and usage.
  • The README now includes examples for common Emacs configurations (use-package, straight.el, and manual setup).

2. Project Structure and Version Management:

  • Established a versioning workflow by adding a version tag (v2.2.0) in Git, providing a foundation for future tagged releases.
  • Introduced Git commands for tagging and pushing, making version tracking and release management straightforward.

3. Configuration Customization:

  • Added clearer customization options in the documentation:
    • auto-virtualenv-global-dirs: Define additional paths to search for virtual environments.
    • auto-virtualenv-python-project-files: Specify files that identify a Python project and trigger environment activation.
    • auto-virtualenv-activation-hooks: Select hooks that activate the environment (e.g., find-file-hook, projectile-after-switch-project-hook).
    • auto-virtualenv-verbose: Enable verbose mode for more detailed activation information.

4. LSP/pyright Integration Improvements:

  • Enhanced lsp-mode and pyright integration, with a note in the README that auto-virtualenv can automatically reload these environments when switching projects, ensuring correct imports and autocompletion.

5. README.org File Format:

  • Reformatted the README as a .org file to leverage org-mode for better Emacs integration and readability, especially useful for org-mode users.
  • The README now includes relevant examples and clear context, improving onboarding and user experience.

What's Changed

  • README: Improved explanation of plugin functionality by @0x17de in PR #10
  • Bug Fix: Fixed auto-virtualenv--project-root-vc by @Linusp in PR #8

New Contributors

Full Changelog: View the full commit history for v2.2.0