René's URL Explorer Experiment


Title: Use Hatch environments with your pure Python package — Python Packaging Guide

Open Graph Title: Use Hatch environments with your pure Python package

Description: Welcome to your shiny new package! This page will help you get started with using Hatch to run tests, build and check your package, and build your documentation. To begin, have a look at the pyproj...

Open Graph Description: Welcome to your shiny new package! This page will help you get started with using Hatch to run tests, build and check your package, and build your documentation. To begin, have a look at the pyproj...

Opengraph URL: https://www.pyopensci.org/python-package-guide/tutorials/develop-python-package-hatch.html

direct link

Domain: www.pyopensci.org

og:typewebsite
og:site_namepyOpenSci Python Package Guide
og:image:width1146
og:image:height600
og:imagehttps://www.pyopensci.org/python-package-guide/_images/social_previews/summary_tutorials_develop-python-package-hatch_3257b8b3.png
og:image:altWelcome to your shiny new package! This page will help you get started with using Hatch to run tests, build and check your package, and build your documentation. To begin, have a look at the pyproj...
twitter:cardsummary_large_image
docsearch:languageen

Links:

Skip to main contenthttps://www.pyopensci.org/python-package-guide/tutorials/develop-python-package-hatch.html#main-content
We run peer review of scientific Python software. Learn more.https://www.pyopensci.org/about-peer-review/index.html
https://www.pyopensci.org/python-package-guide/index.html
Tutorials https://www.pyopensci.org/python-package-guide/tutorials/intro.html
Packaging https://www.pyopensci.org/python-package-guide/package-structure-code/intro.html
Documentation https://www.pyopensci.org/python-package-guide/documentation/index.html
Tests https://www.pyopensci.org/python-package-guide/tests/index.html
Maintain https://www.pyopensci.org/python-package-guide/maintain-automate/index.html
pyOpenSci Website https://www.pyopensci.org
Peer Review Guide https://www.pyopensci.org/software-peer-review
Handbook https://pyopensci.org/handbook
GitHubhttps://github.com/pyopensci/python-package-guide
Mastodonhttps://fosstodon.org/@pyOpenSci
Tutorials https://www.pyopensci.org/python-package-guide/tutorials/intro.html
Packaging https://www.pyopensci.org/python-package-guide/package-structure-code/intro.html
Documentation https://www.pyopensci.org/python-package-guide/documentation/index.html
Tests https://www.pyopensci.org/python-package-guide/tests/index.html
Maintain https://www.pyopensci.org/python-package-guide/maintain-automate/index.html
pyOpenSci Website https://www.pyopensci.org
Peer Review Guide https://www.pyopensci.org/software-peer-review
Handbook https://pyopensci.org/handbook
GitHubhttps://github.com/pyopensci/python-package-guide
Mastodonhttps://fosstodon.org/@pyOpenSci
Get to know Hatchhttps://www.pyopensci.org/python-package-guide/tutorials/get-to-know-hatch.html
What is a Python package?https://www.pyopensci.org/python-package-guide/tutorials/intro.html
Create a Python packagehttps://www.pyopensci.org/python-package-guide/tutorials/create-python-package.html
Publish to PyPIhttps://www.pyopensci.org/python-package-guide/tutorials/publish-pypi.html
Publish to conda-forgehttps://www.pyopensci.org/python-package-guide/tutorials/publish-conda-forge.html
Publish using GitHub Actions and Trusted Publishinghttps://www.pyopensci.org/python-package-guide/tutorials/trusted-publishing.html
Develop package (Hatch environments)https://www.pyopensci.org/python-package-guide/tutorials/develop-python-package-hatch.html
Add README filehttps://www.pyopensci.org/python-package-guide/tutorials/add-readme.html
Add a license & code of conducthttps://www.pyopensci.org/python-package-guide/tutorials/add-license-coc.html
Update metadata in pyproject.tomlhttps://www.pyopensci.org/python-package-guide/tutorials/pyproject-toml.html
Command Line Reference Guidehttps://www.pyopensci.org/python-package-guide/tutorials/command-line-reference.html
Migrate setup.py to a pyproject.toml using Hatchhttps://www.pyopensci.org/python-package-guide/tutorials/setup-py-to-pyproject-toml.html
https://www.pyopensci.org/python-package-guide/index.html
Python packaging 101https://www.pyopensci.org/python-package-guide/tutorials/intro.html
#https://www.pyopensci.org/python-package-guide/tutorials/develop-python-package-hatch.html#use-hatch-environments-with-your-pure-python-package
In a previous lessonhttps://www.pyopensci.org/python-package-guide/tutorials/create-python-package.html#create-pure-python-package
Hatch installedhttps://www.pyopensci.org/python-package-guide/tutorials/get-to-know-hatch.html
Carpentries shell lessonhttps://swcarpentry.github.io/shell-novice/
GitBashhttps://gitforwindows.org/
You can learn more about toml here.https://www.pyopensci.org/python-package-guide/package-structure-code/pyproject-toml-python-package-metadata.html
#https://www.pyopensci.org/python-package-guide/tutorials/develop-python-package-hatch.html#using-hatch-for-developing-building-and-maintaining-your-pure-python-package
hatch environmenthttps://hatch.pypa.io/1.13/environment/
Read the hatch documentation to learn more about environments. https://hatch.pypa.io/1.13/tutorials/environment/basic-usage/
#https://www.pyopensci.org/python-package-guide/tutorials/develop-python-package-hatch.html#a-hatch-environment-to-build-your-package
new project’s pyproject.toml filehttps://www.pyopensci.org/python-package-guide/tutorials/create-python-package.html
build your package’shttps://www.pyopensci.org/python-package-guide/package-structure-code/python-package-distribution-files-sdist-wheel.html#build-package
source distributionhttps://www.pyopensci.org/python-package-guide/package-structure-code/python-package-distribution-files-sdist-wheel.html#python-source-distribution
wheelhttps://www.pyopensci.org/python-package-guide/package-structure-code/python-package-distribution-files-sdist-wheel.html#python-wheel
#https://www.pyopensci.org/python-package-guide/tutorials/develop-python-package-hatch.html#hatch-scripts
#https://www.pyopensci.org/python-package-guide/tutorials/develop-python-package-hatch.html#running-the-build-script
#https://www.pyopensci.org/python-package-guide/tutorials/develop-python-package-hatch.html#hatch-testing-and-matrix-environments
#https://www.pyopensci.org/python-package-guide/tutorials/develop-python-package-hatch.html#your-test-environment-has-a-matrix-associated-with-it
using UVhttps://docs.astral.sh/uv/guides/install-python/
#https://www.pyopensci.org/python-package-guide/tutorials/develop-python-package-hatch.html#hatch-scripts-for-tests
#https://www.pyopensci.org/python-package-guide/tutorials/develop-python-package-hatch.html#build-your-documentation-with-hatch-environments
previous Setup Trusted Publishing for secure and automated publishing via GitHub Actions https://www.pyopensci.org/python-package-guide/tutorials/trusted-publishing.html
next Add a README file to your Python package https://www.pyopensci.org/python-package-guide/tutorials/add-readme.html
Using Hatch for developing, building, and maintaining your pure Python packagehttps://www.pyopensci.org/python-package-guide/tutorials/develop-python-package-hatch.html#using-hatch-for-developing-building-and-maintaining-your-pure-python-package
A Hatch environment to build your packagehttps://www.pyopensci.org/python-package-guide/tutorials/develop-python-package-hatch.html#a-hatch-environment-to-build-your-package
Hatch scriptshttps://www.pyopensci.org/python-package-guide/tutorials/develop-python-package-hatch.html#hatch-scripts
Running the build scripthttps://www.pyopensci.org/python-package-guide/tutorials/develop-python-package-hatch.html#running-the-build-script
Hatch, testing, and matrix environmentshttps://www.pyopensci.org/python-package-guide/tutorials/develop-python-package-hatch.html#hatch-testing-and-matrix-environments
Your test environment has a matrix associated with ithttps://www.pyopensci.org/python-package-guide/tutorials/develop-python-package-hatch.html#your-test-environment-has-a-matrix-associated-with-it
Hatch scripts for testshttps://www.pyopensci.org/python-package-guide/tutorials/develop-python-package-hatch.html#hatch-scripts-for-tests
Build your documentation with Hatch environmentshttps://www.pyopensci.org/python-package-guide/tutorials/develop-python-package-hatch.html#build-your-documentation-with-hatch-environments
Edit on GitHub https://github.com/pyopensci/python-package-guide/edit/main/tutorials/develop-python-package-hatch.md
Show Sourcehttps://www.pyopensci.org/python-package-guide/_sources/tutorials/develop-python-package-hatch.md.txt
Code of Conducthttps://www.pyopensci.org/handbook/CODE_OF_CONDUCT.html

Viewport: width=device-width, initial-scale=1


URLs of crawlers that visited me.