Skip to content
Merged
Changes from 9 commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
5672f6e
Standardize names in the conda ecosystem
jaimergp Mar 11, 2025
b91b868
Add versions and categorise a bit better
jaimergp Mar 11, 2025
64584b5
Descope versions, fix build strings
jaimergp Mar 12, 2025
563d9f4
Update cep-9999.md
jaimergp Mar 12, 2025
8d85088
Amend package names
jaimergp Mar 12, 2025
3df5157
do not recommend whitespace in labels
jaimergp Mar 12, 2025
732cf77
add backwards compatibility section
jaimergp Mar 12, 2025
ff68855
Merge branch 'main' into naming
beckermr Mar 12, 2025
e1c043f
Apply suggestions from code review
jaimergp Mar 12, 2025
90c4867
Add length limits
jaimergp Mar 12, 2025
1b9f46b
label -> channel
jaimergp Mar 12, 2025
809aa05
Define what a channel is
jaimergp Mar 12, 2025
cb227fc
Restrict subdirs to alphanumeric and single dash separators
jaimergp Mar 13, 2025
bcd3e31
Update cep-9999.md
beckermr Mar 14, 2025
b2d733a
Allow plus symbols in build strings
jaimergp Mar 14, 2025
3a09b36
Merge branch 'naming' of github.com:jaimergp/ceps into naming
jaimergp Mar 14, 2025
10c9265
Further restrict subdirs
jaimergp Mar 18, 2025
358b48f
rename
jaimergp Mar 18, 2025
dd0a28d
Rework channel names as base URLs
jaimergp Mar 18, 2025
8f2221b
Merge branch 'main' of github.com:conda/ceps into naming
jaimergp Mar 18, 2025
1185921
pre-commit
jaimergp Mar 18, 2025
5e3c86c
add lang to fences
jaimergp Mar 18, 2025
567ff85
add stats from anaconda.org
jaimergp Mar 19, 2025
4b3a39e
pre-commit
jaimergp Mar 19, 2025
e81f84f
add discussion link
jaimergp Mar 19, 2025
b07d334
Reword abstract
jaimergp Mar 19, 2025
42c33dd
Refer to RFC2119
jaimergp Mar 19, 2025
c2b25a6
Change table of contents a bit
jaimergp Mar 19, 2025
88d58dc
Add distribution strings
jaimergp Mar 19, 2025
501bfc1
clarify dist str != match spec
jaimergp Mar 19, 2025
ba6b09f
clarify scheme omission
jaimergp Mar 19, 2025
e9e6c06
Update cep-XXXX.md
jaimergp Mar 19, 2025
e79f5bf
pre-commit
jaimergp Mar 19, 2025
73c8607
Update cep-XXXX.md
beckermr Mar 19, 2025
a59522f
update path component regex
jaimergp Mar 19, 2025
a6c119a
Merge branch 'main' into naming
beckermr Mar 19, 2025
c473235
refine lengths
jaimergp Mar 29, 2025
5291902
add extensions
jaimergp Mar 29, 2025
d93720b
Merge branch 'main' into naming
beckermr Mar 30, 2025
a54e326
Reformat CEP document for readability
beckermr Mar 30, 2025
3961b88
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 30, 2025
9686874
Add additional references to comments in CEP
beckermr Mar 30, 2025
21a8e3a
style: correct spacing
beckermr Mar 30, 2025
8b6e3c3
update date
jaimergp Mar 30, 2025
913279e
Update cep-XXXX.md
beckermr Apr 1, 2025
f2d5480
add cheng to authors
jaimergp Apr 1, 2025
1a70702
add exception for file:// channels
jaimergp Apr 1, 2025
3793b1d
reword channel names
jaimergp Apr 1, 2025
14aae11
Merge branch 'naming' of github.com:jaimergp/ceps into naming
jaimergp Apr 1, 2025
3f7c94f
Update cep-XXXX.md
beckermr Apr 1, 2025
80a1225
bye \s
jaimergp Apr 1, 2025
162c57c
Merge branch 'naming' of github.com:jaimergp/ceps into naming
jaimergp Apr 1, 2025
4737ce9
Apply suggestions from code review
jaimergp Apr 2, 2025
de486d2
Swap dist str and filenames
jaimergp Apr 2, 2025
de7a36f
wrap paragraphs
jaimergp Apr 2, 2025
15bcd90
Apply suggestions from code review
beckermr Apr 2, 2025
e9afe15
Reword channel name use in absence of scheme and authority
jaimergp Apr 3, 2025
7eb2fbc
update date
jaimergp Apr 3, 2025
74f7156
Update cep-XXXX.md
jaimergp Apr 4, 2025
897a9a2
clarify subdir
jaimergp Apr 4, 2025
bcf6112
add restriction about channel names and label names wrt subdirs
jaimergp Apr 14, 2025
7ae6b5b
Recommend against subdir ambiguity
jaimergp Apr 15, 2025
858fb6f
Merge branch 'main' into naming
beckermr Apr 15, 2025
a9d809d
Update cep-XXXX.md
beckermr Apr 15, 2025
edfbe6e
Fix line breaks in channel base URL section
beckermr Apr 16, 2025
9f824e7
add note about __anaconda_core_depends deprecation
jaimergp Apr 17, 2025
f629100
Merge branch 'main' of github.com:conda/ceps into naming
jaimergp May 7, 2025
0794754
Mint as CEP 26
jaimergp May 7, 2025
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
80 changes: 80 additions & 0 deletions cep-9999.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# CEP ???? - Names in conda packages and channels

<table>
<tr><td> Title </td><td> CEP ???? - Names in conda packages and channels </td>
<tr><td> Status </td><td> Draft </td></tr>
<tr><td> Author(s) </td><td> Jaime Rodríguez-Guerra &lt;jaime.rogue@gmail.com&gt; <br /> Matthew R. Becker &lt;becker.mr@gmail.com&gt;</td></tr>
<tr><td> Created </td><td> Mar 11, 2025</td></tr>
<tr><td> Updated </td><td> Mar 11, 2025</td></tr>
<tr><td> Discussion </td><td> N/A </td></tr>
<tr><td> Implementation </td><td> N/A </td></tr>
</table>

## Abstract

This CEP aims to standardize names and other strings used throughout the conda ecosystem.

## Specification

### Artifacts

The conda ecosystem distinguishes between two types of packages:

- Distributable package names: represented by a concrete, downloadable, extractable conda artifact.
- Virtual package names: not backed by any physical artifact. They only exist on the client side.

### Package names

A distributable package name MUST only consist of lowercase ASCII letters, numbers, hyphens, periods and underscores. It MUST start with a letter, a number, or a single underscore. It MUST NOT include two consecutive separators (hyphen, period, underscore).

Virtual package names MUST only consist of lowercase ASCII letters, numbers, hyphens, periods and underscores. They MUST NOT use two consecutive separators, with one exception: they MUST start with two underscores.

This means that distributable package names MUST match the following case-insensitive regex: `^(([a-z0-9])|([a-z0-9_](?!_)))[._-]?([a-z0-9]+(\.|-|_|$))*$`.
Comment thread
beckermr marked this conversation as resolved.
Outdated

Virtual package names MUST follow this other regex: `^__[a-z0-9][._-]?([a-z0-9]+(\.|-|_|$))*$`.

### Version strings

Version strings MUST only consist of digits, periods, lowercase ASCII letters, underscores, plus
signs and exclamation marks. Additional rules apply but are out of scope in this CEP and will be
discussed separately.

### Build strings

Builds strings MUST only consist of ASCII letters, numbers, periods, and underscores. They MUST match this regex `^[a-zA-Z0-9_\.]+$`.
Comment thread
beckermr marked this conversation as resolved.
Outdated

### Filenames

Regular conda artifacts MUST be named following this scheme:

```
<package name>-<version string>-<build string>.<extension>
```

Virtual conda packages SHOULD NOT need filename standardization.
Comment thread
beckermr marked this conversation as resolved.
Outdated

### Channels

#### Channel names

Channel names MUST only consist of lowercase ASCII letters, numbers, hyphens, periods and underscores. They MUST start and end with a letter or a digit. In other words, they MUST match this regex: `^[a-z0-9]+((-|_|.)[a-z0-9]+)*$`.
Comment thread
jaimergp marked this conversation as resolved.
Outdated

#### Label names

Channel label names MUST only consist of ASCII letters, digits, underscores, hyphens, forward slashes, periods, colons and whitespace. They MUST start with a letter. They MUST match this regex: `^[a-zA-Z][0-9a-zA-Z_\-\.\/:\s]*`. Even if allowed, label names SHOULD NOT contain any whitespace.

The label `NOLABEL` is reserved and MUST only be used for conda packages which have no other labels. In other words, in the space of labels, the empty set is represented by the label `NOLABEL`.
Comment thread
beckermr marked this conversation as resolved.
Outdated

#### Subdir names

Platform or subdir names MUST only consist of lowercase ASCII letters, numbers, hyphens, underscores and periods. They MUST start and end with a letter or a number. They MUST match this regex: `^[a-z0-9]+((-|_|.)[a-z0-9]+)*$`.

## Backwards compatibility

The conda channel, subdir, label, and package name regexes are backwards compatible with the current `conda` implementation (25.3) and all existing packages on the `defaults` and `conda-forge` channels, except the `__anaconda_core_depends` package on the `defaults` channel.

The regex for labels above was pulled from an anaconda.org error message describing the set of valid labels. Finally, anaconda.org usernames/channel names are case insensitive and cannot begin with an underscore.

## Copyright

All CEPs are explicitly [CC0 1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/).