Skip to content

Commit

Permalink
Add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlemos committed Oct 15, 2019
1 parent 6402d60 commit 2c97495
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ jobs:
build:
docker:
- image: circleci/python:3.7.4
environment:
POETRY_VERSION: 1.0.0a5
steps:
- checkout
- run:
Expand All @@ -14,18 +12,16 @@ jobs:
- run:
name: Setup
command: |
sudo pip install poetry==${POETRY_VERSION}
sudo pip install pre-commit
make setup
mkdir -p /home/circleci/.config/pypoetry/
echo "[repositories]" > /home/circleci/.config/pypoetry/config.toml
poetry config settings.virtualenvs.create false
pre-commit install-hooks
- run:
name: Lint
command: pre-commit run --all-files
command: make lint
- run:
name: Build
command: |
poetry build
command: make build
- store_artifacts:
path: dist
path: dist
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
POETRY_VERSION := 1.0.0a5

setup:
pip install poetry==$(POETRY_VERSION)
pip install pre-commit
pre-commit install-hooks

build:
poetry build

install: build
poetry install
cmus-osx install --force

lint:
pre-commit run --all-files

release: lint build
poetry version
poetry publish
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,20 @@ export PYTHON_CONFIGURE_OPTS="--enable-framework"
cmus-osx config
```

## Development

Prepare environment
```
make setup
```

Make changes and install new version
```
make install
```

Poetry will recognise when running from virtualenv.

### Credits
* [azadkuh](https://github.com/azadkuh): all versions up to and including v1.2.0
* [PhilipTrauner](https://github.com/PhilipTrauner): all following versions

0 comments on commit 2c97495

Please sign in to comment.