Skip to content

Commit

Permalink
Test with poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
lra committed Nov 4, 2023
1 parent 1fb14d3 commit 136a7e7
Show file tree
Hide file tree
Showing 5 changed files with 136 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- "3.12"
container: python:${{ matrix.python-version }}
steps:
- run: pip install pipenv
- run: pip install pipx
- run: pipx install poetry
- uses: actions/checkout@v2
- run: pipenv install -d
- run: make test
13 changes: 4 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
develop:
pipenv run python setup.py develop

undevelop:
pipenv run python setup.py develop --uninstall

lint:
# Install mdl with "gem install mdl"
mdl .

test:
pipenv run nosetests --with-coverage --cover-tests --cover-inclusive --cover-branches --cover-package=mackup
poetry install --with dev
poetry run nosetests --with-coverage --cover-tests --cover-inclusive --cover-branches --cover-package=mackup

clean:
rm -rf dist/
rm -rf Mackup.egg-info/

release: clean
pipenv run python setup.py sdist
pipenv run twine upload dist/*
poetry build
poetry publish

black:
black --target-version py310 .
2 changes: 1 addition & 1 deletion mackup/constants.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Constants used in Mackup."""
# Current version
VERSION = "0.8.37"
VERSION = "0.8.38"

# Support platforms
PLATFORM_DARWIN = "Darwin"
Expand Down
103 changes: 103 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[tool.poetry]
name = "mackup"
version = "0.8.38"
description = "Keep your application settings in sync (macOS/Linux)"
authors = ["Laurent Raufaste <[email protected]>"]
license = "GPLv3"
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.8"
docopt = "^0.6.2"
six = "^1.16.0"

[tool.poetry.group.dev]
optional = true

[tool.poetry.group.dev.dependencies]
nose = "^1.3.7"
coverage = "^7.3.2"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.scripts]
mackup = "mackup.main:main"

0 comments on commit 136a7e7

Please sign in to comment.