8000 Add a section on different package managers by yakutovicha · Pull Request #238 · empa-scientific-it/python-tutorial · GitHub
[go: up one dir, main page]

Skip to content

Add a section on different package managers #238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 8, 2024
Merged
Changes from all commits
Commits
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
33 changes: 27 additions & 6 deletions manage_python_project.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
" - [Changelog](#Changelog)\n",
" - [CHANGELOG.md](#CHANGELOG.md)\n",
" - [GitHub releases](#GitHub-releases)\n",
" - [Package managers](#Package-managers)\n",
" - [Automate things](#Automate-things)\n",
" - [Testing](#Testing)\n",
" - [Exercise on testing automation](#Exercise-on-testing-automation)\n",
Expand Down Expand Up @@ -1495,6 +1496,26 @@
"cell_type": "markdown",
"id": "61",
"metadata": {},
"source": [
"## Package managers\n",
"\n",
"There are several package managers that can be used to release the package on PyPI.\n",
"In this tutorial, we have used [`flit`](https://flit.pypa.io/).\n",
"However, there are other package managers that can be used, such as [`setuptools`](https://setuptools.pypa.io/), [`poetry`](https://python-poetry.org/), [`hatch`](https://hatch.pypa.io/), etc.\n",
"\n",
"In this tutorial we will not go into the details of the package managers, as they are well documented.\n",
"We also don't want to start a flame war on which package manager is the best and why.\n",
"The choice is essentially up to the developers.\n",
"One can always switch between managers if the current one does not satisfy the needs.\n",
"\n",
"\n",
"If you want to deep dive into the topic, we recommend looking at the [Python Packaging User Guide](https://packaging.python.org/)."
]
},
{
"cell_type": "markdown",
"id": "62",
"metadata": {},
"source": [
"# Automate things\n",
"\n",
Expand All @@ -1508,7 +1529,7 @@
},
{
"cell_type": "markdown",
"id": "62",
"id": "63",
"metadata": {},
"source": [
"## Testing\n",
Expand Down Expand Up @@ -1560,7 +1581,7 @@
},
{
"cell_type": "markdown",
"id": "63",
"id": "64",
"metadata": {},
"source": [
"## Exercise on testing automation\n",
Expand All @@ -1571,7 +1592,7 @@
},
{
"cell_type": "markdown",
"id": "64",
"id": "65",
"metadata": {},
"source": [
"## Version update\n",
Expand Down Expand Up @@ -1625,7 +1646,7 @@
},
{
"cell_type": "markdown",
"id": "65",
"id": "66",
"metadata": {},
"source": [
"## Exercise on version update automation\n",
Expand All @@ -1637,7 +1658,7 @@
},
{
"cell_type": "markdown",
"id": "66",
"id": "67",
"metadata": {},
"source": [
"## Releasing\n",
Expand Down Expand Up @@ -1731,7 +1752,7 @@
},
{
"cell_type": "markdown",
"id": "67",
"id": "68",
"metadata": {},
"source": [
"## Exercises on releasing automation\n",
Expand Down
0