Skip to content

Commit

Permalink
ready to release
Browse files Browse the repository at this point in the history
  • Loading branch information
lsbardel committed Mar 6, 2014
1 parent 35c7b1c commit b2432f4
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 28 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Ver. 0.8.0
Ver. 0.8.0 - 2014-Mar-06
===========================
* **Backward incompatible version**

Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ include LICENSE
include README.rst
include docs/make.bat
include docs/Makefile
recursive-include examples *
recursive-include examples *.py *.js *.css *.html
recursive-include pulsar/apps/test/plugins/htmlfiles *
recursive-include docs/source *
recursive-include extensions *.py *.pxd *.pyx *.h
Expand Down
28 changes: 28 additions & 0 deletions buildrelease.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import os
from datetime import datetime, date

import setup
from clean import rmfiles

rmfiles()
script = os.path.abspath(setup.__file__)

assert setup.mod.VERSION[3] == 'final'

with open('CHANGELOG.rst', 'r') as f:
changelog = f.read()

top = changelog.split('\n')[0]
version_date = top.split(' - ')
assert len(version_date) == 2, 'Top of CHANGELOG.rst must be version and date'
version, datestr = version_date
dt = datetime.strptime(datestr, '%Y-%b-%d').date()
assert dt == date.today()

assert version == 'Ver. %s' % setup.mod.__version__


setup.run(argv=[script, 'sdist'])


print('%s %s ready!' % (setup.package_name, setup.mod.__version__))
4 changes: 3 additions & 1 deletion clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ def rmgeneric(path, __func__):
return 0


def rmfiles(path, ext=None, rmcache=True):
def rmfiles(path=None, ext='pyc', rmcache=True):
path = path or os.curdir
if not os.path.isdir(path):
return 0
assert ext
trem = 0
tall = 0
files = os.listdir(path)
Expand Down
2 changes: 1 addition & 1 deletion pulsar/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -
'''Event driven concurrent framework for Python'''
VERSION = (0, 8, 0, 'beta', 6)
VERSION = (0, 8, 0, 'final', 0)

import os

Expand Down
5 changes: 0 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,6 @@ def run_setup(params=None):
else:
params['cmdclass']['install_data'] = install_data
argv = sys.argv
if len(argv) > 1 and argv[1] != 'sdist' and sys.version_info >= (3, 0):
try:
packages.remove('pulsar.utils.fallbacks.py2')
except ValueError:
pass
params.update({'name': package_fullname,
'version': mod.__version__,
'author': mod.__author__,
Expand Down
19 changes: 0 additions & 19 deletions testrelease.py

This file was deleted.

0 comments on commit b2432f4

Please sign in to comment.