Let's try setting up the version number via configure.ac
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 22 Feb 2015 05:45:21 +0000 (23:45 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 22 Feb 2015 05:45:21 +0000 (23:45 -0600)
Why not?

.gitignore
configure.ac
mediagoblin/_version.py.in [moved from mediagoblin/_version.py with 96% similarity]

index 4f9b4cb2c5229e6abb66ad54c12354ca60d32925..a38c65a96aae4467f1e358b4fb49829a02c808a7 100644 (file)
@@ -32,6 +32,7 @@
 
 # pyconfigure/automake generated files
 /Makefile
+/mediagoblin/_version.py
 /autom4te.cache/
 /config.log
 /config.status
index 99484906df1cf83d5b34f81929b067c6f4c80723..b4438d5c34aa79a78cba394b96012ad52f007c2f 100644 (file)
@@ -46,6 +46,16 @@ dnl 2) package version (i.e. 1.2)
 dnl 3) bug/info/project email address (i.e. bug-foo@gnu.org)
 dnl----
 dnl
+
+dnl # valid version formats:
+dnl # * x.y      - final release
+dnl # * x.ya1    - alpha 1
+dnl # * x.yb1    - beta 1
+dnl # * x.yrc1   - release candidate 1
+dnl # * x.y.dev  - dev
+dnl 
+dnl # see http://www.python.org/dev/peps/pep-0386/
+
 AC_INIT([mediagoblin], [0.8.1.dev], [cwebber@gnu.org])
 
 
@@ -145,7 +155,7 @@ dnl Finish #
 dnl#########
 
 dnl Define the files to be configured
-AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([Makefile] [mediagoblin/_version.py])
 
 dnl Generate config.status
 AC_OUTPUT
similarity index 96%
rename from mediagoblin/_version.py
rename to mediagoblin/_version.py.in
index b82f3f1fe4efceb7124abecbc5a012aa11da1ae8..d180f750250fc30ea8d91161b8785c16d43937d3 100644 (file)
@@ -23,4 +23,4 @@
 
 # see http://www.python.org/dev/peps/pep-0386/
 
-__version__ = "0.7.2.dev"
+__version__ = "@PACKAGE_VERSION@"