@@ -128,68 +128,7 @@ paths = ["src/my_project"]
128128
129129````
130130
131- ````{tab-item} pip
132- :sync: pip
133131
134- Create a `pyproject.toml` file for project configuration:
135-
136- ```toml
137- [project]
138- name = "my_project"
139- version = "0.1.0"
140- requires-python = ">=3.10"
141- dependencies = ["pytask"]
142-
143- [build-system]
144- requires = ["hatchling"]
145- build-backend = "hatchling.build"
146-
147- [tool.pytask.ini_options]
148- paths = ["src/my_project"]
149- ```
150-
151- Also create a `requirements.txt` file:
152-
153- ```text
154- pytask
155- ```
156-
157- ````
158-
159- ````{tab-item} conda/mamba
160- :sync: conda
161-
162- Create an `environment.yml` file that includes the editable install:
163-
164- ```yaml
165- name: my_project
166- channels:
167- - conda-forge
168- dependencies:
169- - python>=3.10
170- - pytask
171- - pip
172- - pip:
173- - -e .
174- ```
175-
176- And a `pyproject.toml` file for project configuration:
177-
178- ```toml
179- [project]
180- name = "my_project"
181- version = "0.1.0"
182- requires-python = ">=3.10"
183-
184- [build-system]
185- requires = ["hatchling"]
186- build-backend = "hatchling"
187-
188- [tool.pytask.ini_options]
189- paths = ["src/my_project"]
190- ```
191-
192- ````
193132`````
194133
195134The ` [tool.pytask.ini_options] ` section tells pytask to look for tasks in
@@ -227,33 +166,4 @@ pixi automatically creates the environment and installs dependencies. pixi will
227166
228167````
229168
230- ````{tab-item} pip
231- :sync: pip
232-
233- ```console
234- $ pip install -e .
235- ```
236-
237- This creates an editable install where changes in the package's source files are immediately available in the installed version.
238-
239- ````
240-
241- ````{tab-item} conda/mamba
242- :sync: conda
243-
244- ```console
245- $ conda env create -f environment.yml
246- $ conda activate my_project
247- ```
248-
249- Or with mamba:
250-
251- ```console
252- $ mamba env create -f environment.yml
253- $ mamba activate my_project
254- ```
255-
256- The editable install is automatically handled by the `pip: -e .` entry in `environment.yml`.
257-
258- ````
259169`````
0 commit comments