From 59111255985ef7df8df07b2167ff0c1b1054bb4b Mon Sep 17 00:00:00 2001 From: "N. Tessa Pierce-Ward" Date: Wed, 1 May 2024 09:00:40 -0700 Subject: [PATCH] upd makefile --- .github/workflows/build-test.yml | 2 +- Makefile | 27 ++++++++++++++++++++------- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index fe713da..62f4912 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -2,7 +2,7 @@ name: "maturin build" on: pull_request: push: - branches: [latest] + branches: [main] jobs: mamba: runs-on: ubuntu-latest diff --git a/Makefile b/Makefile index 28d3504..b9a6680 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,23 @@ -all: test +PYTHON ?= python -test: - python -m pytest - -install-dev: - python -m pip install -e . +all: + maturin develop install: - python -m pip install . + $(PYTHON) -m pip install -e . + +clean: + $(PYTHON) -m pip uninstall . + +test: + $(PYTHON) -m pytest + +wheel: + $(PYTHON) -m maturin build -r + +sdist: + rm -f target/wheels/sourmash_plugin_directsketch-*.tar.gz + $(PYTHON) -m maturin sdist + +upload_sdist: sdist + twine upload target/wheels/sourmash_plugin_directsketch-*.tar.gz