Skip to content

Commit

Permalink
Move cwp.py to _legacy subpackage (#145)
Browse files Browse the repository at this point in the history
* move cwp.py

* adjust recipe

* minor readme fix

* add news
  • Loading branch information
jaimergp authored Aug 21, 2023
1 parent d60b347 commit fbcec19
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/
File renamed without changes.
20 changes: 20 additions & 0 deletions news/145-move-cwp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
### Enhancements

* <news item>

### Bug fixes

* <news item>

### Deprecations

* <news item>

### Docs

* <news item>

### Other

* Move `cwp.py` from the repository root to `menuinst._legacy` subpackage.
It's still shipped to `%PREFIX%` in the conda package. (#145)
3 changes: 2 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fbcec19

Please sign in to comment.