Mercurial > piecrust2
comparison setup.py @ 678:551d06cc640c
cm: Don't raise an exception when no version file exists.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 07 Mar 2016 00:00:36 -0800 |
parents | a04288f199a5 |
children | 77cec2fa0e83 |
comparison
equal
deleted
inserted
replaced
677:a9b13c848b20 | 678:551d06cc640c |
---|---|
139 | 139 |
140 try: | 140 try: |
141 from piecrust.__version__ import APP_VERSION | 141 from piecrust.__version__ import APP_VERSION |
142 version = APP_VERSION | 142 version = APP_VERSION |
143 except ImportError: | 143 except ImportError: |
144 raise Exception("Can't get version from either a version file or " | 144 print( |
145 "from the repository.") | 145 "WARNING: Can't get version from version file. " |
146 "Will use version `0.0`.") | |
147 version = '0.0' | |
146 | 148 |
147 | 149 |
148 install_requires = read('requirements.txt').splitlines() | 150 install_requires = read('requirements.txt').splitlines() |
149 tests_require = read('dev-requirements.txt').splitlines() | 151 tests_require = read('dev-requirements.txt').splitlines() |
150 | 152 |