[arch-projects] [namcap][PATCH 0/4] Add --version argument
*** BLURB HERE *** Added a --version argument to Namcap, since when I tried figuring out which version I had installed, I had to ask Pacman (there might be a simpler way, but I didn't figure it out). Patch 2 updates the current version number in the man-page. This is only done since I wanted to add a check that the version in the program is the same as the version in the manpage. Rikard Falkeborn (4): Remove obsolete version test Update manpage version and date Extract version from setup.py Add --version argument Namcap/tests/test_version.py | 37 +++++++++++++++++++++++++++++++++++++ Namcap/version.py | 25 +++++++++++++++++++++++++ namcap.1 | 5 ++++- namcap.py | 10 ++++++++-- setup.py | 3 ++- tests/version-check | 26 -------------------------- 6 files changed, 76 insertions(+), 30 deletions(-) create mode 100644 Namcap/tests/test_version.py create mode 100644 Namcap/version.py delete mode 100755 tests/version-check -- 2.4.6
This file has not been updated since version 2.3, and noone seems
to care about it. Remove it.
---
tests/version-check | 26 --------------------------
1 file changed, 26 deletions(-)
delete mode 100755 tests/version-check
diff --git a/tests/version-check b/tests/version-check
deleted file mode 100755
index 3edb4ac..0000000
--- a/tests/version-check
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-# This file is part of the namcap test suite.
-# It checks whether the version in namcap is the
-# same throughout the program and documentation.
-# Author: Abhishek Dasgupta
--- namcap.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/namcap.1 b/namcap.1 index 9729699..70bb21c 100644 --- a/namcap.1 +++ b/namcap.1 @@ -1,4 +1,4 @@ -.TH namcap 1 "June 14, 2010" "namcap 2.6" "User Commands" +.TH namcap 1 "July 10, 2015" "namcap 3.2.5" "User Commands" .SH NAME namcap \- package analysis utility .SH SYNOPSIS -- 2.4.6
This will make it possible to reuse the function, and avoid
having the version number defined in multiple places.
---
Namcap/version.py | 25 +++++++++++++++++++++++++
setup.py | 3 ++-
2 files changed, 27 insertions(+), 1 deletion(-)
create mode 100644 Namcap/version.py
diff --git a/Namcap/version.py b/Namcap/version.py
new file mode 100644
index 0000000..9885d35
--- /dev/null
+++ b/Namcap/version.py
@@ -0,0 +1,25 @@
+# -*- coding: utf-8 -*-
+#
+# namcap - version
+# Copyright (c) 2015 Rikard Falkeborn
* namcap --version or namcap -v prints the version and exits
* Update manpage with the the new option
* Add a test that the manpage version is the same as the program version
---
Namcap/tests/test_version.py | 37 +++++++++++++++++++++++++++++++++++++
namcap.1 | 3 +++
namcap.py | 10 ++++++++--
3 files changed, 48 insertions(+), 2 deletions(-)
create mode 100644 Namcap/tests/test_version.py
diff --git a/Namcap/tests/test_version.py b/Namcap/tests/test_version.py
new file mode 100644
index 0000000..3a7e685
--- /dev/null
+++ b/Namcap/tests/test_version.py
@@ -0,0 +1,37 @@
+# -*- coding: utf-8 -*-
+#
+# namcap tests - tests for the version module
+# Copyright (C) 2015 Rikard Falkeborn
participants (1)
-
Rikard Falkeborn