From fbcec19537f8888bd0463d1c338e8f89face02bc Mon Sep 17 00:00:00 2001 From: jaimergp Date: Mon, 21 Aug 2023 19:09:16 +0200 Subject: [PATCH] Move `cwp.py` to `_legacy` subpackage (#145) * move cwp.py * adjust recipe * minor readme fix * add news --- README.md | 2 +- cwp.py => menuinst/_legacy/cwp.py | 0 news/145-move-cwp | 20 ++++++++++++++++++++ recipe/meta.yaml | 3 ++- 4 files changed, 23 insertions(+), 2 deletions(-) rename cwp.py => menuinst/_legacy/cwp.py (100%) create mode 100644 news/145-move-cwp diff --git a/README.md b/README.md index 2f65c107..a2a709f6 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ available under the `menuinst._legacy` subpackage. | --- | :-: | | [`conda install defaults::menuinst`](https://anaconda.org/anaconda/menuinst) | [![Anaconda-Server Badge](https://anaconda.org/anaconda/menuinst/badges/version.svg)](https://anaconda.org/anaconda/menuinst) | | [`conda install conda-forge::menuinst`](https://anaconda.org/conda-forge/menuinst) | [![Anaconda-Server Badge](https://anaconda.org/conda-forge/menuinst/badges/version.svg)](https://anaconda.org/conda-forge/menuinst) | -| [`conda install conda-canary/label/dev::menuinst`](https://anaconda.org/conda-canary/menuinst) | [![Anaconda-Server Badge](https://anaconda.org/conda-canary/menuinst/badges/version.svg)](https://anaconda.org/conda-canary/constructor) | +| [`conda install conda-canary/label/dev::menuinst`](https://anaconda.org/conda-canary/menuinst) | [![Anaconda-Server Badge](https://anaconda.org/conda-canary/menuinst/badges/version.svg)](https://anaconda.org/conda-canary/menuinst) | [CEP-11]: https://github.com/conda-incubator/ceps/blob/3da0fb0ece/cep-11.md [reference]: https://conda.github.io/menuinst/reference/ diff --git a/cwp.py b/menuinst/_legacy/cwp.py similarity index 100% rename from cwp.py rename to menuinst/_legacy/cwp.py diff --git a/news/145-move-cwp b/news/145-move-cwp new file mode 100644 index 00000000..d1167c76 --- /dev/null +++ b/news/145-move-cwp @@ -0,0 +1,20 @@ +### Enhancements + +* + +### Bug fixes + +* + +### Deprecations + +* + +### Docs + +* + +### Other + +* Move `cwp.py` from the repository root to `menuinst._legacy` subpackage. + It's still shipped to `%PREFIX%` in the conda package. (#145) diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 57345be8..537d92e3 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -15,7 +15,8 @@ build: - del /q "{{ SRC_DIR }}\\menuinst\\data\\osx_launcher_*" # [win] - del /q "{{ SRC_DIR }}\\menuinst\\data\\appkit_launcher_*" # [win] - {{ PYTHON }} -m pip install . -vv - - copy "%SRC_DIR%\\cwp.py" "%PREFIX%\\" # [win] + # menuinst v1 expects cwp.py in PREFIX; backwards compat fix + - copy "%SP_DIR%\\menuinst\\_legacy\cwp.py" "%PREFIX%\\" # [win] # entry_points: # - menuinst = menuinst.main:main