From 8e20981fbb0762a33f0917394bbc2a153dd32d81 Mon Sep 17 00:00:00 2001 From: Daniel Graham Date: Wed, 25 Dec 2024 13:05:09 -0500 Subject: [PATCH 1/2] Added custom clean command to setup.py to clean the dist/ build/ and *.egg-info/ directories before building the new version. --- setup.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/setup.py b/setup.py index b183ab8..06ba3d3 100644 --- a/setup.py +++ b/setup.py @@ -2,9 +2,20 @@ import os from setuptools import find_packages, setup +from setuptools.command.clean import clean as Clean from modules.__version__ import version + +class CleanCommand(Clean): + """Custom clean command to tidy up the project root.""" + + def run(self): + Clean.run(self) + for directory in ["dist", "build", "*.egg-info"]: + os.system(f"rm -rf {directory}") + + DESCRIPTION = "Record and report times spent in various activities." here = os.path.abspath(os.path.dirname(__file__)) @@ -24,6 +35,7 @@ author="Daniel A Graham", author_email="dnlgrhm@gmail.com", packages=find_packages(), + cmdclass={"clean": CleanCommand}, install_requires=[ "click", "click-shell", From 34736c9d453ef0f67a7b7a1710ad67ff5e8863e8 Mon Sep 17 00:00:00 2001 From: Daniel Graham Date: Wed, 25 Dec 2024 13:05:29 -0500 Subject: [PATCH 2/2] Tagged version 0.0.17. --- CHANGES.txt | 12 ++++++------ modules/__version__.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 2a43356..56d95e5 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,5 +1,9 @@ -Recent tagged changes as of 2024-12-25 12:56:14.612729: -- 0 seconds ago (HEAD -> working, tag: 0.0.16) Daniel Graham +Recent tagged changes as of 2024-12-25 13:05:29.623690: +- 0 seconds ago (HEAD -> working, tag: 0.0.17) Daniel Graham + f8677ea 2024-12-25 13:05:29 -0500 + Tagged version 0.0.17. + +- 9 minutes ago (tag: 0.0.16) Daniel Graham 040ad27 2024-12-25 12:56:14 -0500 Tagged version 0.0.16. @@ -74,7 +78,3 @@ Recent tagged changes as of 2024-12-25 12:56:14.612729: - 12 days ago (tag: 0.0.0rc6) Daniel Graham b540cb0 2024-12-13 13:52:34 -0500 Tagged version 0.0.0rc6. - -- 12 days ago (tag: 0.0.0rc5) Daniel Graham - 0f4ad78 2024-12-13 13:41:35 -0500 - Tagged version 0.0.0rc5. diff --git a/modules/__version__.py b/modules/__version__.py index 3226e19..cb9928d 100755 --- a/modules/__version__.py +++ b/modules/__version__.py @@ -1 +1 @@ -version = '0.0.16' \ No newline at end of file +version = '0.0.17' \ No newline at end of file