Permalink
Browse files

Automate release process

  • Loading branch information...
1 parent 54542d1 commit c60457bf89ded6ea58293693d85f562f27d57d22 kwlzn committed Aug 10, 2012
Showing with 58 additions and 42 deletions.
  1. +5 −5 TODO
  2. +1 −0 VERSION
  3. +52 −37 setup.py
View
10 TODO
@@ -14,17 +14,17 @@
[x] fix serving of non-mp3 files/outside of root dir; use relative paths to cwd
[x] keep trying to load remaining tracks if a track 404's
-trunk/0.3
+0.3
[x] make installable via python easy_install for quick setup
[x] fix README formatting problems
[x] fix loading of files with unicode characters in name (proper html entity conversion)
[x] drag/drop reordering
[x] fix modal visibility problem on start
+ [x] automate pypi upload: export COPYFILE_DISABLE=true; python setup.py sdist upload
+
+trunk/0.4
[ ] properly center the modal help window
- [ ] automate pypi upload:
- export COPYFILE_DISABLE=true
- python setup.py sdist upload
-
+
backlog
[ ] make prev track work in shuffle mode
[ ] markers / cue points
View
@@ -0,0 +1 @@
+0.3.0
View
@@ -1,42 +1,57 @@
-import os
+import os, sys, subprocess
from setuptools import setup, find_packages
def read(f):
return open(os.path.join(os.path.dirname(__file__), f)).read()
-setup(
- name='blast',
- version='0.2.0',
- description='a simple web-based, multi-platform music/mp3 player written in python, HTML/CSS and javascript',
- long_description=read('README.rst'),
- keywords='python wsgi web mp3 player javascript html music audio',
- author='kw',
- author_email='pypi@onoku.com',
- url='http://github.com/kwlzn/blast',
- license='BSD',
- zip_safe=False,
- packages=['blast'],
- package_data={ '': [ 'templates/*.html',
- 'static/*.js',
- 'static/*.css',
- 'static/*.ico',
- 'static/*.png',
- 'static/swf/*.swf',
- 'static/swf/*.zip' ] },
- install_requires=['flask'],
- entry_points={ 'console_scripts': [ 'blast = blast.main:main' ] },
- classifiers=[
- 'Development Status :: 4 - Beta',
- 'License :: OSI Approved :: BSD License',
- 'Environment :: Console',
- 'Environment :: Web Environment',
- 'Operating System :: OS Independent',
- 'Programming Language :: Python',
- 'Programming Language :: JavaScript',
- 'Topic :: Multimedia :: Sound/Audio :: Players :: MP3',
- 'Topic :: Internet :: WWW/HTTP :: WSGI',
- 'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
- 'Topic :: Internet :: WWW/HTTP',
- 'Topic :: Software Development :: Libraries :: Python Modules',
- ]
- )
+os.environ['COPYFILE_DISABLE'] = 'true' ## turn off annoying dot files on OSX
+
+if len(sys.argv) > 1 and sys.argv[1] == '--release':
+ print '[ Releasing! ]'
+ cmd = '%s setup.py sdist upload' % sys.executable
+ subprocess.call(cmd, shell=True)
+
+elif len(sys.argv) > 1 and sys.argv[1] == '--clean':
+ print '[ Cleaning up ]'
+ files = ['blast.egg-info', 'dist']
+ cmd = 'rm -rvf ' + ' '.join(files)
+ print 'Running command: %s' % cmd
+ subprocess.call(cmd, shell=True)
+
+else:
+ setup(
+ name='blast',
+ version=read('VERSION').strip(),
+ description='a simple web-based, multi-platform music/mp3 player written in python, HTML/CSS and javascript',
+ long_description=read('README.rst'),
+ keywords='python wsgi web mp3 player javascript html music audio',
+ author='kw',
+ author_email='pypi@onoku.com',
+ url='http://github.com/kwlzn/blast',
+ license='BSD',
+ zip_safe=False,
+ packages=['blast'],
+ package_data={ '': [ 'templates/*.html',
+ 'static/*.js',
+ 'static/*.css',
+ 'static/*.ico',
+ 'static/*.png',
+ 'static/swf/*.swf',
+ 'static/swf/*.zip' ] },
+ install_requires=['flask'],
+ entry_points={ 'console_scripts': [ 'blast = blast.main:main' ] },
+ classifiers=[
+ 'Development Status :: 4 - Beta',
+ 'License :: OSI Approved :: BSD License',
+ 'Environment :: Console',
+ 'Environment :: Web Environment',
+ 'Operating System :: OS Independent',
+ 'Programming Language :: Python',
+ 'Programming Language :: JavaScript',
+ 'Topic :: Multimedia :: Sound/Audio :: Players :: MP3',
+ 'Topic :: Internet :: WWW/HTTP :: WSGI',
+ 'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
+ 'Topic :: Internet :: WWW/HTTP',
+ 'Topic :: Software Development :: Libraries :: Python Modules',
+ ]
+ )

0 comments on commit c60457b

Please sign in to comment.