Add conf files
This commit is contained in:
parent
2427030b91
commit
5bc1446dd3
9 changed files with 215 additions and 0 deletions
13
.gitignore
vendored
Normal file
13
.gitignore
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
.bundle/
|
||||
.sass-cache/
|
||||
.tox/
|
||||
build/
|
||||
dist/
|
||||
vendor/
|
||||
venv/
|
||||
|
||||
*~
|
||||
*.egg-info
|
||||
*.pyc
|
||||
*.swp
|
||||
*coverage*
|
5
Gemfile
Normal file
5
Gemfile
Normal file
|
@ -0,0 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
source "https://rubygems.org"
|
||||
|
||||
gem 'compass'
|
||||
gem 'font-awesome-sass', :git => "https://github.com/TruePath/font-awesome-sass.git", :branch => "patch-1"
|
40
Gemfile.lock
Normal file
40
Gemfile.lock
Normal file
|
@ -0,0 +1,40 @@
|
|||
GIT
|
||||
remote: https://github.com/TruePath/font-awesome-sass.git
|
||||
revision: b3974fe0632d09a7744c4a3b42f4ccf8dc9f919e
|
||||
branch: patch-1
|
||||
specs:
|
||||
font-awesome-sass (4.7.0)
|
||||
sass (>= 3.2)
|
||||
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
chunky_png (1.3.8)
|
||||
compass (1.0.3)
|
||||
chunky_png (~> 1.2)
|
||||
compass-core (~> 1.0.2)
|
||||
compass-import-once (~> 1.0.5)
|
||||
rb-fsevent (>= 0.9.3)
|
||||
rb-inotify (>= 0.9)
|
||||
sass (>= 3.3.13, < 3.5)
|
||||
compass-core (1.0.3)
|
||||
multi_json (~> 1.0)
|
||||
sass (>= 3.3.0, < 3.5)
|
||||
compass-import-once (1.0.5)
|
||||
sass (>= 3.2, < 3.5)
|
||||
ffi (1.9.18)
|
||||
multi_json (1.12.1)
|
||||
rb-fsevent (0.10.2)
|
||||
rb-inotify (0.9.10)
|
||||
ffi (>= 0.5.0, < 2)
|
||||
sass (3.4.25)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
compass
|
||||
font-awesome-sass!
|
||||
|
||||
BUNDLED WITH
|
||||
1.15.3
|
3
MANIFEST.in
Normal file
3
MANIFEST.in
Normal file
|
@ -0,0 +1,3 @@
|
|||
include LICENSE README.rst
|
||||
|
||||
recursive-include allauth_ens/templates *
|
31
config.rb
Normal file
31
config.rb
Normal file
|
@ -0,0 +1,31 @@
|
|||
require 'compass/import-once/activate'
|
||||
# Require any additional compass plugins here.
|
||||
require 'font-awesome-sass'
|
||||
|
||||
# Set this to the root of your project when deployed:
|
||||
http_path = '/'
|
||||
|
||||
sass_dir = 'allauth_ens/scss'
|
||||
|
||||
static_dir = 'allauth_ens/static/allauth_ens/'
|
||||
|
||||
css_dir = static_dir
|
||||
javascripts_dir = static_dir
|
||||
images_dir = static_dir + 'images'
|
||||
fonts_dir = static_dir + 'fonts'
|
||||
|
||||
# You can select your preferred output style here (can be overridden via the command line):
|
||||
# output_style = :expanded or :nested or :compact or :compressed
|
||||
|
||||
# To enable relative paths to assets via compass helper functions. Uncomment:
|
||||
# relative_assets = true
|
||||
|
||||
# To disable debugging comments that display the original location of your selectors. Uncomment:
|
||||
# line_comments = false
|
||||
|
||||
|
||||
# If you prefer the indented syntax, you might want to regenerate this
|
||||
# project again passing --syntax sass, or you can uncomment this:
|
||||
# preferred_syntax = :sass
|
||||
# and then run:
|
||||
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
|
16
runtests.py
Normal file
16
runtests.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
import os
|
||||
import sys
|
||||
|
||||
import django
|
||||
from django.conf import settings
|
||||
from django.test.utils import get_runner
|
||||
|
||||
if __name__ == '__main__':
|
||||
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
|
||||
django.setup()
|
||||
TestRunner = get_runner(settings)
|
||||
test_runner = TestRunner()
|
||||
failures = test_runner.run_tests(sys.argv[1:])
|
||||
sys.exit(bool(failures))
|
18
setup.cfg
Normal file
18
setup.cfg
Normal file
|
@ -0,0 +1,18 @@
|
|||
[flake8]
|
||||
# E731: lambda expression
|
||||
ignore = E731
|
||||
|
||||
[isort]
|
||||
combine_as_imports = True
|
||||
default_section = THIRDPARTY
|
||||
include_trailing_comma = True
|
||||
known_allauth = allauth
|
||||
known_future_library = future,six
|
||||
known_django = django
|
||||
known_first_party = allauth_ens
|
||||
multi_line_output = 5
|
||||
not_skip = __init__.py
|
||||
sections = FUTURE,STDLIB,DJANGO,ALLAUTH,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
|
||||
|
||||
[bdist_wheel]
|
||||
universal = 1
|
51
setup.py
Normal file
51
setup.py
Normal file
|
@ -0,0 +1,51 @@
|
|||
import os
|
||||
|
||||
from setuptools import find_packages, setup
|
||||
|
||||
from allauth_ens import __version__
|
||||
|
||||
BASE_DIR = os.path.dirname(__file__)
|
||||
|
||||
with open(os.path.join(BASE_DIR, 'README.rst')) as readme:
|
||||
README = readme.read()
|
||||
|
||||
setup(
|
||||
name='django-allauth-ens',
|
||||
version=__version__,
|
||||
description=(
|
||||
"Providers for django-allauth allowing using the ENS' auth-systems."
|
||||
),
|
||||
author='cof-geek',
|
||||
author_email='cof-geek@ens.fr',
|
||||
keywords='django allauth cas authentication',
|
||||
long_description=README,
|
||||
url='https://git.eleves.ens.fr/cof-geek/django-allauth-ens',
|
||||
classifiers=[
|
||||
'Development Status :: 3 - Alpha',
|
||||
'Environment :: Web Environment',
|
||||
'Framework :: Django',
|
||||
'Framework :: Django :: 1.8',
|
||||
'Framework :: Django :: 1.9',
|
||||
'Framework :: Django :: 1.10',
|
||||
'Framework :: Django :: 1.11',
|
||||
'Intended Audience :: Developers',
|
||||
'License :: OSI Approved :: MIT License',
|
||||
'Operating System :: OS Independent',
|
||||
'Programming Language :: Python',
|
||||
'Programming Language :: Python :: 2',
|
||||
'Programming Language :: Python :: 2.7',
|
||||
'Programming Language :: Python :: 3',
|
||||
'Programming Language :: Python :: 3.4',
|
||||
'Programming Language :: Python :: 3.5',
|
||||
'Programming Language :: Python :: 3.6',
|
||||
'Topic :: Internet :: WWW/HTTP',
|
||||
],
|
||||
license='MIT',
|
||||
packages=find_packages(exclude=['tests']),
|
||||
include_package_data=True,
|
||||
install_requires=[
|
||||
'django-allauth',
|
||||
'django-allauth-cas',
|
||||
'django-widget-tweaks',
|
||||
],
|
||||
)
|
38
tox.ini
Normal file
38
tox.ini
Normal file
|
@ -0,0 +1,38 @@
|
|||
[tox]
|
||||
envlist =
|
||||
py{27,34,35}-django{18,19,110}
|
||||
py{27,34,35,36}-django111,
|
||||
cov_combine,
|
||||
flake8,
|
||||
isort
|
||||
|
||||
[testenv]
|
||||
deps =
|
||||
django18: django>=1.8,<1.9
|
||||
django19: django>=1.9,<1.10
|
||||
django110: django>=1.10,<1.11
|
||||
django111: django>=1.11,<2.0
|
||||
coverage
|
||||
mock ; python_version < "3.0"
|
||||
usedevelop= True
|
||||
commands =
|
||||
python -V
|
||||
coverage run \
|
||||
--branch \
|
||||
--source=allauth_ens --omit=*migrations* \
|
||||
--parallel-mode \
|
||||
runtests.py {posargs}
|
||||
|
||||
[testenv:cov_combine]
|
||||
deps = coverage
|
||||
commands =
|
||||
coverage combine
|
||||
coverage report --show-missing
|
||||
|
||||
[testenv:flake8]
|
||||
deps = flake8
|
||||
commands = flake8 allauth_ens tests
|
||||
|
||||
[testenv:isort]
|
||||
deps = isort
|
||||
commands = isort --recursive --check-only --diff allauth_ens tests
|
Loading…
Reference in a new issue