Renaming packages (CEP from conda wiki)
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- yaml
- Domain
- build-system, tooling
Research direction
Review the CEP's proposed build.end_of_life metadata in meta.yaml and trace where conda and conda-build parse package metadata and create environments. Identify the relevant tests or entry points before deciding scope; done means the metadata is supported and warnings appear during installation and conda-build environment creation.
Written by the indexing model from the issue text.
Description
Note: This was taken from the conda wiki before it was deleted.
| CEP 2 | Renaming packages |
|---|---|
| Authors | Michael Sarahan |
| Status | WIP |
| Discussion | #TODO |
| Implementation |
In transitioning to Conda-forge recipes for the Anaconda distribution, we have needed to resolve several package name differences between the conda-forge and defaults channels. There are instances of old defaults names being replaced by conda-forge names, and also instances of conda-forge names being replaced by defaults names.
Maintaining connections:
Generally, it is sufficient to use metapackages to point from one package name to another. For example, conda-forge uses the boost-cpp name for the boost package, while defaults prefers libboost. The defaults recipe can provide both in one recipe with the {{ pin_subpackage() }} jinja2 function:
outputs:
- name: libboost
script: install-libboost.sh # [unix]
script: install-libboost.bat # [win]
requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
host:
- icu # [unix]
- bzip2 # [unix]
- zlib
# Metapackages to mirror conda-forge's name. It is my goal to deprecate
# these names and eventually stop providing the packages.
# TODO :: Aim to remove these by Oct 10th 2018.
- name: boost-cpp
requirements:
run:
- {{ pin_subpackage('libboost', exact=True) }}
Removing metapackages
This CEP is more about what to do after that, though. From the boost example above, Ray left a comment that he'd like to stop providing the boost-cpp metapackage by Oct 10th 2018. Out of concern for reducing workload and freeing up old names that may be desirable, we need a way to deprecate package names, and communicate to people that packages may either go away or change behavior in the future. If they have pins to old versions, they'll be fine. If they are not pinned, their installations or builds may break.
Proposal:
Add new metadata in meta.yaml:
build:
end_of_life:
date: YYYY-MM-DD
reason: split into devel and lib packages; users should choose appropriately
alternate_packages:
- somepkg-devel
- libsomepkg
Teach conda about that metadata, and have it show warnings when it is installing a package marked with end_of_life. These warnings should also show up when conda-build is using conda to create environments.
as a general rule, provide 12 months from the date of adding end_of_life metadata until actually replacing that package with something that has different functionality.
- Dominant language
- No language data
- Stars
- 35
- Forks
- 43
- Avg merge
- 2h 11m
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from conda/ceps
-
Difficulty 2/5 1-3 hours Newbie friendliness 54/100
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
Difficulty 3/5 Half a day Newbie friendliness 28/100
-
Difficulty 5/5 Over a week Newbie friendliness 32/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NucleusFramework/Nucleus#1020 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 2 days
-
[Bug]: pip install -U cudaq-qec fails with a conflict that names cudaq-qec itselfPossibly taken @fedonman claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
[bug] --affected remote with --base and --head finds no changes when the head is behind the baseOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
ardia-browser/ardia#6391 ·
Maintainers usually reply within 1 day