Commits

Ralph Bean committed 279ab76 Merge

Merge branch 'release/2.0.0'

  • Participants
  • Parent commits f47ed3c, 57c7dfd

Comments (0)

Files changed (7)

+include README.rst
 recursive-include tw2/excanvas/static *
-include README.rst
+recursive-include tests *.py
 tw2.excanvas
 ============
 
-:Author: Ralph Bean <ralph.bean@gmail.com>
+:Author: Ralph Bean <rbean@redhat.com>
 
 .. comment: split here
 

File development-deps/develop-tw2-destroy-and-setup.sh

-#!/bin/bash -e
-
-devbase=development-deps
-venv=$devbase/virtualenv-tw2.jquery
-$(
-    rm -rf $venv
-) || echo "Did not destroy $venv"
-
-virtualenv $venv --no-site-packages
-
-source $venv/bin/activate
-
-pushd $devbase
-
-pip install genshi
-pip install mako
-pip install formencode
-
-hg clone http://bitbucket.org/paj/tw2core || \
-        (pushd tw2core && hg pull && popd)
-hg clone http://bitbucket.org/paj/tw2devtools || \
-        (pushd tw2devtools && hg pull && popd)
-hg clone http://bitbucket.org/paj/tw2forms || \
-        (pushd tw2forms && hg pull && popd)
-hg clone http://bitbucket.org/toscawidgets/tw2jquery || \
-        (pushd tw2jquery && hg pull && popd)
-git clone http://github.com/ralphbean/tw2.jqplugins.ui.git || \
-        (pushd tw2.jqplugins.ui && git pull && popd)
-#hg clone https://ralphbean@bitbucket.org/toscawidgets/tw2jquery || \
-#        (pushd tw2jquery && hg pull && popd)
-
-pushd tw2core ;  python setup.py install ; popd
-pushd tw2forms ; python setup.py install ; popd
-pushd tw2devtools ; python setup.py install ; popd
-pushd tw2jquery ; python setup.py install_lib install_egg_info ; popd
-pushd tw2.jqplugins.ui ; python setup.py install_lib install_egg_info ; popd
-
-popd # $devbase

File development-deps/develop-tw2-start.sh

-#!/bin/bash
-
-devbase=development-deps
-venv=$devbase/virtualenv-tw2.jquery
-source $venv/bin/activate
-
-python setup.py install_lib install_egg_info && paster tw2.browser
-
-
-

File python-tw2-excanvas.spec

+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+%global modname tw2.excanvas
+
+Name:           python-tw2-excanvas
+Version:        2.0.0
+Release:        1%{?dist}
+Summary:        Excanvas for ToscaWidgets2
+
+Group:          Development/Languages
+License:        MIT
+URL:            http://toscawidgets.org
+Source0:        http://pypi.python.org/packages/source/t/%{modname}/%{modname}-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:      noarch
+
+# For building
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+BuildRequires:  python-tw2-core
+
+# For tests
+BuildRequires:  python-nose
+BuildRequires:  python-BeautifulSoup
+BuildRequires:  python-genshi
+
+# Runtime requirements
+Requires:       python-tw2-core
+
+%description
+Simple excanvas resource wrapper for ToscaWidgets2.
+
+%prep
+%setup -q -n %{modname}-%{version}
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf %{buildroot}
+%{__python} setup.py install -O1 --skip-build \
+    --install-data=%{_datadir} --root %{buildroot}
+
+%check
+PYTHONPATH=$(pwd) python setup.py test
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc README.rst
+%{python_sitelib}/*
+
+%changelog
+* Wed Apr 11 2012 Ralph Bean <rbean@redhat.com> - 2.0.0-1
+- Initial packaging for Fedora
 from setuptools import setup, find_packages
 
+try:
+    import multiprocessing, logging
+except Exception:
+    pass
+
 setup(
     name='tw2.excanvas',
-    version='2.0a1',
+    version='2.0.0',
     description='toscawidgets2 wrapper for excanvas.js resource',
     long_description='',
     author='Ralph Bean',
-    author_email='ralph.bean@gmail.com',
+    author_email='rbean@redhat.com',
     license='MIT',
-    url='http://github.com/ralphbean/tw2.excanvas',
+    url='http://github.com/toscawidgets/tw2.excanvas',
     install_requires=[
         "tw2.core>=2.0b2",
+        "tw2.forms",
         ],
-    packages=find_packages(exclude=['ez_setup', 'tests']),
+    tests_require = ['nose', 'BeautifulSoup', 'genshi'],
+    packages=['tw2', 'tw2.excanvas'],
     namespace_packages = ['tw2'],
     zip_safe=False,
     include_package_data=True,
     test_suite = 'nose.collector',
-    tests_require = ['nose', 'BeautifulSoup', 'genshi'],
     entry_points="""
         [tw2.widgets]
         # Register your widgets so they can be listed in the WidgetBrowser
         'toscawidgets.widgets',
     ],
     classifiers = [
-        'Development Status :: 3 - Alpha',
+        'Development Status :: 5 - Production/Stable',
         'Environment :: Web Environment',
         'Environment :: Web Environment :: ToscaWidgets',
         'Topic :: Software Development :: Libraries :: Python Modules',

File tests/__init__.py

Empty file added.