[python-dtcwt] 34/497: set version indicating this is a pre-release

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:05:46 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/sid
in repository python-dtcwt.

commit dd0f75d8ad3cfc53e2666c1c41c634c16acdc682
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date:   Wed Aug 7 18:02:36 2013 +0100

    set version indicating this is a pre-release
---
 docs/conf.py | 10 +---------
 setup.cfg    |  1 -
 setup.py     | 21 ++++++++++++++++++---
 3 files changed, 19 insertions(+), 13 deletions(-)

diff --git a/docs/conf.py b/docs/conf.py
index cae368a..9b131cb 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -40,17 +40,9 @@ source_suffix = '.rst'
 master_doc = 'index'
 
 # General information about the project.
-project = u'dtcwt'
 copyright = u'2013, Rich Wareham, Nick Kingsbury, Cian Shaffrey'
 
-# The version info for the project you're documenting, acts as replacement for
-# |version| and |release|, also used in various other places throughout the
-# built documents.
-#
-# The short X.Y version.
-version = '0.2.1'
-# The full version, including alpha/beta/rc tags.
-release = '0.2.1'
+# Project name, version and release are set in setup.py
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
diff --git a/setup.cfg b/setup.cfg
index 0095a84..a9217f6 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -7,4 +7,3 @@ all_files  = 1
 with-coverage = 1
 cover-package = dtcwt
 cover-html = 1
-
diff --git a/setup.py b/setup.py
index 3c542b0..fcd60c6 100644
--- a/setup.py
+++ b/setup.py
@@ -8,9 +8,14 @@ from setuptools import setup, find_packages
 def read(fname):
     return open(os.path.join(os.path.dirname(__file__), fname)).read()
 
+# IMPORTANT: before release, remove the 'devN' tag from the release name
+name = 'dtcwt'
+version = '0.3'
+release = '0.3.0.dev1'
+
 setup(
-    name = "dtcwt",
-    version = "0.2.1",
+    name = name,
+    version = release,
     author = "Rich Wareham",
     author_email = "rich.dtcwt at richwareham.com",
     description = ("A port of the Dual-Tree Complex Wavelet Transform MATLAB toolbox."),
@@ -24,10 +29,20 @@ setup(
         "License :: Free To Use But Restricted",
     ],
     package_data = {
-	'dtcwt': ['data/*.mat',],
+        'dtcwt': ['data/*.mat',],
     },
 
     setup_requires=['nose>=1.0','coverage','sphinx','setuptools-git >= 0.3',],
 
     install_requires=['numpy','scipy',],
+
+    command_options = {
+        'build_sphinx': {
+            'project': ( 'setup.py', name ),
+            'version': ( 'setup.py', version ),
+            'release': ( 'setup.py', release ),
+        },
+    },
 )
+
+# vim:sw=4:sts=4:et

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-dtcwt.git



More information about the debian-science-commits mailing list