|
1 | 1 | # Make your Python package PyPI ready - pyproject.toml
|
2 | 2 |
|
3 |
| -In [the installable code lesson](2-installable-code), you learned how to add the bare minimum information to a `pyproject.toml` file to make it installable. You then learned how to [publish that bare minimum version of your package to PyPI](publish-pypi.md). |
| 3 | +In [the installable code lesson](1-installable-code), you learned how to add the bare minimum information to a `pyproject.toml` file to make it installable. You then learned how to [publish that bare minimum version of your package to PyPI](publish-pypi.md). |
4 | 4 |
|
5 | 5 | Following that you learned how to add a:
|
6 | 6 | * [README.md](add-readme)
|
@@ -78,7 +78,7 @@ build-backend = "hatchling.build"
|
78 | 78 |
|
79 | 79 | The pyproject.toml file tells your build tool:
|
80 | 80 |
|
81 |
| -- What build backend to use to build your package (we are using `hatchling` in this tutorial but there are [many others to chose from](build-backend-options)). |
| 81 | +- What build backend to use to build your package (we are using `hatchling` in this tutorial but there are [many others to chose from](/package-structure-code/python-package-build-tools)). |
82 | 82 | - How and where to retrieve your package's version:
|
83 | 83 | - **statically** where you declare the version `version = "0.1.0"` or
|
84 | 84 | - **dynamically** where the tool looks to the most recent tag in your history to determine the current version.
|
@@ -280,7 +280,7 @@ You can declare a lower bound using syntax like this:
|
280 | 280 | Note that unless you are building an application, you want to be cautious about pinning dependencies. This is because
|
281 | 281 | users will be installing your package into various environments. A pinned dependency can make resolving an environment more challenging to resolve. As such only pin dependencies to a specific version or bound if you absolutely need to do so.
|
282 | 282 |
|
283 |
| -One build tool that you should be aware of that pins dependencies by default is Poetry. [Read more about how to safely add dependencies with Poetry, here.](../package-structure-code/python-package-build-tools.html#challenges-with-poetry) |
| 283 | +One build tool that you should be aware of that pins dependencies by default is Poetry. [Read more about how to safely add dependencies with Poetry, here.](/package-structure-code/python-package-build-tools.html#challenges-with-poetry) |
284 | 284 | :::
|
285 | 285 |
|
286 | 286 | ### Requires-python
|
@@ -318,6 +318,7 @@ classifiers = [
|
318 | 318 | "Programming Language :: Python :: 3 :: Only",
|
319 | 319 | "Programming Language :: Python :: 3.10",
|
320 | 320 | "Programming Language :: Python :: 3.11",
|
| 321 | +] |
321 | 322 |
|
322 | 323 | dependencies = ["ruamel-yaml>=0.17.21", "requests", "python-dotenv", "pydantic"]
|
323 | 324 |
|
@@ -457,7 +458,7 @@ dependencies = ["xarray", "requests"]
|
457 | 458 | # This is the metadata that pip reads to understand what versions your package supports
|
458 | 459 | requires-python = ">=3.10"
|
459 | 460 | readme = "README.md"
|
460 |
| -license = { FILE = LICENSE } |
| 461 | +license = { FILE = "LICENSE" } |
461 | 462 |
|
462 | 463 | # Add urls for your home page, issue tracker and source code
|
463 | 464 | [project.urls] # Optional
|
|
0 commit comments