Skip to content

Commit 8c08f0f

Browse files
committed
feat: modernize for python 3.11+
1 parent ec2f582 commit 8c08f0f

File tree

17 files changed

+673
-851
lines changed

17 files changed

+673
-851
lines changed

Makefile

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,39 @@
11
export TWINE_USERNAME=nonlogicaldev
2-
export VERSION=$(shell pipenv run python -c 'exec(open("dotter/version.py").read()); print(__version__)')
32

4-
.PHONY: install
5-
install:
6-
pip install -e .
3+
.PHONY: version
4+
version:
5+
@poetry version -s
6+
7+
.PHONY: version.tag
8+
version.tag: TAG_VERSION=v$(shell poetry version -s)
9+
version.tag:
10+
git tag "$(TAG_VERSION)"
11+
git push origin "$(TAG_VERSION)"
12+
13+
.PHONY: version.bump-minor
14+
version.bump-minor:
15+
poetry version minor
16+
17+
.PHONY: version.bump-patch
18+
version.bump-patch:
19+
poetry version patch
720

821
.PHONY: deps
922
deps:
10-
pipenv sync
23+
poetry install
1124

1225
.PHONY: dist
1326
dist:
14-
pipenv run python3 setup.py sdist
27+
poetry build
28+
29+
.PHONY: dist.release.pypi
30+
dist.release.pypi:
31+
poetry release
32+
33+
.PHONY: dist.release.gh
34+
dist.release.gh: dist
35+
gh release create $(shell $(MAKE) version) ./dist
1536

1637
.PHONY: clean
1738
clean:
18-
-rm -rf build
1939
-rm -rf dist
20-
-rm -rf *.egg-info
21-
22-
pip.tag:
23-
git tag $(VERSION)
24-
25-
pip.release: clean dist
26-
pipenv run twine upload --repository testpypi dist/*
27-
28-
pip.release.prod: clean dist
29-
pipenv run twine upload dist/*

Pipfile

Lines changed: 0 additions & 16 deletions
This file was deleted.

Pipfile.lock

Lines changed: 0 additions & 217 deletions
This file was deleted.

bin/dotter

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)