From ddb36e59b96c904a09aff3ebc35259ee9522d462 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Sun, 13 Jun 2010 19:48:37 -0400 Subject: easy_install kind of works --- setup.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 setup.py (limited to 'setup.py') diff --git a/setup.py b/setup.py new file mode 100644 index 00000000..1a40d4c4 --- /dev/null +++ b/setup.py @@ -0,0 +1,30 @@ +import ez_setup +ez_setup.use_setuptools() +from setuptools import setup, find_packages + +setup( + name = "askbot", + version = "0.6.0", + packages = find_packages(), + author = 'Evgeny.Fadeev', + author_email = 'evgeny.fadeev@gmail.com', + license = 'GPLv3', + keywords = 'forum, community, wiki, Q&A', + url = 'http://askbot.org', + include_package_data = True, + install_requires = [ + 'django==1.1.2', + 'django-debug-toolbar==0.7.0', + 'South', + 'recaptcha-client', + 'markdown2', + 'html5lib', + 'python-openid', + 'django-keyedcache', + 'mysql-python', + ], + long_description = """Open Source Question and Answer forum. + Based on CNPROG project by Mike Chen and Sailing Cai, project + is inspired by StackOverflow. + """, +) -- cgit v1.2.3-1-g7c22 From 85a3c85a887e4caf21a8d79b71fe41cc94aacc64 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Mon, 14 Jun 2010 01:34:58 -0400 Subject: conditionally removed mysql-python from windows setup.py --- setup.py | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 1a40d4c4..0afe72b2 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,21 @@ import ez_setup ez_setup.use_setuptools() from setuptools import setup, find_packages +import sys + +install_requires = [ + 'django==1.1.2', + 'django-debug-toolbar==0.7.0', + 'South', + 'recaptcha-client', + 'markdown2', + 'html5lib', + 'python-openid', + 'django-keyedcache', +] +WIN_PLATFORMS = ('win32', 'cygwin',) +if sys.platform not in WIN_PLATFORMS: + install_requires.append('mysql-python') setup( name = "askbot", @@ -12,19 +27,13 @@ setup( keywords = 'forum, community, wiki, Q&A', url = 'http://askbot.org', include_package_data = True, - install_requires = [ - 'django==1.1.2', - 'django-debug-toolbar==0.7.0', - 'South', - 'recaptcha-client', - 'markdown2', - 'html5lib', - 'python-openid', - 'django-keyedcache', - 'mysql-python', - ], + install_requires = install_requires, long_description = """Open Source Question and Answer forum. Based on CNPROG project by Mike Chen and Sailing Cai, project - is inspired by StackOverflow. + inspired by StackOverflow. """, ) + +if sys.platform in WIN_PLATFORMS: + print 'ATTENTION!! please install windows binary mysql-python package' + print 'at http://www.codegood.com/archives/4' -- cgit v1.2.3-1-g7c22 From 9d2c4337d8ae0ec8c9f1903dcc3b613c80449b5b Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Tue, 15 Jun 2010 01:09:39 -0400 Subject: basic deployment script works --- setup.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 0afe72b2..2074d27b 100644 --- a/setup.py +++ b/setup.py @@ -25,6 +25,11 @@ setup( author_email = 'evgeny.fadeev@gmail.com', license = 'GPLv3', keywords = 'forum, community, wiki, Q&A', + entry_points = { + 'console_scripts' : [ + 'startforum = askbot.deployment:startforum', + ] + }, url = 'http://askbot.org', include_package_data = True, install_requires = install_requires, @@ -37,3 +42,13 @@ setup( if sys.platform in WIN_PLATFORMS: print 'ATTENTION!! please install windows binary mysql-python package' print 'at http://www.codegood.com/archives/4' + +print '**************************************************************' +print '* *' +print '* Thanks for installing Askbot. *' +print '* To start deploying type: >startforum *' +print '* Please take a look at the manual askbot/doc/INSTALL *' +print '* And please do not hesitate to ask your questions at *' +print '* at http://askbot.org *' +print '* *' +print '**************************************************************' -- cgit v1.2.3-1-g7c22 From c0c7dbcfe24a7f2d8b4d16d122e278d079c297c6 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Tue, 15 Jun 2010 01:57:27 -0400 Subject: small changes for easy_install packaging --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 2074d27b..39b408c3 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,8 @@ if sys.platform not in WIN_PLATFORMS: setup( name = "askbot", - version = "0.6.0", + version = "0.6.1", + description = 'Question and Answer forum, like StackOverflow, written in python and Django', packages = find_packages(), author = 'Evgeny.Fadeev', author_email = 'evgeny.fadeev@gmail.com', -- cgit v1.2.3-1-g7c22