Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
henryk committed Jun 5, 2018
0 parents commit 45cd640
Show file tree
Hide file tree
Showing 13 changed files with 201 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .gitignore
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
10 changes: 10 additions & 0 deletions .isort.cfg
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_first_party = byro
line_length = 80
multi_line_output = 5
not_skip = __init__.py
skip = migrations,settings.py,wsgi.py,celery_app.py
13 changes: 13 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2018 Henryk Plötz

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.
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
recursive-include byro_fints/static *
recursive-include byro_fints/templates *
recursive-include byro_fints/locale *
30 changes: 30 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Byro FinTS/HBCI 3.0 plugin
==========================

This is a plugin for `byro`_.

Development setup
-----------------

1. Make sure that you have a working byro development setup`.

2. Clone this repository, eg to ``local/byro-fints``.

3. Activate the virtual environment you use for byro development.

4. Execute ``python setup.py develop`` within this directory to register this application with byro's plugin registry.

5. Restart your local byro server. The plugin is now in use.

6. To generate local translation files: ``django-admin makemessages -l de -i build -i dist -i "*egg*"``


License
-------

Copyright 2018 Henryk Plötz

Released under the terms of the Apache License 2.0


.. _byro: https://github.com/byro/byro
20 changes: 20 additions & 0 deletions byro_fints/__init__.py
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 = 'byro_fints'
verbose_name = 'Byro FinTS/HBCI 3.0 plugin'

class ByroPluginMeta:
name = ugettext_lazy('Byro FinTS/HBCI 3.0 plugin')
author = 'Henryk Plötz'
description = ugettext_lazy('Byro plugin to retrieve bank statements via FinTS 3.0 (formerly known as HBCI)')
visible = True
version = '0.0.0'

def ready(self):
from . import signals # NOQA


default_app_config = 'byro_fints.PluginApp'
12 changes: 12 additions & 0 deletions byro_fints/locale/de/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-07 19:01+0100\n"
"PO-Revision-Date: \n"
"Last-Translator: Henryk Plötz\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"
3 changes: 3 additions & 0 deletions byro_fints/pylama.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[pylama]
ignore = E501,
skip = */settings.py,*/migrations/*,manage.py
1 change: 1 addition & 0 deletions byro_fints/signals.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Register your receivers here
Empty file.
Empty file.
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pytest]
DJANGO_SETTINGS_MODULE = byro.settings
44 changes: 44 additions & 0 deletions setup.py
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:
long_description = ''


class CustomBuild(build):
def run(self):
management.call_command('compilemessages', verbosity=1, interactive=False)
build.run(self)


cmdclass = {
'build': CustomBuild
}


setup(
name='byro-fints',
version='1.0.0',
description='Byro plugin to retrieve bank statements via FinTS 3.0 (formerly known as HBCI)',
long_description=long_description,
url='https://github.com/henryk/byro-fints',
author='Henryk Plötz',
author_email='[email protected]',
license='Apache Software License',

install_requires=[],
packages=find_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
cmdclass=cmdclass,
entry_points="""
[byro.plugin]
byro_fints=byro_fints:ByroPluginMeta
""",
)

0 comments on commit 45cd640

Please sign in to comment.