-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bc8b6fd
Showing
15 changed files
with
245 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
.ropeproject/ | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*,cover | ||
.hypothesis/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
#Ipython Notebook | ||
.ipynb_checkpoints |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Copyright 2018 Tobias Kunze | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
recursive-include pretalx_downstream/static * | ||
recursive-include pretalx_downstream/templates * | ||
recursive-include pretalx_downstream/locale * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
all: localecompile | ||
|
||
localecompile: | ||
django-admin compilemessages | ||
|
||
localegen: | ||
django-admin makemessages -l de_DE -i build -i dist -i "*egg*" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
pretalx as a downstream service | ||
========================== | ||
|
||
This is a plugin for `pretalx`_. | ||
|
||
Development setup | ||
----------------- | ||
|
||
1. Make sure that you have a working `pretalx development setup`_. | ||
|
||
2. Clone this repository, eg to ``local/pretalx-downstream``. | ||
|
||
3. Activate the virtual environment you use for pretalx development. | ||
|
||
4. Execute ``python setup.py develop`` within this directory to register this application with pretalx's plugin registry. | ||
|
||
5. Execute ``make`` within this directory to compile translations. | ||
|
||
6. Restart your local pretalx server. You can now use the plugin from this repository for your events by enabling it in | ||
the 'plugins' tab in the settings. | ||
|
||
|
||
License | ||
------- | ||
|
||
Copyright 2018 Tobias Kunze | ||
|
||
Released under the terms of the Apache License 2.0 | ||
|
||
|
||
.. _pretalx: https://github.com/pretalx/pretalx | ||
.. _pretalx development setup: https://docs.pretalx.org/en/latest/developer/setup.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from django.apps import AppConfig | ||
from django.utils.translation import ugettext_lazy | ||
|
||
|
||
class PluginApp(AppConfig): | ||
name = 'pretalx_downstream' | ||
verbose_name = 'pretalx as a downstream service' | ||
|
||
class PretalxPluginMeta: | ||
name = ugettext_lazy('pretalx as a downstream service') | ||
author = 'Tobias Kunze' | ||
description = ugettext_lazy('This plugin allows you to use pretalx passively, by letting it import another event's schedule.') | ||
visible = True | ||
version = '0.0.0' | ||
|
||
def ready(self): | ||
from . import signals # NOQA | ||
|
||
|
||
default_app_config = 'pretalx_downstream.PluginApp' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# SOME DESCRIPTIVE TITLE. | ||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | ||
# This file is distributed under the same license as the PACKAGE package. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2018-06-19 08:17-0500\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
"Language: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
|
||
#: local/pretalx-plugin-cookiecutter/pretalx-downstream/pretalx_downstream/__init__.py:10 | ||
msgid "pretalx as a downstream service" | ||
msgstr "" | ||
|
||
#: local/pretalx-plugin-cookiecutter/pretalx-downstream/pretalx_downstream/__init__.py:12 | ||
msgid "This plugin allows you to use pretalx passively, by letting it import another event's schedule." | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: \n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2018-05-15 01:02-0500\n" | ||
"PO-Revision-Date: \n" | ||
"Last-Translator: Tobias Kunze\n" | ||
"Language-Team: \n" | ||
"Language: de\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
|
||
#: local/pretalx-plugin-cookiecutter/pretalx-downstream/pretalx_downstream/__init__.py:10 | ||
msgid "pretalx as a downstream service" | ||
msgstr "" | ||
|
||
#: local/pretalx-plugin-cookiecutter/pretalx-downstream/pretalx_downstream/__init__.py:12 | ||
msgid "This plugin allows you to use pretalx passively, by letting it import another event's schedule." | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Register your receivers here |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[pylama] | ||
ignore = E501, | ||
skip = */settings.py,*/celery_app.py,*.ropeproject/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[pytest] | ||
DJANGO_SETTINGS_MODULE=pretalx.testutils.settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[isort] | ||
balanced_wrapping = True | ||
combine_as_imports = True | ||
default_section = THIRDPARTY | ||
include_trailing_comma = True | ||
known_third_party = pretalx | ||
line_length = 80 | ||
multi_line_output = 5 | ||
not_skip = __init__.py | ||
skip = migrations,setup.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import os | ||
from distutils.command.build import build | ||
|
||
from django.core import management | ||
from setuptools import setup, find_packages | ||
|
||
|
||
try: | ||
with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as f: | ||
long_description = f.read() | ||
except Exception: | ||
long_description = '' | ||
|
||
|
||
class CustomBuild(build): | ||
def run(self): | ||
management.call_command('compilemessages', verbosity=1, interactive=False) | ||
build.run(self) | ||
|
||
|
||
cmdclass = { | ||
'build': CustomBuild | ||
} | ||
|
||
|
||
setup( | ||
name='pretalx-downstream', | ||
version='0.0.0', | ||
description='This plugin allows you to use pretalx passively, by letting it import another event\'s schedule.', | ||
long_description=long_description, | ||
url='https://github.com/pretalx/pretalx-downstream', | ||
author='Tobias Kunze', | ||
author_email='[email protected]', | ||
license='Apache Software License', | ||
|
||
install_requires=[], | ||
packages=find_packages(exclude=['tests', 'tests.*']), | ||
include_package_data=True, | ||
cmdclass=cmdclass, | ||
entry_points=""" | ||
[pretalx.plugin] | ||
pretalx_downstream=pretalx_downstream:PretalxPluginMeta | ||
""", | ||
) |