You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: package-structure-code/publish-python-package-pypi-conda.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
-
# Publishing Your Package In A Community Repository: PyPI or Anaconda Cloud
1
+
# Publishing Your Package In A Community Repository: PyPI or Anaconda.org
2
2
3
3
<!--todo: add as resource https://docs.conda.io/projects/conda/en/latest/glossary.html -->
4
4
5
5
pyOpenSci requires that your package has an distribution that can be installed
6
6
from a public community repository such as PyPI or a conda channel such as
7
-
`bioconda` or `conda-forge`in the Anaconda cloud.
7
+
`bioconda` or `conda-forge`on Anaconda.org.
8
8
9
9
Below you will learn more about the various publishing options for your Python
10
10
package.
@@ -13,7 +13,7 @@ package.
13
13
14
14
* Installing packages in the same environment using both pip and conda can
15
15
lead to package conflicts.
16
-
* To minimize conflicts for users who may be using conda (or pip) to manage local environments, consider publishing your package to both PyPI and the conda-forge channel of the Anaconda Cloud.
16
+
* To minimize conflicts for users who may be using conda (or pip) to manage local environments, consider publishing your package to both PyPI and the conda-forge channel on Anaconda.org.
17
17
18
18
Below you will learn more specifics about the differences between PyPI and conda publishing of your Python package.
19
19
:::
@@ -57,13 +57,13 @@ your package.
57
57
:::
58
58
59
59
(about-conda)=
60
-
## What is Anaconda Cloud and conda?
60
+
## What is conda and Anaconda.org?
61
61
62
62
conda is an open source package and environment management tool.
63
-
conda can be used to install tools from the [Anaconda Cloud
63
+
conda can be used to install tools from the [Anaconda
64
64
repository](https://repo.anaconda.com/).
65
65
66
-
Anaconda cloud (anaconda.org) contains public and private repositories for
66
+
Anaconda.org contains public and private repositories for
67
67
packages. These repositories are known as channels (discussed below).
68
68
69
69
:::{admonition} A brief history of conda's evolution
@@ -95,12 +95,12 @@ channels. The conda package manager can install packages from different channels
95
95
There are several core public channels that most people use to install
96
96
packages using conda, including:
97
97
98
-
-**defaults:** this is a channel managed by Anaconda. It is the version of the Python packages that you will install if you install the Anaconda Distribution. Anaconda decides what packages live on the default channel.
98
+
-**defaults:** this is a channel managed by Anaconda. It is the version of the Python packages that you will install if you install the Anaconda Distribution. Anaconda (the company) decides what packages live on the `defaults` channel.
99
99
-[**conda-forge:**](https://anaconda.org/conda-forge) this is a community-driven channel that focuses on scientific packages. This channel is ideal for tools that support geospatial data. Anyone can publish a package to this channel.
100
100
-[**bioconda**](https://anaconda.org/bioconda): this channel focuses on biomedical tools.
101
101
102
102
**conda-forge** emerged as many of the scientific packages did not
Copy file name to clipboardExpand all lines: tutorials/get-to-know-hatch.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,13 @@ To open the config file in your file browser, run the following command in your
44
44
45
45
This will open up a directory window that will allow you to double click on the file and open it in your favorite text editor.
46
46
47
+
You can also retrieve the location of the Hatch config file by running the following command in your shell:
48
+
49
+
```bash
50
+
hatch config find
51
+
# hatch config --help will show you all the options for config.
52
+
```
53
+
47
54
### Step 2 - update your email and name
48
55
49
56
Once the file is open, update the [template] table of the `config.toml` file with your name and email. This information will be used in any `pyproject.toml` metadata files that you create using Hatch.
Copy file name to clipboardExpand all lines: tutorials/publish-conda-forge.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,9 +38,9 @@ Once you have published both package distributions (the source distribution and
38
38
## What is conda-forge?
39
39
40
40
conda is an open source package and environment management tool that
41
-
can be used to install tools from the different channels within the Anaconda Cloud repository.
41
+
can be used to install tools from the different channels on Anaconda.org.
42
42
43
-
You can think about a channel as a specific location where a group of packages are stored and can be installed from using a command such as `conda install packagename`. In the case of the Anaconda cloud channels, some of these channels such as the default channel, is managed by Anaconda (the company). Only Anaconda can decide what packages are available in the default channel. However, the conda-forge (and bioconda) channel are community-managed channels.
43
+
You can think about a channel as a specific location where a group of packages are stored and can be installed from using a command such as `conda install packagename`. In the case of conda channels, some of these channels such as the `defaults` channel, is managed by Anaconda (the company). Only Anaconda can decide what packages are available in the `defaults` channel. However, the conda-forge (and bioconda) channel are community-managed channels.
44
44
Anyone can submit a package to these channels however they must pass a technical review in the [staged-recipes GitHub repository](https://github.com/conda-forge/staged-recipes) to be published.
45
45
46
46
[Learn more about conda channels here.](#about-conda)
### <iclass="fa-solid fa-wand-magic-sparkles"></i> Congratulations - you've created your Python package distribution files <iclass="fa-solid fa-wand-magic-sparkles"></i>
@@ -280,8 +280,8 @@ TestPyPI.
280
280
❯ hatch publish -r test
281
281
Enter your username: __token__
282
282
Enter your credentials: <paste-your-token-value-here>
0 commit comments