Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ jobs:
- name: Install Hatch
run: |
pip install hatch
- name: Pin virtualenv for Python 3.9
if: matrix.python == '3.9'
run: |
pip install 'virtualenv<21'
- name: Install dependencies
run: |
hatch run test:pip freeze
Expand Down
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ clean: ## Clean intermediate build files
rm -rf dist/
.PHONY: clean

build: clean dev ## Build the package (source distribution)
python setup.py sdist
build: clean ## Build the package (source distribution + wheel)
hatch build
.PHONY: build

dev: clean ## Setup development environment
pip install .[dev]
hatch env create
.PHONY: dev

test: dev ## Run tests
.tools/ci.sh
test: ## Run tests
hatch run test:test
.PHONY: test

release: build ## Release to PyPi
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
hatch publish
.PHONY: release
Loading