Skip to content

Commit

Permalink
Eat your own dog food. Use make for CI & update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rafelafrance committed Apr 10, 2024
1 parent 8c5bf35 commit fcc9cbd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ jobs:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install .
pip install git+https://github.com/rafelafrance/common_utils.git@main#egg=common_utils
pip install git+https://github.com/rafelafrance/spell-well.git@main#egg=spell-well
pip install git+https://github.com/rafelafrance/traiter.git@master#egg=traiter
python -m spacy download en_core_web_md
make install
- name: Test with unittest
run: |
export MOCK_DATA=1; python -m unittest discover
make test
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PIP_INSTALL=$(PYTHON) -m pip install
SPACY_MODEL=$(PYTHON) -m spacy download en_core_web_md

test:
$(PYTHON) -m unittest discover
export MOCK_DATA=1; $(PYTHON) -m unittest discover

install: venv
source $(VENV)/bin/activate
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ And I also split some functionality out to enable me to use it in other projects
- `LabelTraiter`: Parsing treatments (this repo) and herbarium labels are now separate repositories.
- https://github.com/rafelafrance/LabelTraiter

I should also mention that this repository builds upon other repositories:
- `common_utils`: This is just a grab bag of simple utilities I used in several other project. I got tired of having to change every repository that used them each time there was an edit, so I just put them here.
- `https://github.com/rafelafrance/common_utils`
- `spell-well`: Is a super simple "delete-only" spell checker I wrote. There may be better options now, but it survives until I can find one that handles our particular needs.
- `https://github.com/rafelafrance/spell-well`
- `traiter`: This is the base code for all the rule-based parsers (aka traiters) that I write. The details change but the underlying process is the same for all.
- `https://github.com/rafelafrance/traiter`

## All right, what's this all about then?
**Challenge**: Extract trait information from plant treatments. That is, if I'm given treatment text like: (Reformatted to emphasize targeted traits.)

Expand Down

0 comments on commit fcc9cbd

Please sign in to comment.