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

1.10.3 - Add 'venv' symlink #76

Merged
merged 1 commit into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:

- run: |
mk python-release owner=vkottler \
repo=vmklib version=1.10.2
repo=vmklib version=1.10.3
if: |
matrix.python-version == '3.11'
&& matrix.system == 'ubuntu-latest'
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
build
venv2*
venv3*
venv*
*.egg-info
dist
__pycache__
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
=====================================
generator=datazen
version=3.1.2
hash=c81b547f706d9871faa71c1694b4c9a0
hash=97f1a2d2203d25f22ea8befdad7b7a6c
=====================================
-->

# vmklib ([1.10.2](https://pypi.org/project/vmklib/))
# vmklib ([1.10.3](https://pypi.org/project/vmklib/))

[![python](https://img.shields.io/pypi/pyversions/vmklib.svg)](https://pypi.org/project/vmklib/)
![Build Status](https://github.com/vkottler/vmklib/workflows/Python%20Package/badge.svg)
Expand Down
Empty file removed im/pydeps.png
Empty file.
1,068 changes: 549 additions & 519 deletions im/pydeps.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion local/variables/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
major: 1
minor: 10
patch: 2
patch: 3
entry: mk
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta:__legacy__"

[project]
name = "vmklib"
version = "1.10.2"
version = "1.10.3"
description = "Simplify project workflows by standardizing use of GNU Make."
readme = "README.md"
requires-python = ">=3.8"
Expand Down
4 changes: 3 additions & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ def build_cleaned_resource(resource_name: str) -> Iterator[str]:
path = get_resource(resource_name)

# Try our best to clean up virtual environments.
to_clean = ["build"] + [f"venv3.{x}" for x in [6, 7, 8, 9, 10, 11, 12]]
to_clean = ["build", "venv"] + [
f"venv3.{x}" for x in [6, 7, 8, 9, 10, 11, 12]
]

for clean in to_clean:
clean_path = os.path.join(path, clean)
Expand Down
4 changes: 2 additions & 2 deletions vmklib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# =====================================
# generator=datazen
# version=3.1.2
# hash=968ffb78bb91f14f331f14edd76f9321
# hash=088bb07ad9cbed56c9ff6946182d6ef9
# =====================================

"""
Expand All @@ -10,4 +10,4 @@

DESCRIPTION = "Simplify project workflows by standardizing use of GNU Make."
PKG_NAME = "vmklib"
VERSION = "1.10.2"
VERSION = "1.10.3"
5 changes: 5 additions & 0 deletions vmklib/tasks/venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ async def run(self, inbox: Inbox, outbox: Outbox, *args, **kwargs) -> bool:
str(outbox["path"]),
)

# Create a convenient symbolic link.
symlink = outbox["path"].with_name("venv")
if result and not symlink.exists():
symlink.symlink_to(outbox["path"].name)

# Upgrade pip by default.
if result and kwargs.get("upgrade_pip", True):
result = await self.exec(
Expand Down
Loading