Compare commits

...

3 commits

Author SHA1 Message Date
Lance Edgar
a0b35dfadb Remove custom PyPI stuff from Fabric release task. 2014-04-28 14:28:54 -07:00
Lance Edgar
8fabdf8b72 update changelog 2014-04-28 14:27:32 -07:00
Lance Edgar
73978ffeb7 Allow config file to prevent logging configuration from happening. 2014-04-28 14:26:21 -07:00
4 changed files with 9 additions and 14 deletions

View file

@ -1,4 +1,10 @@
0.1.2
-----
* Allow config file to prevent logging configuration from happening.
0.1.1 0.1.1
----- -----

View file

@ -1 +1 @@
__version__ = '0.1.1' __version__ = '0.1.2'

View file

@ -89,7 +89,8 @@ def init(appname='edbob', *args, **kwargs):
shell = kwargs.get('shell', False) shell = kwargs.get('shell', False)
for paths in config_paths: for paths in config_paths:
config.read(paths, recurse=not shell) config.read(paths, recurse=not shell)
config.configure_logging() if config.getboolean('edbob', 'configure_logging', default=True):
config.configure_logging()
default_modules = 'edbob.time' default_modules = 'edbob.time'
modules = config.get('edbob', 'init', default=default_modules) modules = config.get('edbob', 'init', default=default_modules)

12
fabfile.py vendored
View file

@ -22,27 +22,15 @@
# #
################################################################################ ################################################################################
import os.path
import shutil import shutil
from fabric.api import * from fabric.api import *
execfile(os.path.join(os.path.dirname(__file__), 'edbob', '_version.py'))
@task @task
def release(): def release():
""" """
Release a new version of 'edbob'. Release a new version of 'edbob'.
""" """
shutil.rmtree('edbob.egg-info') shutil.rmtree('edbob.egg-info')
local('python setup.py sdist --formats=gztar register upload') local('python setup.py sdist --formats=gztar register upload')
filename = 'edbob-{0}.tar.gz'.format(__version__)
put(os.path.join('dist', filename), '/srv/pypi/{0}'.format(filename))
with cd('/srv/pypi'):
run('rm --recursive --force simple')
run('compoze index')