Commit 9a75eb6b authored by Jamesie Pic's avatar Jamesie Pic

Restructure to be a module of memopol

parent 811c90d0
This diff is collapsed.
include *.rst *.txt README LICENSE AUTHORS CHANGELOG
recursive-include representatives *.html *.css *.js *.py *.po *.mo *.json *.png *.gif
[![Build Status](https://travis-ci.org/political-memory/django-representatives.svg?branch=master)](https://travis-ci.org/political-memory/django-representatives)
[![codecov.io](https://codecov.io/github/political-memory/django-representatives/coverage.svg?branch=master)](https://codecov.io/github/political-memory/django-representatives?branch=master)
[![PyPi](https://badge.fury.io/py/django-representatives.png)](https://badge.fury.io/py/django-representatives)
[{
"id": "",
"personal": {
"first_name": "",
"last_name": "",
"full_name": "", // optinional
"gender": "", // optional
"birth_date": "",
"birth_place": "", // optinional
"cv": "", // optional
"photo": "", // optional
},
"contact": {
"emails": [{
"email": "",
"type": "", // optional
}],
"websites": [{
"website": "",
"type": "", // optional
}],
"phones": [{
"id": "", // needed for address
"phone": "",
"address": "for example \"the phone number of his office in the EP\"",
// optional, type foreignkey
"type": "fax, official, personnal etc ...", // optional
}],
"address": [{
"id": "", // needed for phone
"country": {
"name": "",
"code": "",
},
"city": "",
"street": "",
"number": "",
"postcode": "",
"floor": "", // optinional
"office_number": "", // optinional
"type": "stuff like \"his official office\"",
// optinional
"geo": { // optinional
"lon": "",
"lat": "",
},
"phones": [
"0039xxxx", // Foreign key to a phone instance from above
"0039xxxx",
]
}],
},
"mandates": [{
// a dude is elected for this country,
// in this political group,
// for this party, for this region etc...
"name": "",
"type": "group, committee, delegation ...",
"short_id": "country code, committee/group abbreviation ...",
// optinional
"url_official": "", // optional
"constituency": "country, voting districts, party, etc",
// optional
"role": "", // optional
// either we have membership date or only if it's the current one
"begin_date": "", // optinional
"end_date": "", // optinional
}
]
}]
[pytest]
DJANGO_SETTINGS_MODULE=representatives.tests.settings
addopts = --cov=representatives --create-db
from setuptools import find_packages, setup
setup(
name='django-representatives',
version='0.0.35',
description='Base app for government representative',
author='Laurent Peuch, Olivier Le Thanh Duong, Yohan Boniface, Arnaud Fabre, James Pic, Nicolas Joyard',
author_email='webmaster@memopol.org',
url='http://github.com/political-memory/django-representatives',
packages=find_packages(),
include_package_data=True,
license='GPLv3',
keywords='django government parliament',
install_requires=[
'django>=1.8,<1.9',
'ijson>=2,<3',
],
extras_require={
'celery': 'celery',
'api': [
'django-filter>=0.13,<0.14',
'django-rql-filter>=0.1.3,<0.2',
'djangorestframework>=3,<4',
],
'testing': [
'codecov>=2,<3',
'flake8>=2,<3',
'pep8>=1,<2',
'pytest>=2,<3',
'pytest-django>=2,<3',
'pytest-cov>=2,<3',
'django-responsediff>=0.6,<0.7'
]
},
entry_points={
'console_scripts': [
'parltrack_import_representatives = representatives.contrib.parltrack.import_representatives:main',
'francedata_import_representatives = representatives.contrib.francedata.import_representatives:main',
]
},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment