Move licence in setup.py, fix modelines, module and package doctrings.

This commit is contained in:
Alexis Lahouze 2017-05-19 00:05:23 +02:00
parent e1190c872d
commit e64ea7b3d1
13 changed files with 33 additions and 159 deletions

View File

@ -1,19 +1,7 @@
"""
This file is part of Accountant.
"""The accountant package."""
Accountant is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
# vim: set tw=80 ts=4 sw=4 sts=4:
Accountant is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with Accountant. If not, see <http://www.gnu.org/licenses/>.
"""
import click
from flask import Flask

View File

@ -1,19 +1,7 @@
"""
This file is part of Accountant.
"""Package containing models."""
Accountant is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
# vim: set tw=80 ts=4 sw=4 sts=4:
Accountant is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with Accountant. If not, see <http://www.gnu.org/licenses/>.
"""
import pkgutil
from flask_sqlalchemy import SQLAlchemy

View File

@ -1,19 +1,7 @@
"""
This file is part of Accountant.
"""Module containing account related models."""
Accountant is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
# vim: set tw=80 ts=4 sw=4 sts=4:
Accountant is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with Accountant. If not, see <http://www.gnu.org/licenses/>.
"""
# pylint: disable=no-member,too-few-public-methods
from . import db

View File

@ -1,19 +1,7 @@
"""
This file is part of Accountant.
"""Module containing operation related models."""
Accountant is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
# vim: set tw=80 ts=4 sw=4 sts=4:
Accountant is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with Accountant. If not, see <http://www.gnu.org/licenses/>.
"""
from datetime import date
import arrow

View File

@ -1,19 +1,7 @@
"""
This file is part of Accountant.
"""Module containing scheduled operation related models."""
Accountant is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
# vim: set tw=80 ts=4 sw=4 sts=4:
Accountant is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with Accountant. If not, see <http://www.gnu.org/licenses/>.
"""
from calendar import monthrange
import arrow

View File

@ -1,20 +1,7 @@
"""
This file is part of Accountant.
"""Module containing user related models."""
Accountant is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Accountant is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with Accountant. If not, see <http://www.gnu.org/licenses/>.
"""
# vim: set tw=80 ts=4 sw=4 sts=4:
from passlib.hash import sha256_crypt as crypt
from itsdangerous import (URLSafeTimedSerializer as Serializer,
BadSignature, SignatureExpired)

View File

@ -1,5 +1,7 @@
"""Accountant runner."""
# vim: set tw=80 ts=4 sw=4 sts=4:
from os import path, getcwd
import click

View File

@ -1,19 +1,7 @@
"""
This file is part of Accountant.
"""Package containing views."""
Accountant is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
# vim: set tw=80 ts=4 sw=4 sts=4:
Accountant is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with Accountant. If not, see <http://www.gnu.org/licenses/>.
"""
from flask_cors import CORS
from flask_restplus import Api

View File

@ -1,19 +1,7 @@
"""
This file is part of Accountant.
"""Module containing account related views."""
Accountant is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
# vim: set tw=80 ts=4 sw=4 sts=4:
Accountant is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with Accountant. If not, see <http://www.gnu.org/licenses/>.
"""
import dateutil.parser
from flask_restplus import Namespace, Resource, fields

View File

@ -1,19 +1,7 @@
"""
This file is part of Accountant.
"""Module containing operation related views."""
Accountant is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
# vim: set tw=80 ts=4 sw=4 sts=4:
Accountant is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with Accountant. If not, see <http://www.gnu.org/licenses/>.
"""
import dateutil.parser
from flask_restplus import Namespace, Resource, fields

View File

@ -1,19 +1,7 @@
"""
This file is part of Accountant.
"""Module containing scheduled operation related views."""
Accountant is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
# vim: set tw=80 ts=4 sw=4 sts=4:
Accountant is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with Accountant. If not, see <http://www.gnu.org/licenses/>.
"""
from flask_restplus import Namespace, Resource, fields
from sqlalchemy import true

View File

@ -1,20 +1,7 @@
"""
This file is part of Accountant.
"""Module containing user related views."""
Accountant is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Accountant is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with Accountant. If not, see <http://www.gnu.org/licenses/>.
"""
# vim: set tw=80 ts=4 sw=4 sts=4:
from functools import wraps
import arrow

View File

@ -1,10 +1,18 @@
"Distribution setup."
"""Accountant distribution setup."""
# vim: set tw=80 ts=4 sw=4 sts=4:
from setuptools import setup, find_packages
setup(
name='Accountant',
version='0.0.1',
licence='AGPL',
author='Alexis Lahouze',
author_email='alexis@lahouze.org',
long_description=__doc__,
packages=find_packages(),
include_package_data=True,
@ -35,6 +43,4 @@ setup(
'pytest-cov',
'pytest-mock',
],
author='Alexis Lahouze',
author_email='alexis@lahouze.org',
)