Commit 1052c293 authored by Mathieu Bridon's avatar Mathieu Bridon

Add some project stuff

This is mostly taken from Ideascube, with modifications, as it will be
useful.
parent 921eb9bc
This diff is collapsed.
# -- Development --------------------------------------------------------------
develop:
pip3 install --no-binary=:all: -r requirements-dev.txt
migrate:
python3 manage.py migrate --database=default
python3 manage.py migrate --database=transient
# -- Translations -------------------------------------------------------------
collect_translations:
python3 manage.py makemessages --all --no-obsolete --ignore=debian --ignore=storage -d django
python3 manage.py makemessages --all --no-obsolete --ignore=debian --ignore=storage --ignore=tinymce -d djangojs
push_translations:
tx push -s
pull_translations:
tx pull --all --force
compile_translations:
python3 manage.py compilemessages
# -- Testing ------------------------------------------------------------------
test:
py.test
test-coverage:
py.test --cov=irfi
quality-check:
py.test --flakes -m flakes
check-missing-migrations:
python manage.py makemigrations
git status --porcelain | grep -E '^\?\? ' && exit 1 || :
=================
Ideascube for RFI
=================
This project is a customized version of Ideascube, tailored to the needs of the
RFI Planète Radio project.
-r requirements.txt
-r https://framagit.org/ideascube/ideascube/raw/master/requirements-dev.txt
-r https://framagit.org/ideascube/ideascube/raw/master/requirements.txt
git+https://framagit.org/ideascube/ideascube.git@master#egg=ideascube
[coverage:run]
branch = True
omit =
irfi/tests/*
irfi/wsgi.py
irfi/management/commands/dummydata.py
irfi/management/commands/import_legacy.py
irfi/migrations/*
irfi/settings.py
[coverage:report]
fail_under = 92
precision = 2
show_missing = true
[tool:pytest]
addopts = --create-db --nomigrations
testpaths = irfi/
DJANGO_SETTINGS_MODULE=irfi.settings
usefixtures = setup_dirs
filterwarnings =
error::DeprecationWarning:irfi.*
import os
from setuptools import setup, find_packages
import ideascube
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst'), 'r') as f:
long_description = f.read()
setup(
name='ideascube',
version=ideascube.__version__,
description=('This Django repository is the main application of the Ideas '
'Box server.'),
long_description=long_description,
url='https://framagit.org/irfi/irfi/',
author='BSF IT Team',
author_email='it@bibliosansfrontieres.org',
license='MIT',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 3 - Alpha',
('License :: OSI Approved :: GNU Affero General Public License v3 or '
'later (AGPLv3+)'),
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.4',
],
packages=find_packages(),
include_package_data=True,
)
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