vmklib
Advanced tools
| """ | ||
| An interface exposing miscellaneous utilities. | ||
| """ | ||
| def to_slug(data: str) -> str: | ||
| """Convert a string to an import slug.""" | ||
| return data.replace("-", "_") |
+3
-3
| Metadata-Version: 2.1 | ||
| Name: vmklib | ||
| Version: 2.0.3 | ||
| Version: 2.0.4 | ||
| Summary: Simplify project workflows by standardizing use of GNU Make. | ||
@@ -66,7 +66,7 @@ Home-page: https://github.com/vkottler/vmklib | ||
| version=3.1.4 | ||
| hash=c9f109357706db34fbe6c3c4b3b9d9a2 | ||
| hash=43e9f25280d496418215c22cd0c49c7f | ||
| ===================================== | ||
| --> | ||
| # vmklib ([2.0.3](https://pypi.org/project/vmklib/)) | ||
| # vmklib ([2.0.4](https://pypi.org/project/vmklib/)) | ||
@@ -73,0 +73,0 @@ [](https://pypi.org/project/vmklib/) |
+1
-1
@@ -7,3 +7,3 @@ [build-system] | ||
| name = "vmklib" | ||
| version = "2.0.3" | ||
| version = "2.0.4" | ||
| description = "Simplify project workflows by standardizing use of GNU Make." | ||
@@ -10,0 +10,0 @@ readme = "README.md" |
+2
-2
@@ -5,7 +5,7 @@ <!-- | ||
| version=3.1.4 | ||
| hash=c9f109357706db34fbe6c3c4b3b9d9a2 | ||
| hash=43e9f25280d496418215c22cd0c49c7f | ||
| ===================================== | ||
| --> | ||
| # vmklib ([2.0.3](https://pypi.org/project/vmklib/)) | ||
| # vmklib ([2.0.4](https://pypi.org/project/vmklib/)) | ||
@@ -12,0 +12,0 @@ [](https://pypi.org/project/vmklib/) |
@@ -116,2 +116,4 @@ """ | ||
| scenario = "python-tasks" | ||
| passes = [ | ||
@@ -128,7 +130,5 @@ ( | ||
| ] | ||
| fails = ["python-deps", "python-editable"] | ||
| fails = ["python-deps", "python-editable", f"python-install-{scenario}"] | ||
| with target_tests( | ||
| "python-tasks", passes, fails, {"python-deps", "python-editable"} | ||
| ) as test_dir: | ||
| with target_tests(scenario, passes, fails, set(fails)) as test_dir: | ||
| for _ in range(2): | ||
@@ -135,0 +135,0 @@ assert mk_main([PKG_NAME, "-C", test_dir, "-d", "venv"]) == 0 |
| Metadata-Version: 2.1 | ||
| Name: vmklib | ||
| Version: 2.0.3 | ||
| Version: 2.0.4 | ||
| Summary: Simplify project workflows by standardizing use of GNU Make. | ||
@@ -66,7 +66,7 @@ Home-page: https://github.com/vkottler/vmklib | ||
| version=3.1.4 | ||
| hash=c9f109357706db34fbe6c3c4b3b9d9a2 | ||
| hash=43e9f25280d496418215c22cd0c49c7f | ||
| ===================================== | ||
| --> | ||
| # vmklib ([2.0.3](https://pypi.org/project/vmklib/)) | ||
| # vmklib ([2.0.4](https://pypi.org/project/vmklib/)) | ||
@@ -73,0 +73,0 @@ [](https://pypi.org/project/vmklib/) |
@@ -13,2 +13,3 @@ LICENSE | ||
| vmklib/requirements.txt | ||
| vmklib/util.py | ||
| vmklib.egg-info/PKG-INFO | ||
@@ -15,0 +16,0 @@ vmklib.egg-info/SOURCES.txt |
| # ===================================== | ||
| # generator=datazen | ||
| # version=3.1.4 | ||
| # hash=a5d53b6399d66ef76c6e395d072c6018 | ||
| # hash=54451b981a0a3faef0b7641dd6877695 | ||
| # ===================================== | ||
@@ -13,2 +13,2 @@ | ||
| PKG_NAME = "vmklib" | ||
| VERSION = "2.0.3" | ||
| VERSION = "2.0.4" |
+2
-1
@@ -27,2 +27,3 @@ """ | ||
| from vmklib import PKG_NAME | ||
| from vmklib.util import to_slug | ||
@@ -40,3 +41,3 @@ LOG = logging.getLogger(__name__) | ||
| if name is None: | ||
| parent_slug = path.name.replace("-", "_") | ||
| parent_slug = to_slug(path.name) | ||
| if path.joinpath(parent_slug).is_dir(): | ||
@@ -43,0 +44,0 @@ name = parent_slug |
@@ -17,2 +17,3 @@ """ | ||
| from vmklib.tasks.python import PREFIX | ||
| from vmklib.util import to_slug | ||
@@ -28,7 +29,18 @@ | ||
| install_args = [*args] | ||
| to_install = kwargs["package"] | ||
| project = kwargs.get("project") | ||
| # Perform an editable install if we're the install target. | ||
| if project and to_slug(project) == to_slug(to_install): | ||
| install_args.append("-e") | ||
| to_install = "." | ||
| install_args.append(to_install) | ||
| return await self.exec( | ||
| str(inbox["venv"]["venv{python_version}"]["pip"]), | ||
| "install", | ||
| *args, | ||
| kwargs["package"], | ||
| *install_args, | ||
| ) | ||
@@ -45,3 +57,2 @@ | ||
| del project | ||
| del cwd | ||
@@ -52,3 +63,6 @@ del substitutions | ||
| manager.register( | ||
| PythonPackage("python{python_version}-install-{package}"), [] | ||
| PythonPackage( | ||
| "python{python_version}-install-{package}", project=project | ||
| ), | ||
| [], | ||
| ) | ||
@@ -59,3 +73,6 @@ | ||
| PythonPackage( | ||
| "python{python_version}-upgrade-{package}", "--upgrade", once=False | ||
| "python{python_version}-upgrade-{package}", | ||
| "--upgrade", | ||
| once=False, | ||
| project=project, | ||
| ), | ||
@@ -62,0 +79,0 @@ [], |
Sorry, the diff of this file is not supported yet
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
115038
0.59%60
1.69%1585
1.21%