This repository has been archived by the owner on Oct 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsetup.py
61 lines (54 loc) · 1.81 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from distutils.core import Command
class TestCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
from django.conf import settings
settings.configure(
DATABASES={
'default': {
'NAME': ':memory:',
'ENGINE': 'django.db.backends.sqlite3'
}
},
INSTALLED_APPS=('calaccess_campaign_browser',),
MIDDLEWARE_CLASSES=()
)
from django.core.management import call_command
import django
if django.VERSION[:2] >= (1, 7):
django.setup()
call_command('test', 'calaccess_campaign_browser')
setup(
name='django-calaccess-campaign-browser',
version='0.1.1',
license='MIT',
description='A Django app to refine and investigate campaign finance data \
drawn from the California Secretary of State’s CAL-ACCESS database. \
This is a work in progress. Its analysis should be considered as \
provisional until it is further tested and debugged.',
url='http://django-calaccess-campaign-browser.californiacivicdata.org',
author='California Civic Data Coalition',
author_email='[email protected]',
packages=find_packages(),
include_package_data=True,
zip_safe=False, # because we're including static files
install_requires=(
'django-calaccess-raw-data==0.1.2',
'django==1.7',
'csvkit>=0.6.1',
'python-dateutil==2.2',
'mysqlclient>=1.3.6',
'hurry.filesize>=0.9',
'django-tastypie>=0.11.1',
'beautifulsoup4>=4.3.2',
'pypyodbc==1.3.3',
),
cmdclass={'test': TestCommand,}
)