Skip to content

Commit

Permalink
added basic setuptools support
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelmartins committed Jun 2, 2011
1 parent f9f51cf commit d924835
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .hgignore
Expand Up @@ -4,4 +4,4 @@ syntax: glob
*.py[co]
*.mo

pidsim
pidsim.web*
25 changes: 25 additions & 0 deletions README.rst
@@ -0,0 +1,25 @@
PIDSIM web-based interface package
==================================

This package implements a basic web-based interface for PIDSIM using
Flask microframework.

If you need some help with the use, or can help with the development,
please contact the author via email or visit our project website:

http://pidsim.org/

All the help is welcome! :)


Basic installation
~~~~~~~~~~~~~~~~~~

To install, type::

# python setup.py install

or use pip::

# pip install pidsim-web

File renamed without changes.
2 changes: 2 additions & 0 deletions pidsim/__init__.py
@@ -0,0 +1,2 @@
__import__('pkg_resources').declare_namespace(__name__)

9 changes: 9 additions & 0 deletions pidsim/web/__init__.py
Expand Up @@ -9,6 +9,15 @@
:license: GPL-2, see LICENSE for more details.
"""

__all__ = ['app']
__author__ = 'Rafael Goncalves Martins'
__email__ = 'rafael@rafaelmartins.eng.br'
__description__ = 'A web-based interface for PIDSIM'
__url__ = 'http://pidsim.org/'
__copyright__ = '(c) 2010 %s' % __author__
__license__ = 'GPL-2'
__version__ = '0.1pre'

from flask import Flask, render_template, make_response, jsonify, request, \
session, url_for
from flaskext.babel import Babel, get_locale, _
Expand Down
39 changes: 39 additions & 0 deletions setup.py
@@ -0,0 +1,39 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from setuptools import setup
import pidsim.web as pidsim_web

setup(
name = 'pidsim.web',
version = pidsim_web.__version__,
license = pidsim_web.__license__,
description = pidsim_web.__description__,
long_description = open('README.rst').read(),
author = pidsim_web.__author__,
author_email = pidsim_web.__email__,
url = pidsim_web.__url__,
platforms = 'any',
packages = [
'pidsim.web',
],
namespace_packages = ['pidsim'],
scripts = ['pidsim-web'],
zip_safe = False,
include_package_data = True,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Topic :: Education',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)

0 comments on commit d924835

Please sign in to comment.