Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate setup.py from distutils -> setuptools #99

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
*.pyc
*.py[cod]
.*
dist
MANIFEST

*.egg-info
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ Estuans (estuans)
bloynd
mrmachine (Tai Lee)
Ben Waters (the-ben-waters)
Peter Bittner (bittner)
18 changes: 9 additions & 9 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Django Form Designer
********************

A Django admin app with a GUI to create complex forms without any programming skills;
A Django admin app with a GUI to create complex forms without any programming skills;
complete with logging, validation, and redirects.

**Key features**:
Expand All @@ -10,10 +10,10 @@ complete with logging, validation, and redirects.
* Form data can be logged and CSV-exported, sent via e-mail, or forwarded to any web address
* Integration with `Django CMS <http://www.django-cms.org>`_: Add forms to any page
* Use drag & drop to change the position of your form fields
* Fully collapsible admin interface for better overview over your form
* Fully collapsible admin interface for better overview over your form
* Implements many form fields included with Django (TextField, EmailField, DateField etc)
* Validation rules as supplied by Django are fully configurable (maximum length, regular
expression etc)
* Validation rules as supplied by Django are fully configurable (maximum length, regular
expression etc)
* Customizable messages and labels
* Supports POST and GET forms
* Signals on form render, submission, success, error.
Expand All @@ -26,9 +26,9 @@ This install guide assumes that you are familiar with Python and Django.

- Install the module using pip::

$ pip install git+git://github.com/philomat/django-form-designer.git#egg=django-form-designer
$ pip install git+git://github.com/samluescher/django-form-designer.git#egg=django-form-designer

**or** download it from http://github.com/philomat/django-form-designer, and run the installation
**or** download it from https://github.com/samluescher/django-form-designer, and run the installation
script::

$ python setup.py install
Expand Down Expand Up @@ -80,10 +80,10 @@ Basic setup
public, this step is not necessary.


Using Django Form Designer with Django CMS
Using Django Form Designer with Django CMS
==========================================

- Add ``form_designer.contrib.cms_plugins.form_designer_form`` to your ``INSTALLED_APPS``
- Add ``form_designer.contrib.cms_plugins.form_designer_form`` to your ``INSTALLED_APPS``
setting::

INSTALLED_APPS = (
Expand All @@ -95,7 +95,7 @@ Using Django Form Designer with Django CMS

$ manage.py syncdb

You can now add forms to pages created with Django CMS.
You can now add forms to pages created with Django CMS.


Optional requirements
Expand Down
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
max-line-length = 120
max-complexity = 10
exclude = build,dist,*/migrations,*.egg-info
39 changes: 25 additions & 14 deletions setup.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,23 +1,34 @@
#!/usr/bin/env python
# encoding=utf8
import os
from distutils.core import setup
from pip.req import parse_requirements
from os.path import dirname, join
from setuptools import setup


def read_requirements():
filepath = join(dirname(__file__), 'requirements.txt')
generator = parse_requirements(filepath, session=False)
return [str(requirement.req) for requirement in generator]


def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
return open(join(dirname(__file__), fname)).read()

README = read('README.rst')

setup(
name = "django-form-designer",
version = "0.8.0",
url = 'http://github.com/philomat/django-form-designer',
license = 'BSD',
description = "Design contact forms, search forms etc from the Django admin, without writing any code. Integrates with Django CMS.",
long_description = README,
name="django-form-designer",
version="0.8.0",
url='https://github.com/samluescher/django-form-designer',
license='BSD',
description="Design contact forms, search forms etc from the Django admin,"
" without writing any code. Integrates with Django CMS.",
long_description=README,

author = 'Samuel Luescher',
author_email = 'sam at luescher dot org',
packages = [
author='Samuel Luescher',
author_email='sam at luescher dot org',
install_requires=read_requirements(),
packages=[
'form_designer',
'form_designer.migrations',
'form_designer.templatetags',
Expand All @@ -26,7 +37,7 @@ def read(fname):
'form_designer.contrib.cms_plugins',
'form_designer.contrib.cms_plugins.form_designer_form',
],
package_data = {
package_data={
'form_designer': [
'static/form_designer/js/*.js',
'templates/admin/form_designer/formlog/change_list.html',
Expand All @@ -37,7 +48,7 @@ def read(fname):
'locale/*/LC_MESSAGES/*',
],
},
classifiers = [
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: Django',
'Intended Audience :: Developers',
Expand Down