From 1629f9156fe2f7ec827fd3a942ea264da9780b59 Mon Sep 17 00:00:00 2001 From: rchaput Date: Sat, 2 Apr 2022 15:06:39 +0200 Subject: [PATCH] [release-v2] Added Makefile, ignore pycache This commit prepares the release of v2 by bumping the version in 'setup.py'. Added a Makefile to simplify the build / install / clean steps. Now ignoring the '__pycache__' folders in the gitignore. --- .gitignore | 1 + Makefile | 10 ++++++++++ setup.py | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 86cfc6f..f81523b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ .idea **/.cache +**/__pycache__ build/** dist/** XDG_Prefs.egg-info/** diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2ff3ad1 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +SRC = xdgprefs requirements.txt setup.py + +build-wheel: $(SRC) + python setup.py bdist_wheel + +install: $(SRC) + python setup.py install + +clean: + rm -rf build dist XDG_Prefs.egg-info diff --git a/setup.py b/setup.py index 92f68cc..1bdd679 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ def read(fname): setup( name='XDG-Prefs', - version='0.1', + version='0.2', packages=['xdgprefs', 'xdgprefs.core', 'xdgprefs.gui'], install_requires=['PySide2'],