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 @@
""" """The accountant package."""
This file is part of Accountant.
Accountant is free software: you can redistribute it and/or modify # vim: set tw=80 ts=4 sw=4 sts=4:
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/>.
"""
import click import click
from flask import Flask from flask import Flask

View File

@ -1,19 +1,7 @@
""" """Package containing models."""
This file is part of Accountant.
Accountant is free software: you can redistribute it and/or modify # vim: set tw=80 ts=4 sw=4 sts=4:
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/>.
"""
import pkgutil import pkgutil
from flask_sqlalchemy import SQLAlchemy from flask_sqlalchemy import SQLAlchemy

View File

@ -1,19 +1,7 @@
""" """Module containing account related models."""
This file is part of Accountant.
Accountant is free software: you can redistribute it and/or modify # vim: set tw=80 ts=4 sw=4 sts=4:
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/>.
"""
# pylint: disable=no-member,too-few-public-methods # pylint: disable=no-member,too-few-public-methods
from . import db from . import db

View File

@ -1,19 +1,7 @@
""" """Module containing operation related models."""
This file is part of Accountant.
Accountant is free software: you can redistribute it and/or modify # vim: set tw=80 ts=4 sw=4 sts=4:
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/>.
"""
from datetime import date from datetime import date
import arrow import arrow

View File

@ -1,19 +1,7 @@
""" """Module containing scheduled operation related models."""
This file is part of Accountant.
Accountant is free software: you can redistribute it and/or modify # vim: set tw=80 ts=4 sw=4 sts=4:
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/>.
"""
from calendar import monthrange from calendar import monthrange
import arrow import arrow

View File

@ -1,20 +1,7 @@
""" """Module containing user related models."""
This file is part of Accountant.
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: # vim: set tw=80 ts=4 sw=4 sts=4:
from passlib.hash import sha256_crypt as crypt from passlib.hash import sha256_crypt as crypt
from itsdangerous import (URLSafeTimedSerializer as Serializer, from itsdangerous import (URLSafeTimedSerializer as Serializer,
BadSignature, SignatureExpired) BadSignature, SignatureExpired)

View File

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

View File

@ -1,19 +1,7 @@
""" """Package containing views."""
This file is part of Accountant.
Accountant is free software: you can redistribute it and/or modify # vim: set tw=80 ts=4 sw=4 sts=4:
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/>.
"""
from flask_cors import CORS from flask_cors import CORS
from flask_restplus import Api from flask_restplus import Api

View File

@ -1,19 +1,7 @@
""" """Module containing account related views."""
This file is part of Accountant.
Accountant is free software: you can redistribute it and/or modify # vim: set tw=80 ts=4 sw=4 sts=4:
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/>.
"""
import dateutil.parser import dateutil.parser
from flask_restplus import Namespace, Resource, fields from flask_restplus import Namespace, Resource, fields

View File

@ -1,19 +1,7 @@
""" """Module containing operation related views."""
This file is part of Accountant.
Accountant is free software: you can redistribute it and/or modify # vim: set tw=80 ts=4 sw=4 sts=4:
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/>.
"""
import dateutil.parser import dateutil.parser
from flask_restplus import Namespace, Resource, fields from flask_restplus import Namespace, Resource, fields

View File

@ -1,19 +1,7 @@
""" """Module containing scheduled operation related views."""
This file is part of Accountant.
Accountant is free software: you can redistribute it and/or modify # vim: set tw=80 ts=4 sw=4 sts=4:
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/>.
"""
from flask_restplus import Namespace, Resource, fields from flask_restplus import Namespace, Resource, fields
from sqlalchemy import true from sqlalchemy import true

View File

@ -1,20 +1,7 @@
""" """Module containing user related views."""
This file is part of Accountant.
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: # vim: set tw=80 ts=4 sw=4 sts=4:
from functools import wraps from functools import wraps
import arrow 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 from setuptools import setup, find_packages
setup( setup(
name='Accountant', name='Accountant',
version='0.0.1', version='0.0.1',
licence='AGPL',
author='Alexis Lahouze',
author_email='alexis@lahouze.org',
long_description=__doc__, long_description=__doc__,
packages=find_packages(), packages=find_packages(),
include_package_data=True, include_package_data=True,
@ -35,6 +43,4 @@ setup(
'pytest-cov', 'pytest-cov',
'pytest-mock', 'pytest-mock',
], ],
author='Alexis Lahouze',
author_email='alexis@lahouze.org',
) )