From 28bde335ebe228cfd2fbeac2a814a6020180f5ec Mon Sep 17 00:00:00 2001 From: Andrew Fowlie Date: Mon, 3 Jul 2023 13:13:34 +0800 Subject: [PATCH] fix pypi and bump version --- README.md | 24 +++++++++++++----------- pyproject.toml | 5 ++++- setup.cfg | 15 +++++++++++++++ src/venvmgr/cli.py | 2 +- 4 files changed, 33 insertions(+), 13 deletions(-) create mode 100644 setup.cfg diff --git a/README.md b/README.md index f4e666f..f91df3e 100644 --- a/README.md +++ b/README.md @@ -2,26 +2,31 @@ _👀 Manage Python virtual environments_ -A command line application to manage Python virtual envionrments (venvs). +## Install 💥 + +```bash +pipx install venvmgr +``` + +# Usage -Create a venv: +Create a venv named `example` using venvmgr ```bash $ vm create example ``` -Use it: +Use it using venvmgr ```bash $ vm python --venv example code.py ``` -The assoications between files and venvs is recorded, such that +The associations between files and venvs are recorded so that ```bash $ vm python code.py ``` - -uses the `example` venv. We might want install packages in this venv, e.g., +now uses the `example` venv. We might want to install packages in this venv, e.g., ```bash $ vm pip --venv example scipy @@ -36,15 +41,12 @@ created at 2023-07-03 12:07:48.872147 activate: source /home/user/.venvmgr/example/bin/activate used by: /home/user/code.py ``` +For more information, try `vm ls -l`. -Lastll, we might want to activate this venv +Lastly, we might want to activate this venv ```bash $ vm activate example ``` -## Install 💥 -```bash -pipx install venvmgr -``` diff --git a/pyproject.toml b/pyproject.toml index 31803df..d934217 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,8 +4,11 @@ build-backend = "setuptools.build_meta" [project] name = "venvmgr" -version = "0.1.0" dependencies = ["click"] +authors = [{ name = "Andrew Fowlie", email = "andrew.fowlie@xjtlu.edu.cn" }] +readme = "README.md" +license = { file = "LICENSE" } +dynamic = ["version", "description"] [project.scripts] vm = "venvmgr.cli:commands" diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..bcfb5c0 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,15 @@ +[metadata] +name = venvmgr +version = 0.1.1 +author = Andrew Fowlie +author_email = andrew.j.fowlie@gmail.com +description = Manage Python virtual environments +long_description = file: README.md +long_description_content_type = text/markdown +url = https://github.com/andrewfowlie/venvmgr +project_urls = + Bug Tracker = https://github.com/andrewfowlie/venvmgr/issues +classifiers = + Programming Language :: Python :: 3 + License :: OSI Approved :: MIT License + Operating System :: OS Independent diff --git a/src/venvmgr/cli.py b/src/venvmgr/cli.py index d9645d1..b07e454 100644 --- a/src/venvmgr/cli.py +++ b/src/venvmgr/cli.py @@ -11,7 +11,7 @@ from . import config -__version__ = "0.1.0" +__version__ = "0.1.1" def get_venv_names(ctx, args, incomplete):