mirror of https://github.com/pypa/hatch.git
59 lines
68 KiB
HTML
59 lines
68 KiB
HTML
<!DOCTYPE html><html class=no-js lang=en> <head><meta charset=utf-8><meta content="width=device-width,initial-scale=1" name=viewport><meta content="Modern, extensible Python project management" name=description><meta content="Ofek Lev" name=author><link href=https://hatch.pypa.io/latest/1.6/config/dependency/ rel=canonical><link href=../../assets/images/logo.svg rel=icon><meta content="mkdocs-1.4.2, mkdocs-material-8.5.6+insiders-4.25.2" name=generator><title>Dependencies - Hatch</title><link href=../../assets/stylesheets/main.fa1d38d9.min.css rel=stylesheet><link href=../../assets/stylesheets/palette.cbb835fc.min.css rel=stylesheet><link crossorigin href=https://fonts.gstatic.com rel=preconnect><link href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback" rel=stylesheet><style>:root{--md-text-font:"Roboto";--md-code-font:"Roboto Mono"}</style><link href=../../assets/_mkdocstrings.css rel=stylesheet><link href=../../assets/css/custom.css rel=stylesheet><link href=https://cdn.jsdelivr.net/gh/tonsky/FiraCode@5.2/distr/fira_code.css rel=stylesheet><script>__md_scope=new URL("../..",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script><link href=../../assets/stylesheets/glightbox.min.css rel=stylesheet><style>
|
|
html.glightbox-open { overflow: initial; height: 100%; }
|
|
.gslide-title { margin-top: 0px; user-select: text; }
|
|
.gslide-desc { color: #666; user-select: text; }
|
|
.gslide-image img { background: white; }
|
|
|
|
.gscrollbar-fixer { padding-right: 15px; }
|
|
.gdesc-inner { font-size: 0.75rem; }
|
|
body[data-md-color-scheme="slate"] .gdesc-inner { background: var(--md-default-bg-color);}
|
|
body[data-md-color-scheme="slate"] .gslide-title { color: var(--md-default-fg-color);}
|
|
body[data-md-color-scheme="slate"] .gslide-desc { color: var(--md-default-fg-color);}
|
|
</style><script src=../../assets/javascripts/glightbox.min.js></script></head> <body data-md-color-accent=indigo data-md-color-primary=indigo data-md-color-scheme=slate dir=ltr> <input autocomplete=off class=md-toggle data-md-toggle=drawer id=__drawer type=checkbox> <input autocomplete=off class=md-toggle data-md-toggle=search id=__search type=checkbox> <label class=md-overlay for=__drawer></label> <div data-md-component=skip> <a class=md-skip href=#dependency-configuration> Skip to content </a> </div> <div data-md-component=announce> </div> <div data-md-component=outdated hidden> </div> <header class="md-header md-header--lifted" data-md-component=header> <nav aria-label=Header class="md-header__inner md-grid"> <a aria-label=Hatch class="md-header__button md-logo" data-md-component=logo href=../.. title=Hatch> <svg viewbox="0 0 24 24" xmlns=http://www.w3.org/2000/svg><path d="M19.5 14.5A7.5 7.5 0 0 1 12 22a7.5 7.5 0 0 1-7.5-7.5C4.5 10.36 7.86 2 12 2c4.14 0 7.5 8.36 7.5 12.5Z"></path></svg> </a> <label class="md-header__button md-icon" for=__drawer> <svg viewbox="0 0 24 24" xmlns=http://www.w3.org/2000/svg><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2Z"></path></svg> </label> <div class=md-header__title data-md-component=header-title> <div class=md-header__ellipsis> <div class=md-header__topic> <span class=md-ellipsis> Hatch </span> </div> <div class=md-header__topic data-md-component=header-topic> <span class=md-ellipsis> Dependencies </span> </div> </div> </div> <form class=md-header__option data-md-component=palette> <input aria-label="Switch to light mode" class=md-option data-md-color-accent=indigo data-md-color-media="(prefers-color-scheme: dark)" data-md-color-primary=indigo data-md-color-scheme=slate id=__palette_0 name=__palette type=radio> <label class="md-header__button md-icon" for=__palette_1 hidden title="Switch to light mode"> <svg viewbox="0 0 24 24" xmlns=http://www.w3.org/2000/svg><path d="m17.75 4.09-2.53 1.94.91 3.06-2.63-1.81-2.63 1.81.91-3.06-2.53-1.94L12.44 4l1.06-3 1.06 3 3.19.09m3.5 6.91-1.64 1.25.59 1.98-1.7-1.17-1.7 1.17.59-1.98L15.75 11l2.06-.05L18.5 9l.69 1.95 2.06.05m-2.28 4.95c.83-.08 1.72 1.1 1.19 1.85-.32.45-.66.87-1.08 1.27C15.17 23 8.84 23 4.94 19.07c-3.91-3.9-3.91-10.24 0-14.14.4-.4.82-.76 1.27-1.08.75-.53 1.93.36 1.85 1.19-.27 2.86.69 5.83 2.89 8.02a9.96 9.96 0 0 0 8.02 2.89m-1.64 2.02a12.08 12.08 0 0 1-7.8-3.47c-2.17-2.19-3.33-5-3.49-7.82-2.81 3.14-2.7 7.96.31 10.98 3.02 3.01 7.84 3.12 10.98.31Z"></path></svg> </label> <input aria-label="Switch to dark mode" class=md-option data-md-color-accent=indigo data-md-color-media="(prefers-color-scheme: light)" data-md-color-primary=indigo data-md-color-scheme=default id=__palette_1 name=__palette type=radio> <label class="md-header__button md-icon" for=__palette_0 hidden title="Switch to dark mode"> <svg viewbox="0 0 24 24" xmlns=http://www.w3.org/2000/svg><path d="M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3m0-7 2.39 3.42C13.65 5.15 12.84 5 12 5c-.84 0-1.65.15-2.39.42L12 2M3.34 7l4.16-.35A7.2 7.2 0 0 0 5.94 8.5c-.44.74-.69 1.5-.83 2.29L3.34 7m.02 10 1.76-3.77a7.131 7.131 0 0 0 2.38 4.14L3.36 17M20.65 7l-1.77 3.79a7.023 7.023 0 0 0-2.38-4.15l4.15.36m-.01 10-4.14.36c.59-.51 1.12-1.14 1.54-1.86.42-.73.69-1.5.83-2.29L20.64 17M12 22l-2.41-3.44c.74.27 1.55.44 2.41.44.82 0 1.63-.17 2.37-.44L12 22Z"></path></svg> </label> </form> <script>var media,input,key,value,palette=__md_get("__palette");if(palette&&palette.color){"(prefers-color-scheme)"===palette.color.media&&(media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']"),palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent"));for([key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script> <label class="md-header__button md-icon" for=__search> <svg viewbox="0 0 24 24" xmlns=http://www.w3.org/2000/svg><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"></path></svg> </label> <div class=md-search data-md-component=search role=dialog> <label class=md-search__overlay for=__search></label> <div class=md-search__inner role=search> <form class=md-search__form name=search> <input aria-label=Search autocapitalize=off autocomplete=off autocorrect=off class=md-search__input data-md-component=search-query name=query placeholder=Search required spellcheck=false type=text> <label class="md-search__icon md-icon" for=__search> <svg viewbox="0 0 24 24" xmlns=http://www.w3.org/2000/svg><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"></path></svg> <svg viewbox="0 0 24 24" xmlns=http://www.w3.org/2000/svg><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"></path></svg> </label> <nav aria-label=Search class=md-search__options> <button aria-label=Clear class="md-search__icon md-icon" tabindex=-1 title=Clear type=reset> <svg viewbox="0 0 24 24" xmlns=http://www.w3.org/2000/svg><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"></path></svg> </button> </nav> </form> <div class=md-search__output> <div class=md-search__scrollwrap data-md-scrollfix> <div class=md-search-result data-md-component=search-result> <div class=md-search-result__meta> Initializing search </div> <ol class=md-search-result__list></ol> </div> </div> </div> </div> </div> <div class=md-header__source> <a class=md-source data-md-component=source href=https://github.com/pypa/hatch title="Go to repository"> <div class="md-source__icon md-icon"> <svg viewbox="0 0 480 512" xmlns=http://www.w3.org/2000/svg><!-- Font Awesome Free 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc.--><path d="M186.1 328.7c0 20.9-10.9 55.1-36.7 55.1s-36.7-34.2-36.7-55.1 10.9-55.1 36.7-55.1 36.7 34.2 36.7 55.1zM480 278.2c0 31.9-3.2 65.7-17.5 95-37.9 76.6-142.1 74.8-216.7 74.8-75.8 0-186.2 2.7-225.6-74.8-14.6-29-20.2-63.1-20.2-95 0-41.9 13.9-81.5 41.5-113.6-5.2-15.8-7.7-32.4-7.7-48.8 0-21.5 4.9-32.3 14.6-51.8 45.3 0 74.3 9 108.8 36 29-6.9 58.8-10 88.7-10 27 0 54.2 2.9 80.4 9.2 34-26.7 63-35.2 107.8-35.2 9.8 19.5 14.6 30.3 14.6 51.8 0 16.4-2.6 32.7-7.7 48.2 27.5 32.4 39 72.3 39 114.2zm-64.3 50.5c0-43.9-26.7-82.6-73.5-82.6-18.9 0-37 3.4-56 6-14.9 2.3-29.8 3.2-45.1 3.2-15.2 0-30.1-.9-45.1-3.2-18.7-2.6-37-6-56-6-46.8 0-73.5 38.7-73.5 82.6 0 87.8 80.4 101.3 150.4 101.3h48.2c70.3 0 150.6-13.4 150.6-101.3zm-82.6-55.1c-25.8 0-36.7 34.2-36.7 55.1s10.9 55.1 36.7 55.1 36.7-34.2 36.7-55.1-10.9-55.1-36.7-55.1z"></path></svg> </div> <div class=md-source__repository> pypa/hatch </div> </a> </div> </nav> <nav aria-label=Tabs class=md-tabs data-md-component=tabs> <div class="md-tabs__inner md-grid"> <ul class=md-tabs__list> <li class=md-tabs__item> <a class=md-tabs__link href=../..> Home </a> </li> <li class=md-tabs__item> <a href=../metadata/ class="md-tabs__link md-tabs__link--active"> Configuration </a> </li> <li class=md-tabs__item> <a href=../../cli/about/ class=md-tabs__link> CLI </a> </li> <li class=md-tabs__item> <a href=../../plugins/about/ class=md-tabs__link> Plugins </a> </li> <li class=md-tabs__item> <a href=../../how-to/environment/package-indices/ class=md-tabs__link> How-to </a> </li> <li class=md-tabs__item> <a href=../../meta/faq/ class=md-tabs__link> Meta </a> </li> <li class=md-tabs__item> <a href=../../blog/ class=md-tabs__link> Blog </a> </li> </ul> </div> </nav> </header> <div class=md-container data-md-component=container> <main class=md-main data-md-component=main> <div class="md-main__inner md-grid"> <div class="md-sidebar md-sidebar--primary" data-md-component=sidebar data-md-type=navigation> <div class=md-sidebar__scrollwrap> <div class=md-sidebar__inner> <nav aria-label=Navigation class="md-nav md-nav--primary md-nav--lifted" data-md-level=0> <label class=md-nav__title for=__drawer> <a aria-label=Hatch class="md-nav__button md-logo" data-md-component=logo href=../.. title=Hatch> <svg viewbox="0 0 24 24" xmlns=http://www.w3.org/2000/svg><path d="M19.5 14.5A7.5 7.5 0 0 1 12 22a7.5 7.5 0 0 1-7.5-7.5C4.5 10.36 7.86 2 12 2c4.14 0 7.5 8.36 7.5 12.5Z"></path></svg> </a> Hatch </label> <div class=md-nav__source> <a class=md-source data-md-component=source href=https://github.com/pypa/hatch title="Go to repository"> <div class="md-source__icon md-icon"> <svg viewbox="0 0 480 512" xmlns=http://www.w3.org/2000/svg><!-- Font Awesome Free 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc.--><path d="M186.1 328.7c0 20.9-10.9 55.1-36.7 55.1s-36.7-34.2-36.7-55.1 10.9-55.1 36.7-55.1 36.7 34.2 36.7 55.1zM480 278.2c0 31.9-3.2 65.7-17.5 95-37.9 76.6-142.1 74.8-216.7 74.8-75.8 0-186.2 2.7-225.6-74.8-14.6-29-20.2-63.1-20.2-95 0-41.9 13.9-81.5 41.5-113.6-5.2-15.8-7.7-32.4-7.7-48.8 0-21.5 4.9-32.3 14.6-51.8 45.3 0 74.3 9 108.8 36 29-6.9 58.8-10 88.7-10 27 0 54.2 2.9 80.4 9.2 34-26.7 63-35.2 107.8-35.2 9.8 19.5 14.6 30.3 14.6 51.8 0 16.4-2.6 32.7-7.7 48.2 27.5 32.4 39 72.3 39 114.2zm-64.3 50.5c0-43.9-26.7-82.6-73.5-82.6-18.9 0-37 3.4-56 6-14.9 2.3-29.8 3.2-45.1 3.2-15.2 0-30.1-.9-45.1-3.2-18.7-2.6-37-6-56-6-46.8 0-73.5 38.7-73.5 82.6 0 87.8 80.4 101.3 150.4 101.3h48.2c70.3 0 150.6-13.4 150.6-101.3zm-82.6-55.1c-25.8 0-36.7 34.2-36.7 55.1s10.9 55.1 36.7 55.1 36.7-34.2 36.7-55.1-10.9-55.1-36.7-55.1z"></path></svg> </div> <div class=md-source__repository> pypa/hatch </div> </a> </div> <ul class=md-nav__list data-md-scrollfix> <li class="md-nav__item md-nav__item--nested"> <input checked class="md-nav__toggle md-toggle md-toggle--indeterminate" data-md-toggle=__nav_1 id=__nav_1 type=checkbox> <label class=md-nav__link for=__nav_1> <span class=md-ellipsis> Home </span> <span class="md-nav__icon md-icon"></span> </label> <nav aria-label=Home class=md-nav data-md-level=1> <label class=md-nav__title for=__nav_1> <span class="md-nav__icon md-icon"></span> Home </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a class=md-nav__link href=../..> <span class=md-ellipsis> About </span> </a> </li> <li class=md-nav__item> <a href=../../install/ class=md-nav__link> <span class=md-ellipsis> Installation </span> </a> </li> <li class=md-nav__item> <a href=../../intro/ class=md-nav__link> <span class=md-ellipsis> Introduction </span> </a> </li> <li class=md-nav__item> <a href=../../environment/ class=md-nav__link> <span class=md-ellipsis> Environments </span> </a> </li> <li class=md-nav__item> <a href=../../version/ class=md-nav__link> <span class=md-ellipsis> Versioning </span> </a> </li> <li class=md-nav__item> <a href=../../build/ class=md-nav__link> <span class=md-ellipsis> Builds </span> </a> </li> <li class=md-nav__item> <a href=../../publish/ class=md-nav__link> <span class=md-ellipsis> Publishing </span> </a> </li> <li class=md-nav__item> <a href=../../next-steps/ class=md-nav__link> <span class=md-ellipsis> Next steps </span> </a> </li> <li class="md-nav__item md-nav__item--section md-nav__item--nested"> <input checked class="md-nav__toggle md-toggle md-toggle--indeterminate" data-md-toggle=__nav_1_9 id=__nav_1_9 type=checkbox> <label class=md-nav__link for=__nav_1_9> <span class=md-ellipsis> History </span> <span class="md-nav__icon md-icon"></span> </label> <nav aria-label=History class=md-nav data-md-level=2> <label class=md-nav__title for=__nav_1_9> <span class="md-nav__icon md-icon"></span> History </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../history/hatch/ class=md-nav__link> <span class=md-ellipsis> Hatch </span> </a> </li> <li class=md-nav__item> <a href=../../history/hatchling/ class=md-nav__link> <span class=md-ellipsis> Hatchling </span> </a> </li> </ul> </nav> </li> <li class="md-nav__item md-nav__item--section md-nav__item--nested"> <input checked class="md-nav__toggle md-toggle md-toggle--indeterminate" data-md-toggle=__nav_1_10 id=__nav_1_10 type=checkbox> <label class=md-nav__link for=__nav_1_10> <span class=md-ellipsis> Community </span> <span class="md-nav__icon md-icon"></span> </label> <nav aria-label=Community class=md-nav data-md-level=2> <label class=md-nav__title for=__nav_1_10> <span class="md-nav__icon md-icon"></span> Community </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../community/users/ class=md-nav__link> <span class=md-ellipsis> Users </span> </a> </li> <li class=md-nav__item> <a href=../../community/highlights/ class=md-nav__link> <span class=md-ellipsis> Highlights </span> </a> </li> </ul> </nav> </li> </ul> </nav> </li> <li class="md-nav__item md-nav__item--active md-nav__item--nested"> <input checked class="md-nav__toggle md-toggle" data-md-toggle=__nav_2 id=__nav_2 type=checkbox> <label class=md-nav__link for=__nav_2> <span class=md-ellipsis> Configuration </span> <span class="md-nav__icon md-icon"></span> </label> <nav aria-label=Configuration class=md-nav data-md-level=1> <label class=md-nav__title for=__nav_2> <span class="md-nav__icon md-icon"></span> Configuration </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../metadata/ class=md-nav__link> <span class=md-ellipsis> Metadata </span> </a> </li> <li class="md-nav__item md-nav__item--active"> <input class="md-nav__toggle md-toggle" data-md-toggle=toc id=__toc type=checkbox> <label class="md-nav__link md-nav__link--active" for=__toc> <span class=md-ellipsis> Dependencies </span> <span class="md-nav__icon md-icon"></span> </label> <a href=./ class="md-nav__link md-nav__link--active"> <span class=md-ellipsis> Dependencies </span> </a> <nav aria-label="Table of contents" class="md-nav md-nav--secondary"> <label class=md-nav__title for=__toc> <span class="md-nav__icon md-icon"></span> Table of contents </label> <ul class=md-nav__list data-md-component=toc data-md-scrollfix> <li class=md-nav__item> <a class=md-nav__link href=#version-specifiers> <span class=md-ellipsis> Version specifiers </span> </a> <nav aria-label="Version specifiers" class=md-nav> <ul class=md-nav__list> <li class=md-nav__item> <a class=md-nav__link href=#operators> <span class=md-ellipsis> Operators </span> </a> </li> <li class=md-nav__item> <a class=md-nav__link href=#version-matching> <span class=md-ellipsis> Version matching </span> </a> </li> <li class=md-nav__item> <a class=md-nav__link href=#compatible-release> <span class=md-ellipsis> Compatible release </span> </a> </li> <li class=md-nav__item> <a class=md-nav__link href=#version-exclusion> <span class=md-ellipsis> Version exclusion </span> </a> </li> <li class=md-nav__item> <a class=md-nav__link href=#ordered-comparison> <span class=md-ellipsis> Ordered comparison </span> </a> </li> <li class=md-nav__item> <a class=md-nav__link href=#arbitrary-equality> <span class=md-ellipsis> Arbitrary equality </span> </a> </li> </ul> </nav> </li> <li class=md-nav__item> <a class=md-nav__link href=#environment-markers> <span class=md-ellipsis> Environment markers </span> </a> </li> <li class=md-nav__item> <a class=md-nav__link href=#features> <span class=md-ellipsis> Features </span> </a> <nav aria-label=Features class=md-nav> <ul class=md-nav__list> <li class=md-nav__item> <a class=md-nav__link href=#self-referential> <span class=md-ellipsis> Self-referential </span> </a> </li> </ul> </nav> </li> <li class=md-nav__item> <a class=md-nav__link href=#direct-references> <span class=md-ellipsis> Direct references </span> </a> <nav aria-label="Direct references" class=md-nav> <ul class=md-nav__list> <li class=md-nav__item> <a class=md-nav__link href=#version-control-systems> <span class=md-ellipsis> Version control systems </span> </a> <nav aria-label="Version control systems" class=md-nav> <ul class=md-nav__list> <li class=md-nav__item> <a class=md-nav__link href=#supported-vcs> <span class=md-ellipsis> Supported VCS </span> </a> </li> </ul> </nav> </li> <li class=md-nav__item> <a class=md-nav__link href=#local> <span class=md-ellipsis> Local </span> </a> </li> <li class=md-nav__item> <a class=md-nav__link href=#remote> <span class=md-ellipsis> Remote </span> </a> </li> <li class=md-nav__item> <a class=md-nav__link href=#complex-syntax> <span class=md-ellipsis> Complex syntax </span> </a> </li> </ul> </nav> </li> </ul> </nav> </li> <li class=md-nav__item> <a href=../build/ class=md-nav__link> <span class=md-ellipsis> Build </span> </a> </li> <li class="md-nav__item md-nav__item--section md-nav__item--nested"> <input checked class="md-nav__toggle md-toggle md-toggle--indeterminate" data-md-toggle=__nav_2_4 id=__nav_2_4 type=checkbox> <label class=md-nav__link for=__nav_2_4> <span class=md-ellipsis> Environments </span> <span class="md-nav__icon md-icon"></span> </label> <nav aria-label=Environments class=md-nav data-md-level=2> <label class=md-nav__title for=__nav_2_4> <span class="md-nav__icon md-icon"></span> Environments </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../environment/overview/ class=md-nav__link> <span class=md-ellipsis> Overview </span> </a> </li> <li class=md-nav__item> <a href=../environment/advanced/ class=md-nav__link> <span class=md-ellipsis> Advanced </span> </a> </li> </ul> </nav> </li> <li class=md-nav__item> <a href=../context/ class=md-nav__link> <span class=md-ellipsis> Context formatting </span> </a> </li> <li class=md-nav__item> <a href=../project-templates/ class=md-nav__link> <span class=md-ellipsis> Project templates </span> </a> </li> <li class=md-nav__item> <a href=../hatch/ class=md-nav__link> <span class=md-ellipsis> Hatch </span> </a> </li> </ul> </nav> </li> <li class="md-nav__item md-nav__item--nested"> <input checked class="md-nav__toggle md-toggle md-toggle--indeterminate" data-md-toggle=__nav_3 id=__nav_3 type=checkbox> <label class=md-nav__link for=__nav_3> <span class=md-ellipsis> CLI </span> <span class="md-nav__icon md-icon"></span> </label> <nav aria-label=CLI class=md-nav data-md-level=1> <label class=md-nav__title for=__nav_3> <span class="md-nav__icon md-icon"></span> CLI </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../cli/about/ class=md-nav__link> <span class=md-ellipsis> About </span> </a> </li> <li class=md-nav__item> <a href=../../cli/reference/ class=md-nav__link> <span class=md-ellipsis> Reference </span> </a> </li> </ul> </nav> </li> <li class="md-nav__item md-nav__item--nested"> <input checked class="md-nav__toggle md-toggle md-toggle--indeterminate" data-md-toggle=__nav_4 id=__nav_4 type=checkbox> <label class=md-nav__link for=__nav_4> <span class=md-ellipsis> Plugins </span> <span class="md-nav__icon md-icon"></span> </label> <nav aria-label=Plugins class=md-nav data-md-level=1> <label class=md-nav__title for=__nav_4> <span class="md-nav__icon md-icon"></span> Plugins </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../plugins/about/ class=md-nav__link> <span class=md-ellipsis> About </span> </a> </li> <li class="md-nav__item md-nav__item--section md-nav__item--nested"> <input checked class="md-nav__toggle md-toggle md-toggle--indeterminate" data-md-toggle=__nav_4_2 id=__nav_4_2 type=checkbox> <label class=md-nav__link for=__nav_4_2> <span class=md-ellipsis> Builder </span> <span class="md-nav__icon md-icon"></span> </label> <nav aria-label=Builder class=md-nav data-md-level=2> <label class=md-nav__title for=__nav_4_2> <span class="md-nav__icon md-icon"></span> Builder </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../plugins/builder/reference/ class=md-nav__link> <span class=md-ellipsis> Reference </span> </a> </li> <li class=md-nav__item> <a href=../../plugins/builder/wheel/ class=md-nav__link> <span class=md-ellipsis> Wheel </span> </a> </li> <li class=md-nav__item> <a href=../../plugins/builder/sdist/ class=md-nav__link> <span class=md-ellipsis> Source distribution </span> </a> </li> <li class=md-nav__item> <a href=../../plugins/builder/custom/ class=md-nav__link> <span class=md-ellipsis> Custom </span> </a> </li> </ul> </nav> </li> <li class="md-nav__item md-nav__item--section md-nav__item--nested"> <input checked class="md-nav__toggle md-toggle md-toggle--indeterminate" data-md-toggle=__nav_4_3 id=__nav_4_3 type=checkbox> <label class=md-nav__link for=__nav_4_3> <span class=md-ellipsis> Build hook </span> <span class="md-nav__icon md-icon"></span> </label> <nav aria-label="Build hook" class=md-nav data-md-level=2> <label class=md-nav__title for=__nav_4_3> <span class="md-nav__icon md-icon"></span> Build hook </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../plugins/build-hook/reference/ class=md-nav__link> <span class=md-ellipsis> Reference </span> </a> </li> <li class=md-nav__item> <a href=../../plugins/build-hook/version/ class=md-nav__link> <span class=md-ellipsis> Version </span> </a> </li> <li class=md-nav__item> <a href=../../plugins/build-hook/custom/ class=md-nav__link> <span class=md-ellipsis> Custom </span> </a> </li> </ul> </nav> </li> <li class="md-nav__item md-nav__item--section md-nav__item--nested"> <input checked class="md-nav__toggle md-toggle md-toggle--indeterminate" data-md-toggle=__nav_4_4 id=__nav_4_4 type=checkbox> <label class=md-nav__link for=__nav_4_4> <span class=md-ellipsis> Metadata hook </span> <span class="md-nav__icon md-icon"></span> </label> <nav aria-label="Metadata hook" class=md-nav data-md-level=2> <label class=md-nav__title for=__nav_4_4> <span class="md-nav__icon md-icon"></span> Metadata hook </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../plugins/metadata-hook/reference/ class=md-nav__link> <span class=md-ellipsis> Reference </span> </a> </li> <li class=md-nav__item> <a href=../../plugins/metadata-hook/custom/ class=md-nav__link> <span class=md-ellipsis> Custom </span> </a> </li> </ul> </nav> </li> <li class="md-nav__item md-nav__item--section md-nav__item--nested"> <input checked class="md-nav__toggle md-toggle md-toggle--indeterminate" data-md-toggle=__nav_4_5 id=__nav_4_5 type=checkbox> <label class=md-nav__link for=__nav_4_5> <span class=md-ellipsis> Environment </span> <span class="md-nav__icon md-icon"></span> </label> <nav aria-label=Environment class=md-nav data-md-level=2> <label class=md-nav__title for=__nav_4_5> <span class="md-nav__icon md-icon"></span> Environment </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../plugins/environment/reference/ class=md-nav__link> <span class=md-ellipsis> Reference </span> </a> </li> <li class=md-nav__item> <a href=../../plugins/environment/virtual/ class=md-nav__link> <span class=md-ellipsis> Virtual </span> </a> </li> </ul> </nav> </li> <li class="md-nav__item md-nav__item--section md-nav__item--nested"> <input checked class="md-nav__toggle md-toggle md-toggle--indeterminate" data-md-toggle=__nav_4_6 id=__nav_4_6 type=checkbox> <label class=md-nav__link for=__nav_4_6> <span class=md-ellipsis> Environment collector </span> <span class="md-nav__icon md-icon"></span> </label> <nav aria-label="Environment collector" class=md-nav data-md-level=2> <label class=md-nav__title for=__nav_4_6> <span class="md-nav__icon md-icon"></span> Environment collector </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../plugins/environment-collector/reference/ class=md-nav__link> <span class=md-ellipsis> Reference </span> </a> </li> <li class=md-nav__item> <a href=../../plugins/environment-collector/custom/ class=md-nav__link> <span class=md-ellipsis> Custom </span> </a> </li> <li class=md-nav__item> <a href=../../plugins/environment-collector/default/ class=md-nav__link> <span class=md-ellipsis> Default </span> </a> </li> </ul> </nav> </li> <li class="md-nav__item md-nav__item--section md-nav__item--nested"> <input checked class="md-nav__toggle md-toggle md-toggle--indeterminate" data-md-toggle=__nav_4_7 id=__nav_4_7 type=checkbox> <label class=md-nav__link for=__nav_4_7> <span class=md-ellipsis> Publisher </span> <span class="md-nav__icon md-icon"></span> </label> <nav aria-label=Publisher class=md-nav data-md-level=2> <label class=md-nav__title for=__nav_4_7> <span class="md-nav__icon md-icon"></span> Publisher </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../plugins/publisher/reference/ class=md-nav__link> <span class=md-ellipsis> Reference </span> </a> </li> <li class=md-nav__item> <a href=../../plugins/publisher/package-index/ class=md-nav__link> <span class=md-ellipsis> Index </span> </a> </li> </ul> </nav> </li> <li class="md-nav__item md-nav__item--section md-nav__item--nested"> <input checked class="md-nav__toggle md-toggle md-toggle--indeterminate" data-md-toggle=__nav_4_8 id=__nav_4_8 type=checkbox> <label class=md-nav__link for=__nav_4_8> <span class=md-ellipsis> Version source </span> <span class="md-nav__icon md-icon"></span> </label> <nav aria-label="Version source" class=md-nav data-md-level=2> <label class=md-nav__title for=__nav_4_8> <span class="md-nav__icon md-icon"></span> Version source </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../plugins/version-source/reference/ class=md-nav__link> <span class=md-ellipsis> Reference </span> </a> </li> <li class=md-nav__item> <a href=../../plugins/version-source/regex/ class=md-nav__link> <span class=md-ellipsis> Regex </span> </a> </li> <li class=md-nav__item> <a href=../../plugins/version-source/code/ class=md-nav__link> <span class=md-ellipsis> Code </span> </a> </li> <li class=md-nav__item> <a href=../../plugins/version-source/env/ class=md-nav__link> <span class=md-ellipsis> Environment </span> </a> </li> </ul> </nav> </li> <li class="md-nav__item md-nav__item--section md-nav__item--nested"> <input checked class="md-nav__toggle md-toggle md-toggle--indeterminate" data-md-toggle=__nav_4_9 id=__nav_4_9 type=checkbox> <label class=md-nav__link for=__nav_4_9> <span class=md-ellipsis> Version scheme </span> <span class="md-nav__icon md-icon"></span> </label> <nav aria-label="Version scheme" class=md-nav data-md-level=2> <label class=md-nav__title for=__nav_4_9> <span class="md-nav__icon md-icon"></span> Version scheme </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../plugins/version-scheme/reference/ class=md-nav__link> <span class=md-ellipsis> Reference </span> </a> </li> <li class=md-nav__item> <a href=../../plugins/version-scheme/standard/ class=md-nav__link> <span class=md-ellipsis> Standard </span> </a> </li> </ul> </nav> </li> <li class=md-nav__item> <a href=../../plugins/utilities/ class=md-nav__link> <span class=md-ellipsis> Utilities </span> </a> </li> </ul> </nav> </li> <li class="md-nav__item md-nav__item--nested"> <input checked class="md-nav__toggle md-toggle md-toggle--indeterminate" data-md-toggle=__nav_5 id=__nav_5 type=checkbox> <label class=md-nav__link for=__nav_5> <span class=md-ellipsis> How-to </span> <span class="md-nav__icon md-icon"></span> </label> <nav aria-label=How-to class=md-nav data-md-level=1> <label class=md-nav__title for=__nav_5> <span class="md-nav__icon md-icon"></span> How-to </label> <ul class=md-nav__list data-md-scrollfix> <li class="md-nav__item md-nav__item--section md-nav__item--nested"> <input checked class="md-nav__toggle md-toggle md-toggle--indeterminate" data-md-toggle=__nav_5_1 id=__nav_5_1 type=checkbox> <label class=md-nav__link for=__nav_5_1> <span class=md-ellipsis> Environments </span> <span class="md-nav__icon md-icon"></span> </label> <nav aria-label=Environments class=md-nav data-md-level=2> <label class=md-nav__title for=__nav_5_1> <span class="md-nav__icon md-icon"></span> Environments </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../how-to/environment/package-indices/ class=md-nav__link> <span class=md-ellipsis> Package indices </span> </a> </li> </ul> </nav> </li> <li class="md-nav__item md-nav__item--section md-nav__item--nested"> <input checked class="md-nav__toggle md-toggle md-toggle--indeterminate" data-md-toggle=__nav_5_2 id=__nav_5_2 type=checkbox> <label class=md-nav__link for=__nav_5_2> <span class=md-ellipsis> Plugins </span> <span class="md-nav__icon md-icon"></span> </label> <nav aria-label=Plugins class=md-nav data-md-level=2> <label class=md-nav__title for=__nav_5_2> <span class="md-nav__icon md-icon"></span> Plugins </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../how-to/plugins/testing-builds/ class=md-nav__link> <span class=md-ellipsis> Testing builds </span> </a> </li> </ul> </nav> </li> </ul> </nav> </li> <li class="md-nav__item md-nav__item--nested"> <input checked class="md-nav__toggle md-toggle md-toggle--indeterminate" data-md-toggle=__nav_6 id=__nav_6 type=checkbox> <label class=md-nav__link for=__nav_6> <span class=md-ellipsis> Meta </span> <span class="md-nav__icon md-icon"></span> </label> <nav aria-label=Meta class=md-nav data-md-level=1> <label class=md-nav__title for=__nav_6> <span class="md-nav__icon md-icon"></span> Meta </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../meta/faq/ class=md-nav__link> <span class=md-ellipsis> FAQ </span> </a> </li> <li class=md-nav__item> <a href=../../meta/authors/ class=md-nav__link> <span class=md-ellipsis> Authors </span> </a> </li> </ul> </nav> </li> <li class="md-nav__item md-nav__item--nested"> <input checked class="md-nav__toggle md-toggle md-toggle--indeterminate" data-md-toggle=__nav_7 id=__nav_7 type=checkbox> <label class=md-nav__link for=__nav_7> <span class=md-ellipsis> Blog </span> <span class="md-nav__icon md-icon"></span> </label> <nav aria-label=Blog class=md-nav data-md-level=1> <label class=md-nav__title for=__nav_7> <span class="md-nav__icon md-icon"></span> Blog </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../blog/ class=md-nav__link> <span class=md-ellipsis> Blog </span> </a> </li> <li class="md-nav__item md-nav__item--section md-nav__item--nested"> <input checked class="md-nav__toggle md-toggle md-toggle--indeterminate" data-md-toggle=__nav_7_2 id=__nav_7_2 type=checkbox> <label class=md-nav__link for=__nav_7_2> <span class=md-ellipsis> Archive </span> <span class="md-nav__icon md-icon"></span> </label> <nav aria-label=Archive class=md-nav data-md-level=2> <label class=md-nav__title for=__nav_7_2> <span class="md-nav__icon md-icon"></span> Archive </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../blog/archive/2022/ class=md-nav__link> <span class=md-ellipsis> 2022 </span> </a> </li> </ul> </nav> </li> <li class="md-nav__item md-nav__item--section md-nav__item--nested"> <input checked class="md-nav__toggle md-toggle md-toggle--indeterminate" data-md-toggle=__nav_7_3 id=__nav_7_3 type=checkbox> <label class=md-nav__link for=__nav_7_3> <span class=md-ellipsis> Categories </span> <span class="md-nav__icon md-icon"></span> </label> <nav aria-label=Categories class=md-nav data-md-level=2> <label class=md-nav__title for=__nav_7_3> <span class="md-nav__icon md-icon"></span> Categories </label> <ul class=md-nav__list data-md-scrollfix> <li class=md-nav__item> <a href=../../blog/category/release/ class=md-nav__link> <span class=md-ellipsis> Release </span> </a> </li> </ul> </nav> </li> </ul> </nav> </li> </ul> </nav> </div> </div> </div> <div class="md-sidebar md-sidebar--secondary" data-md-component=sidebar data-md-type=toc> <div class=md-sidebar__scrollwrap> <div class=md-sidebar__inner> <nav aria-label="Table of contents" class="md-nav md-nav--secondary"> <label class=md-nav__title for=__toc> <span class="md-nav__icon md-icon"></span> Table of contents </label> <ul class=md-nav__list data-md-component=toc data-md-scrollfix> <li class=md-nav__item> <a class=md-nav__link href=#version-specifiers> <span class=md-ellipsis> Version specifiers </span> </a> <nav aria-label="Version specifiers" class=md-nav> <ul class=md-nav__list> <li class=md-nav__item> <a class=md-nav__link href=#operators> <span class=md-ellipsis> Operators </span> </a> </li> <li class=md-nav__item> <a class=md-nav__link href=#version-matching> <span class=md-ellipsis> Version matching </span> </a> </li> <li class=md-nav__item> <a class=md-nav__link href=#compatible-release> <span class=md-ellipsis> Compatible release </span> </a> </li> <li class=md-nav__item> <a class=md-nav__link href=#version-exclusion> <span class=md-ellipsis> Version exclusion </span> </a> </li> <li class=md-nav__item> <a class=md-nav__link href=#ordered-comparison> <span class=md-ellipsis> Ordered comparison </span> </a> </li> <li class=md-nav__item> <a class=md-nav__link href=#arbitrary-equality> <span class=md-ellipsis> Arbitrary equality </span> </a> </li> </ul> </nav> </li> <li class=md-nav__item> <a class=md-nav__link href=#environment-markers> <span class=md-ellipsis> Environment markers </span> </a> </li> <li class=md-nav__item> <a class=md-nav__link href=#features> <span class=md-ellipsis> Features </span> </a> <nav aria-label=Features class=md-nav> <ul class=md-nav__list> <li class=md-nav__item> <a class=md-nav__link href=#self-referential> <span class=md-ellipsis> Self-referential </span> </a> </li> </ul> </nav> </li> <li class=md-nav__item> <a class=md-nav__link href=#direct-references> <span class=md-ellipsis> Direct references </span> </a> <nav aria-label="Direct references" class=md-nav> <ul class=md-nav__list> <li class=md-nav__item> <a class=md-nav__link href=#version-control-systems> <span class=md-ellipsis> Version control systems </span> </a> <nav aria-label="Version control systems" class=md-nav> <ul class=md-nav__list> <li class=md-nav__item> <a class=md-nav__link href=#supported-vcs> <span class=md-ellipsis> Supported VCS </span> </a> </li> </ul> </nav> </li> <li class=md-nav__item> <a class=md-nav__link href=#local> <span class=md-ellipsis> Local </span> </a> </li> <li class=md-nav__item> <a class=md-nav__link href=#remote> <span class=md-ellipsis> Remote </span> </a> </li> <li class=md-nav__item> <a class=md-nav__link href=#complex-syntax> <span class=md-ellipsis> Complex syntax </span> </a> </li> </ul> </nav> </li> </ul> </nav> </div> </div> </div> <div class=md-content data-md-component=content> <article class="md-content__inner md-typeset"> <a class="md-content__button md-icon" href=https://github.com/pypa/hatch/blob/master/docs/config/dependency.md title="Edit this page"> <svg viewbox="0 0 24 24" xmlns=http://www.w3.org/2000/svg><path d="M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83 3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75L3 17.25Z"></path></svg> </a> <h1 id=dependency-configuration>Dependency configuration<a class=headerlink href=#dependency-configuration title="Permanent link">¶</a></h1> <hr> <p><a href=../metadata/#dependencies>Project dependencies</a> are defined with <a href=https://peps.python.org/pep-0508/ >PEP 508</a> strings using optional <a href=https://peps.python.org/pep-0440/#version-specifiers>PEP 440 version specifiers</a>.</p> <h2 id=version-specifiers>Version specifiers<a class=headerlink href=#version-specifiers title="Permanent link">¶</a></h2> <p>A version specifier consists of a series of version clauses, separated by commas. For example:</p> <div class="tabbed-set tabbed-alternate" data-tabs=1:1><input checked=checked id=__tabbed_1_1 name=__tabbed_1 type=radio><div class=tabbed-labels><label for=__tabbed_1_1><span class=twemoji><svg viewbox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M4 1.75C4 .784 4.784 0 5.75 0h5.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v8.586A1.75 1.75 0 0 1 14.25 15h-9a.75.75 0 0 1 0-1.5h9a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 10 4.25V1.5H5.75a.25.25 0 0 0-.25.25v2.5a.75.75 0 0 1-1.5 0v-2.5zm7.5-.188V4.25c0 .138.112.25.25.25h2.688a.252.252 0 0 0-.011-.013l-2.914-2.914a.272.272 0 0 0-.013-.011zM5.72 6.72a.75.75 0 0 0 0 1.06l1.47 1.47-1.47 1.47a.75.75 0 1 0 1.06 1.06l2-2a.75.75 0 0 0 0-1.06l-2-2a.75.75 0 0 0-1.06 0zM3.28 7.78a.75.75 0 0 0-1.06-1.06l-2 2a.75.75 0 0 0 0 1.06l2 2a.75.75 0 0 0 1.06-1.06L1.81 9.25l1.47-1.47z" fill-rule=evenodd></path></svg></span> pyproject.toml</label></div> <div class=tabbed-content> <div class=tabbed-block> <div class=highlight><pre><span></span><code><span class=k>[project]</span><span class=w></span>
|
|
<span class=p>...</span><span class=w></span>
|
|
<span class=n>dependencies</span><span class=w> </span><span class=o>=</span><span class=w> </span><span class=p>[</span><span class=w></span>
|
|
<span class=w> </span><span class=s>"cryptography"</span><span class=p>,</span><span class=w></span>
|
|
<span class=w> </span><span class=s>"click>=7, <9, != 8.0.0"</span><span class=p>,</span><span class=w></span>
|
|
<span class=w> </span><span class=s>"python-dateutil==2.8.*"</span><span class=p>,</span><span class=w></span>
|
|
<span class=w> </span><span class=s>"numpy~=1.21.4"</span><span class=p>,</span><span class=w></span>
|
|
<span class=p>]</span><span class=w></span>
|
|
</code></pre></div> </div> </div> </div> <p>The comma is equivalent to a logical <code>AND</code> operator: a candidate version must match all given version clauses in order to match the specifier as a whole.</p> <h3 id=operators>Operators<a class=headerlink href=#operators title="Permanent link">¶</a></h3> <table> <thead> <tr> <th align=center>Operators</th> <th>Function</th> </tr> </thead> <tbody> <tr> <td align=center><code>~=</code></td> <td><a href=#compatible-release>Compatible release</a></td> </tr> <tr> <td align=center><code>==</code></td> <td><a href=#version-matching>Version matching</a></td> </tr> <tr> <td align=center><code>!=</code></td> <td><a href=#version-exclusion>Version exclusion</a></td> </tr> <tr> <td align=center><code><=</code>, <code>>=</code></td> <td><a href=#ordered-comparison>Inclusive ordered comparison</a></td> </tr> <tr> <td align=center><code><</code>, <code>></code></td> <td><a href=#ordered-comparison>Exclusive ordered comparison</a></td> </tr> <tr> <td align=center><code>===</code></td> <td><a href=#arbitrary-equality>Arbitrary equality</a></td> </tr> </tbody> </table> <h3 id=version-matching>Version matching<a class=headerlink href=#version-matching title="Permanent link">¶</a></h3> <p>A version matching clause includes the version matching operator <code>==</code> and a version identifier.</p> <p>By default, the version matching operator is based on a strict equality comparison: the specified version must be exactly the same as the requested version.</p> <table> <thead> <tr> <th>Clause</th> <th>Allowed versions</th> </tr> </thead> <tbody> <tr> <td><code>==1</code></td> <td><code>1.0.0</code></td> </tr> <tr> <td><code>==1.2</code></td> <td><code>1.2.0</code></td> </tr> </tbody> </table> <p>Prefix matching may be requested instead of strict comparison, by appending a trailing <code>.*</code> to the version identifier in the version matching clause. This means that additional trailing segments will be ignored when determining whether or not a version identifier matches the clause.</p> <table> <thead> <tr> <th>Clause</th> <th>Allowed versions</th> </tr> </thead> <tbody> <tr> <td><code>==1.*</code></td> <td><code>>=1.0.0, <2.0.0</code></td> </tr> <tr> <td><code>==1.2.*</code></td> <td><code>>=1.2.0, <1.3.0</code></td> </tr> </tbody> </table> <h3 id=compatible-release>Compatible release<a class=headerlink href=#compatible-release title="Permanent link">¶</a></h3> <p>A compatible release clause consists of the compatible release operator <code>~=</code> and a version identifier. It matches any candidate version that is expected to be compatible with the specified version.</p> <p>For a given release identifier <code>V.N</code>, the compatible release clause is approximately equivalent to the following pair of comparison clauses:</p> <div class=highlight><pre><span></span><code>>= V.N, == V.*
|
|
</code></pre></div> <p>This operator cannot be used with a single segment version number such as <code>~=1</code>.</p> <table> <thead> <tr> <th>Clause</th> <th>Allowed versions</th> </tr> </thead> <tbody> <tr> <td><code>~=1.2</code></td> <td><code>>=1.2.0, <2.0.0</code></td> </tr> <tr> <td><code>~=1.2.3</code></td> <td><code>>=1.2.3, <1.3.0</code></td> </tr> </tbody> </table> <h3 id=version-exclusion>Version exclusion<a class=headerlink href=#version-exclusion title="Permanent link">¶</a></h3> <p>A version exclusion clause includes the version exclusion operator <code>!=</code> and a version identifier.</p> <p>The allowed version identifiers and comparison semantics are the same as those of the <a href=#version-matching>Version matching</a> operator, except that the sense of any match is inverted.</p> <h3 id=ordered-comparison>Ordered comparison<a class=headerlink href=#ordered-comparison title="Permanent link">¶</a></h3> <p>Inclusive comparisons allow for the version identifier part of clauses whereas exclusive comparisons do not. For example, <code>>=1.2</code> allows for version <code>1.2.0</code> while <code>>1.2</code> does not.</p> <p>Unlike the inclusive ordered comparisons <code><=</code> and <code>>=</code>, the exclusive ordered comparisons <code><</code> and <code>></code> specifically exclude pre-releases, post-releases, and local versions of the specified version.</p> <h3 id=arbitrary-equality>Arbitrary equality<a class=headerlink href=#arbitrary-equality title="Permanent link">¶</a></h3> <p>Though heavily discouraged, arbitrary equality comparisons allow for simple string matching without any version semantics, for example <code>===foobar</code>.</p> <h2 id=environment-markers>Environment markers<a class=headerlink href=#environment-markers title="Permanent link">¶</a></h2> <p><a href=https://peps.python.org/pep-0508/#environment-markers>Environment markers</a> allow for dependencies to only be installed when certain conditions are met.</p> <p>For example, if you need to install the latest version of <code>cryptography</code> that is available for a given Python major version you could define the following:</p> <div class=highlight><pre><span></span><code>cryptography==3.3.2; python_version < "3"
|
|
cryptography>=35.0; python_version > "3"
|
|
</code></pre></div> <p>Alternatively, if you only need it on Python 3 when running on Windows you could do:</p> <div class=highlight><pre><span></span><code>cryptography; python_version ~= "3.0" and platform_system == "Windows"
|
|
</code></pre></div> <p>The available environment markers are as follows.</p> <table> <thead> <tr> <th>Marker</th> <th>Python equivalent</th> <th>Examples</th> </tr> </thead> <tbody> <tr> <td><code>os_name</code></td> <td><code class=highlight><span class=kn>import</span> <span class=nn>os</span></code><br><code>os.name</code></td> <td><ul><li>posix</li><li>java</li></ul></td> </tr> <tr> <td><code>sys_platform</code></td> <td><code class=highlight><span class=kn>import</span> <span class=nn>sys</span></code><br><code>sys.platform</code></td> <td><ul><li>linux</li><li>win32</li><li>darwin</li></ul></td> </tr> <tr> <td><code>platform_machine</code></td> <td><code class=highlight><span class=kn>import</span> <span class=nn>platform</span></code><br><code>platform.machine()</code></td> <td><ul><li>x86_64</li></ul></td> </tr> <tr> <td><code>platform_python_implementation</code></td> <td><code class=highlight><span class=kn>import</span> <span class=nn>platform</span></code><br><code>platform.python_implementation()</code></td> <td><ul><li>CPython</li><li>Jython</li></ul></td> </tr> <tr> <td><code>platform_release</code></td> <td><code class=highlight><span class=kn>import</span> <span class=nn>platform</span></code><br><code>platform.release()</code></td> <td><ul><li>1.8.0_51</li><li>3.14.1-x86_64-linode39</li></ul></td> </tr> <tr> <td><code>platform_system</code></td> <td><code class=highlight><span class=kn>import</span> <span class=nn>platform</span></code><br><code>platform.system()</code></td> <td><ul><li>Linux</li><li>Windows</li><li>Darwin</li></ul></td> </tr> <tr> <td><code>platform_version</code></td> <td><code class=highlight><span class=kn>import</span> <span class=nn>platform</span></code><br><code>platform.version()</code></td> <td><ul><li>10.0.19041</li><li>#1 SMP Fri Apr 2 22:23:49 UTC 2021</li></ul></td> </tr> <tr> <td><code>python_version</code></td> <td><code class=highlight><span class=kn>import</span> <span class=nn>platform</span></code><br><code>'.'.join(platform.python_version_tuple()[:2])</code></td> <td><ul><li>2.7</li><li>3.10</li></ul></td> </tr> <tr> <td><code>python_full_version</code></td> <td><code class=highlight><span class=kn>import</span> <span class=nn>platform</span></code><br><code>platform.python_version()</code></td> <td><ul><li>2.7.18</li><li>3.11.0b1</li></ul></td> </tr> <tr> <td><code>implementation_name</code></td> <td><code class=highlight><span class=kn>import</span> <span class=nn>sys</span></code><br><code>sys.implementation.name</code></td> <td><ul><li>cpython</li></ul></td> </tr> <tr> <td><code>implementation_version</code></td> <td>See <a href=https://peps.python.org/pep-0508/#environment-markers>here</a></td> <td><ul><li>2.7.18</li><li>3.11.0b1</li></ul></td> </tr> </tbody> </table> <h2 id=features>Features<a class=headerlink href=#features title="Permanent link">¶</a></h2> <p>You can select groups of <a href=../metadata/#optional>optional dependencies</a> to install using the <a href=https://peps.python.org/pep-0508/#extras>extras</a> syntax. For example, if a dependency named <code>foo</code> defined the following:</p> <div class="tabbed-set tabbed-alternate" data-tabs=2:1><input checked=checked id=__tabbed_2_1 name=__tabbed_2 type=radio><div class=tabbed-labels><label for=__tabbed_2_1><span class=twemoji><svg viewbox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M4 1.75C4 .784 4.784 0 5.75 0h5.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v8.586A1.75 1.75 0 0 1 14.25 15h-9a.75.75 0 0 1 0-1.5h9a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 10 4.25V1.5H5.75a.25.25 0 0 0-.25.25v2.5a.75.75 0 0 1-1.5 0v-2.5zm7.5-.188V4.25c0 .138.112.25.25.25h2.688a.252.252 0 0 0-.011-.013l-2.914-2.914a.272.272 0 0 0-.013-.011zM5.72 6.72a.75.75 0 0 0 0 1.06l1.47 1.47-1.47 1.47a.75.75 0 1 0 1.06 1.06l2-2a.75.75 0 0 0 0-1.06l-2-2a.75.75 0 0 0-1.06 0zM3.28 7.78a.75.75 0 0 0-1.06-1.06l-2 2a.75.75 0 0 0 0 1.06l2 2a.75.75 0 0 0 1.06-1.06L1.81 9.25l1.47-1.47z" fill-rule=evenodd></path></svg></span> pyproject.toml</label></div> <div class=tabbed-content> <div class=tabbed-block> <div class=highlight><pre><span></span><code><span class=k>[project.optional-dependencies]</span><span class=w></span>
|
|
<span class=n>crypto</span><span class=w> </span><span class=o>=</span><span class=w> </span><span class=p>[</span><span class=w></span>
|
|
<span class=w> </span><span class=s>"PyJWT"</span><span class=p>,</span><span class=w></span>
|
|
<span class=w> </span><span class=s>"cryptography"</span><span class=p>,</span><span class=w></span>
|
|
<span class=p>]</span><span class=w></span>
|
|
<span class=n>fastjson</span><span class=w> </span><span class=o>=</span><span class=w> </span><span class=p>[</span><span class=w></span>
|
|
<span class=w> </span><span class=s>"orjson"</span><span class=p>,</span><span class=w></span>
|
|
<span class=p>]</span><span class=w></span>
|
|
<span class=n>cli</span><span class=w> </span><span class=o>=</span><span class=w> </span><span class=p>[</span><span class=w></span>
|
|
<span class=w> </span><span class=s>"prompt-toolkit"</span><span class=p>,</span><span class=w></span>
|
|
<span class=w> </span><span class=s>"colorama; platform_system == 'Windows'"</span><span class=p>,</span><span class=w></span>
|
|
<span class=p>]</span><span class=w></span>
|
|
</code></pre></div> </div> </div> </div> <p>You can select the <code>cli</code> and <code>crypto</code> features like so:</p> <div class=highlight><pre><span></span><code>foo[cli,crypto]==1.*
|
|
</code></pre></div> <p>Note that the features come immediately after the package name, before any <a href=#version-specifiers>version specifiers</a>.</p> <h3 id=self-referential>Self-referential<a class=headerlink href=#self-referential title="Permanent link">¶</a></h3> <p>Feature groups can self-referentially extend others. For example, for a project called <code>awesome-project</code>, the <code>dev</code> feature group in the following <code>pyproject.toml</code> file would select everything in the <code>crypto</code> feature group, plus <code>black</code>:</p> <div class="tabbed-set tabbed-alternate" data-tabs=3:1><input checked=checked id=__tabbed_3_1 name=__tabbed_3 type=radio><div class=tabbed-labels><label for=__tabbed_3_1><span class=twemoji><svg viewbox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M4 1.75C4 .784 4.784 0 5.75 0h5.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v8.586A1.75 1.75 0 0 1 14.25 15h-9a.75.75 0 0 1 0-1.5h9a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 10 4.25V1.5H5.75a.25.25 0 0 0-.25.25v2.5a.75.75 0 0 1-1.5 0v-2.5zm7.5-.188V4.25c0 .138.112.25.25.25h2.688a.252.252 0 0 0-.011-.013l-2.914-2.914a.272.272 0 0 0-.013-.011zM5.72 6.72a.75.75 0 0 0 0 1.06l1.47 1.47-1.47 1.47a.75.75 0 1 0 1.06 1.06l2-2a.75.75 0 0 0 0-1.06l-2-2a.75.75 0 0 0-1.06 0zM3.28 7.78a.75.75 0 0 0-1.06-1.06l-2 2a.75.75 0 0 0 0 1.06l2 2a.75.75 0 0 0 1.06-1.06L1.81 9.25l1.47-1.47z" fill-rule=evenodd></path></svg></span> pyproject.toml</label></div> <div class=tabbed-content> <div class=tabbed-block> <div class=highlight><pre><span></span><code><span class=k>[project]</span><span class=w></span>
|
|
<span class=n>name</span><span class=w> </span><span class=o>=</span><span class=w> </span><span class=s>"awesome-project"</span><span class=w></span>
|
|
|
|
<span class=k>[project.optional-dependencies]</span><span class=w></span>
|
|
<span class=n>crypto</span><span class=w> </span><span class=o>=</span><span class=w> </span><span class=p>[</span><span class=w></span>
|
|
<span class=w> </span><span class=s>"PyJWT"</span><span class=p>,</span><span class=w></span>
|
|
<span class=w> </span><span class=s>"cryptography"</span><span class=p>,</span><span class=w></span>
|
|
<span class=p>]</span><span class=w></span>
|
|
<span class=n>dev</span><span class=w> </span><span class=o>=</span><span class=w> </span><span class=p>[</span><span class=w></span>
|
|
<span class=w> </span><span class=s>"awesome-project[crypto]"</span><span class=p>,</span><span class=w></span>
|
|
<span class=w> </span><span class=s>"black"</span><span class=p>,</span><span class=w></span>
|
|
<span class=p>]</span><span class=w></span>
|
|
</code></pre></div> </div> </div> </div> <h2 id=direct-references>Direct references<a class=headerlink href=#direct-references title="Permanent link">¶</a></h2> <p>Instead of using normal <a href=#version-specifiers>version specifiers</a> and fetching packages from an index like <abbr title="Python Package Index">PyPI</abbr>, you can define exact sources using <a href=https://peps.python.org/pep-0440/#direct-references>direct references</a> with an explicit <a href=https://en.wikipedia.org/wiki/Uniform_Resource_Identifier#Syntax>URI</a>.</p> <p>Direct references are usually not meant to be used for dependencies of a published project but rather are used for defining <a href=../environment/overview/#dependencies>dependencies for an environment</a>.</p> <p>All direct reference types are prefixed by the package name like:</p> <div class=highlight><pre><span></span><code><NAME> @ <REFERENCE>
|
|
</code></pre></div> <h3 id=version-control-systems>Version control systems<a class=headerlink href=#version-control-systems title="Permanent link">¶</a></h3> <p>Various version control systems (VCS) are <a href=#supported-vcs>supported</a> as long as the associated executable is available along your <code>PATH</code>.</p> <p>VCS direct references are defined using one of the following formats:</p> <div class=highlight><pre><span></span><code><NAME> @ <SCHEME>://<PATH>
|
|
<NAME> @ <SCHEME>://<PATH>@<REVISION>
|
|
</code></pre></div> <p>You may also append a <code>#subdirectory=<PATH></code> component for specifying the relative path to the Python package when it is not located at the root e.g. <code>#subdirectory=lib/foo</code>.</p> <p>For more information, refer to <a href=https://pip.pypa.io/en/stable/topics/vcs-support/ >this</a>.</p> <h4 id=supported-vcs>Supported VCS<a class=headerlink href=#supported-vcs title="Permanent link">¶</a></h4> <div class="tabbed-set tabbed-alternate" data-tabs=4:4><input checked=checked id=__tabbed_4_1 name=__tabbed_4 type=radio><input id=__tabbed_4_2 name=__tabbed_4 type=radio><input id=__tabbed_4_3 name=__tabbed_4 type=radio><input id=__tabbed_4_4 name=__tabbed_4 type=radio><div class=tabbed-labels><label for=__tabbed_4_1>Git</label><label for=__tabbed_4_2>Mercurial</label><label for=__tabbed_4_3>Subversion</label><label for=__tabbed_4_4>Bazaar</label></div> <div class=tabbed-content> <div class=tabbed-block> <table> <thead> <tr> <th>Executable</th> <th>Schemes</th> <th>Revisions</th> <th>Example</th> </tr> </thead> <tbody> <tr> <td><code>git</code></td> <td><ul><li><code>git+file</code></li><li><code>git+https</code></li><li><code>git+ssh</code></li><li><code>git+http</code> <img alt=⚠ class=twemoji src=https://twemoji.maxcdn.com/v/latest/svg/26a0.svg title=:warning:></li><li><code>git+git</code> <img alt=⚠ class=twemoji src=https://twemoji.maxcdn.com/v/latest/svg/26a0.svg title=:warning:></li><li><code>git</code> <img alt=⚠ class=twemoji src=https://twemoji.maxcdn.com/v/latest/svg/26a0.svg title=:warning:></li></ul></td> <td><ul><li>Commit hash</li><li>Tag name</li><li>Branch name</li></ul></td> <td><code>proj @ git+https://github.com/org/proj.git@v1</code></td> </tr> </tbody> </table> </div> <div class=tabbed-block> <table> <thead> <tr> <th>Executable</th> <th>Schemes</th> <th>Revisions</th> <th>Example</th> </tr> </thead> <tbody> <tr> <td><code>hg</code></td> <td><ul><li><code>hg+file</code></li><li><code>hg+https</code></li><li><code>hg+ssh</code></li><li><code>hg+http</code> <img alt=⚠ class=twemoji src=https://twemoji.maxcdn.com/v/latest/svg/26a0.svg title=:warning:></li><li><code>hg+static-http</code> <img alt=⚠ class=twemoji src=https://twemoji.maxcdn.com/v/latest/svg/26a0.svg title=:warning:></li></ul></td> <td><ul><li>Revision hash</li><li>Revision number</li><li>Tag name</li><li>Branch name</li></ul></td> <td><code>proj @ hg+file:///path/to/proj@v1</code></td> </tr> </tbody> </table> </div> <div class=tabbed-block> <table> <thead> <tr> <th>Executable</th> <th>Schemes</th> <th>Revisions</th> <th>Example</th> </tr> </thead> <tbody> <tr> <td><code>svn</code></td> <td><ul><li><code>svn+https</code></li><li><code>svn+ssh</code></li><li><code>svn+http</code> <img alt=⚠ class=twemoji src=https://twemoji.maxcdn.com/v/latest/svg/26a0.svg title=:warning:></li><li><code>svn+svn</code> <img alt=⚠ class=twemoji src=https://twemoji.maxcdn.com/v/latest/svg/26a0.svg title=:warning:></li><li><code>svn</code> <img alt=⚠ class=twemoji src=https://twemoji.maxcdn.com/v/latest/svg/26a0.svg title=:warning:></li></ul></td> <td><ul><li>Revision number</li></ul></td> <td><code>proj @ svn+file:///path/to/proj</code></td> </tr> </tbody> </table> </div> <div class=tabbed-block> <table> <thead> <tr> <th>Executable</th> <th>Schemes</th> <th>Revisions</th> <th>Example</th> </tr> </thead> <tbody> <tr> <td><code>bzr</code></td> <td><ul><li><code>bzr+https</code></li><li><code>bzr+ssh</code></li><li><code>bzr+sftp</code></li><li><code>bzr+lp</code></li><li><code>bzr+http</code> <img alt=⚠ class=twemoji src=https://twemoji.maxcdn.com/v/latest/svg/26a0.svg title=:warning:></li><li><code>bzr+ftp</code> <img alt=⚠ class=twemoji src=https://twemoji.maxcdn.com/v/latest/svg/26a0.svg title=:warning:></li></ul></td> <td><ul><li>Revision number</li><li>Tag name</li></ul></td> <td><code>proj @ bzr+lp:proj@v1</code></td> </tr> </tbody> </table> </div> </div> </div> <h3 id=local>Local<a class=headerlink href=#local title="Permanent link">¶</a></h3> <p>You can install local packages with the <code>file</code> scheme in the following format:</p> <div class=highlight><pre><span></span><code><NAME> @ file://<HOST>/<PATH>
|
|
</code></pre></div> <p>The <code><HOST></code> is only used on Windows systems, where it can refer to a network share. If omitted it is assumed to be <code>localhost</code> and the third slash must still be present.</p> <p>The <code><PATH></code> can refer to a source archive, a wheel, or a directory containing a Python package.</p> <table> <thead> <tr> <th>Type</th> <th>Unix</th> <th>Windows</th> </tr> </thead> <tbody> <tr> <td>Source archive</td> <td><code>proj @ file:///path/to/pkg.tar.gz</code></td> <td><code>proj @ file:///c:/path/to/pkg.tar.gz</code></td> </tr> <tr> <td>Wheel</td> <td><code>proj @ file:///path/to/pkg.whl</code></td> <td><code>proj @ file:///c:/path/to/pkg.whl</code></td> </tr> <tr> <td>Directory</td> <td><code>proj @ file:///path/to/pkg</code></td> <td><code>proj @ file:///c:/path/to/pkg</code></td> </tr> </tbody> </table> <div class="admonition tip"> <p class=admonition-title>Tip</p> <p>You may also specify paths relative to your project's root directory on all platforms by using <a href=../context/#paths>context formatting</a>:</p> <div class=highlight><pre><span></span><code><NAME> @ {root:uri}/pkg_inside_project
|
|
<NAME> @ {root:uri}/../pkg_alongside_project
|
|
</code></pre></div> </div> <h3 id=remote>Remote<a class=headerlink href=#remote title="Permanent link">¶</a></h3> <p>You can install source archives and wheels by simply referring to a URL:</p> <div class=highlight><pre><span></span><code>black @ https://github.com/psf/black/archive/refs/tags/21.10b0.zip
|
|
pytorch @ https://download.pytorch.org/whl/cu102/torch-1.10.0%2Bcu102-cp39-cp39-linux_x86_64.whl
|
|
</code></pre></div> <p>An expected hash value may be specified by appending a <code>#<HASH_ALGORITHM>=<EXPECTED_HASH></code> component:</p> <div class=highlight><pre><span></span><code>requests @ https://github.com/psf/requests/archive/refs/tags/v2.26.0.zip#sha256=eb729a757f01c10546ebd179ae2aec852dd0d7f8ada2328ccf4558909d859985
|
|
</code></pre></div> <p>If the hash differs from the expected hash, the installation will fail.</p> <p>It is recommended that only hashes which are unconditionally provided by the latest version of the standard library's <a href=https://docs.python.org/dev/library/hashlib.html>hashlib module</a> be used for hashes. As of Python 3.10, that list consists of:</p> <ul> <li><code>md5</code></li> <li><code>sha1</code></li> <li><code>sha224</code></li> <li><code>sha256</code></li> <li><code>sha384</code></li> <li><code>sha512</code></li> <li><code>blake2b</code></li> <li><code>blake2s</code></li> </ul> <h3 id=complex-syntax>Complex syntax<a class=headerlink href=#complex-syntax title="Permanent link">¶</a></h3> <p>The following is an example that uses <a href=#features>features</a> and <a href=#environment-markers>environment markers</a>:</p> <div class=highlight><pre><span></span><code>pkg[feature1,feature2] @ <REFERENCE> ; python_version < "3.7"
|
|
</code></pre></div> <p>Note that the space before the semicolon is required.</p> <aside class=md-source-file> <span class=md-source-file__fact> <span class=md-icon title="Date of last update"> <svg viewbox="0 0 24 24" xmlns=http://www.w3.org/2000/svg><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1-2.1-2M12.5 7v5.2l4 2.4-1 1L11 13V7h1.5M11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2v1.8Z"></path></svg> </span> <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">February 9, 2023</span> </span> </aside> </article> </div> <script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script> </div> </main> <footer class=md-footer> <nav aria-label=Footer class="md-footer__inner md-grid"> <a aria-label="Previous: Metadata" class="md-footer__link md-footer__link--prev" href=../metadata/ rel=prev> <div class="md-footer__button md-icon"> <svg viewbox="0 0 24 24" xmlns=http://www.w3.org/2000/svg><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"></path></svg> </div> <div class=md-footer__title> <div class=md-ellipsis> <span class=md-footer__direction> Previous </span> Metadata </div> </div> </a> <a aria-label="Next: Build" class="md-footer__link md-footer__link--next" href=../build/ rel=next> <div class=md-footer__title> <div class=md-ellipsis> <span class=md-footer__direction> Next </span> Build </div> </div> <div class="md-footer__button md-icon"> <svg viewbox="0 0 24 24" xmlns=http://www.w3.org/2000/svg><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4Z"></path></svg> </div> </a> </nav> <div class="md-footer-meta md-typeset"> <div class="md-footer-meta__inner md-grid"> <div class=md-copyright> <div class=md-copyright__highlight> Copyright © Ofek Lev 2017-present </div> <div> Logo by <a href=https://openai.com/dall-e-2/ rel=noopener target=_blank> DALL·E </a> and <a href=https://boriscrowther.com/ rel=noopener target=_blank> Boris Crowther </a> </div> Made with <a href=https://squidfunk.github.io/mkdocs-material/ rel=noopener target=_blank> Material for MkDocs </a> </div> <div class=md-social> <a class=md-social__link href=https://github.com/ofek rel=noopener target=_blank title=github.com> <svg viewbox="0 0 480 512" xmlns=http://www.w3.org/2000/svg><!-- Font Awesome Free 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc.--><path d="M186.1 328.7c0 20.9-10.9 55.1-36.7 55.1s-36.7-34.2-36.7-55.1 10.9-55.1 36.7-55.1 36.7 34.2 36.7 55.1zM480 278.2c0 31.9-3.2 65.7-17.5 95-37.9 76.6-142.1 74.8-216.7 74.8-75.8 0-186.2 2.7-225.6-74.8-14.6-29-20.2-63.1-20.2-95 0-41.9 13.9-81.5 41.5-113.6-5.2-15.8-7.7-32.4-7.7-48.8 0-21.5 4.9-32.3 14.6-51.8 45.3 0 74.3 9 108.8 36 29-6.9 58.8-10 88.7-10 27 0 54.2 2.9 80.4 9.2 34-26.7 63-35.2 107.8-35.2 9.8 19.5 14.6 30.3 14.6 51.8 0 16.4-2.6 32.7-7.7 48.2 27.5 32.4 39 72.3 39 114.2zm-64.3 50.5c0-43.9-26.7-82.6-73.5-82.6-18.9 0-37 3.4-56 6-14.9 2.3-29.8 3.2-45.1 3.2-15.2 0-30.1-.9-45.1-3.2-18.7-2.6-37-6-56-6-46.8 0-73.5 38.7-73.5 82.6 0 87.8 80.4 101.3 150.4 101.3h48.2c70.3 0 150.6-13.4 150.6-101.3zm-82.6-55.1c-25.8 0-36.7 34.2-36.7 55.1s10.9 55.1 36.7 55.1 36.7-34.2 36.7-55.1-10.9-55.1-36.7-55.1z"></path></svg> </a> <a class=md-social__link href=https://ofek.dev/words/ rel=noopener target=_blank title=ofek.dev> <svg viewbox="0 0 512 512" xmlns=http://www.w3.org/2000/svg><!-- Font Awesome Free 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc.--><path d="M192 32c0 17.7 14.3 32 32 32 123.7 0 224 100.3 224 224 0 17.7 14.3 32 32 32s32-14.3 32-32C512 128.9 383.1 0 224 0c-17.7 0-32 14.3-32 32zm0 96c0 17.7 14.3 32 32 32 70.7 0 128 57.3 128 128 0 17.7 14.3 32 32 32s32-14.3 32-32c0-106-86-192-192-192-17.7 0-32 14.3-32 32zm-96 16c0-26.5-21.5-48-48-48S0 117.5 0 144v224c0 79.5 64.5 144 144 144s144-64.5 144-144-64.5-144-144-144h-16v96h16c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48V144z"></path></svg> </a> <a class=md-social__link href=https://twitter.com/Ofekmeister rel=noopener target=_blank title=twitter.com> <svg viewbox="0 0 512 512" xmlns=http://www.w3.org/2000/svg><!-- Font Awesome Free 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc.--><path d="M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"></path></svg> </a> <a class=md-social__link href=https://www.linkedin.com/in/ofeklev/ rel=noopener target=_blank title=www.linkedin.com> <svg viewbox="0 0 448 512" xmlns=http://www.w3.org/2000/svg><!-- Font Awesome Free 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc.--><path d="M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"></path></svg> </a> </div> </div> </div> </footer> </div> <div class=md-dialog data-md-component=dialog> <div class="md-dialog__inner md-typeset"></div> </div> <script id=__config type=application/json>{"base": "../..", "features": ["navigation.sections", "navigation.expand", "navigation.tabs", "navigation.tabs.sticky", "navigation.instant"], "search": "../../assets/javascripts/workers/search.720157f5.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.config.lang": "en", "search.config.pipeline": "stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "version": {"provider": "mike"}}</script> <script src=../../assets/javascripts/bundle.b7e8f764.min.js></script> <script>document$.subscribe(() => {const lightbox = GLightbox({"touchNavigation": true, "loop": false, "zoomable": true, "draggable": true, "openEffect": "zoom", "closeEffect": "zoom", "slideEffect": "slide"});})</script></body> </html> |