Skip to content

Commit eb4ba63

Browse files
committed
docs: document the Pixi development workflow
Add a "Development (with Pixi)" section to the README and install docs, and refresh the stale CONTRIBUTING dev-setup (it still referenced pharokka and `python setup.py develop`) to use `pixi install` / `pixi run`.
1 parent 0dcd367 commit eb4ba63

3 files changed

Lines changed: 39 additions & 13 deletions

File tree

CONTRIBUTING.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,33 +57,33 @@ If you are proposing a feature:
5757
Get Started!
5858
------------
5959
60-
Ready to contribute? Here's how to set up `phrokka` for local development.
60+
Ready to contribute? Here's how to set up `plassembler` for local development.
6161
62-
1. Fork the `phrokka` repo on GitHub.
62+
1. Fork the `plassembler` repo on GitHub.
6363
2. Clone your fork locally::
6464
65-
$ git clone git@github.com:your_name_here/phrokka.git
65+
$ git clone git@github.com:your_name_here/plassembler.git
6666
67-
3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development::
67+
3. `plassembler` uses Pixi (https://pixi.sh) for development. Install the
68+
environment - this pulls `plassembler` (editable) and all of its external
69+
dependencies (Flye, Unicycler, samtools, mash, ...)::
6870
69-
$ mkvirtualenv phrokka
70-
$ cd phrokka/
71-
$ python setup.py develop
71+
$ cd plassembler/
72+
$ pixi install
7273
7374
4. Create a branch for local development::
7475
7576
$ git checkout -b name-of-your-bugfix-or-feature
7677
7778
Now you can make your changes locally.
7879
79-
5. When you're done making changes, check that your changes pass flake8 and the
80-
tests, including testing other Python versions with tox::
80+
5. When you're done making changes, check that the formatting/lint and the
81+
tests pass::
8182
82-
$ flake8 phrokka tests
83-
$ python setup.py test or pytest
84-
$ tox
83+
$ pixi run check-fmt
84+
$ pixi run test
8585
86-
To get flake8 and tox, just pip install them into your virtualenv.
86+
`pixi run fmt` will auto-format the code with ruff.
8787
8888
6. Commit your changes and push your branch to GitHub::
8989

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,19 @@ cd plassembler
247247
pip install -e .
248248
```
249249

250+
### Development (with Pixi)
251+
252+
For development, `plassembler` uses [Pixi](https://pixi.sh). `pixi install` creates an environment containing `plassembler` (editable) along with **all** of its external dependencies (Flye, Unicycler, SPAdes, mash, samtools, minimap2, fastp, chopper, Raven, canu, dnaapler):
253+
254+
```
255+
git clone https://github.com/gbouras13/plassembler.git
256+
cd plassembler
257+
pixi install
258+
pixi run plassembler --help
259+
```
260+
261+
`pixi run <cmd>` runs a command inside the project environment (e.g. `pixi run test` to run the test suite), and `pixi shell` activates it.
262+
250263
## Unicycler v0.5.0 Installation Issues
251264

252265
`plassembler` works best with Unicycler v0.5.0. With Unicycler v0.4.8, `plassembler` should still run without any issue and provide a satisfactory assembly, but you will be warned of this when you run `plassembler`. `plassembler` will not work with any older version of Unicycler.

docs/install.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,19 @@ cd plassembler
4747
pip install -e .
4848
```
4949

50+
### Development (with Pixi)
51+
52+
For development, plassembler uses [Pixi](https://pixi.sh). `pixi install` creates an environment containing plassembler (editable) along with all of its external dependencies (Flye, Unicycler, SPAdes, mash, samtools, minimap2, fastp, chopper, Raven, canu, dnaapler):
53+
54+
```
55+
git clone https://github.com/gbouras13/plassembler.git
56+
cd plassembler
57+
pixi install
58+
pixi run plassembler --help
59+
```
60+
61+
`pixi run <cmd>` runs a command inside the project environment (e.g. `pixi run test` runs the test suite), and `pixi shell` activates it.
62+
5063
## Unicycler v0.5.0 Installation Issues
5164

5265
`plassembler` works best with Unicycler v0.5.0. With Unicycler v0.4.8, `plassembler` should still run without any issue and provide a satisfactory assembly, but you will be warned of this when you run `plassembler`. `plassembler` will not work with any older version of Unicycler.

0 commit comments

Comments
 (0)