Commit 6596a0f2 authored by Luca Cristaldi's avatar Luca Cristaldi

fix pep8

parent 0e706a9d
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond import backend
from trytond.model import ModelView, ModelSQL, ModelSingleton, fields
from trytond.pyson import Eval
from trytond.modules.company.model import (CompanyMultiValueMixin,
CompanyValueMixin)
from trytond.tools.multivalue import migrate_property
__all__ = ['Configuration', 'MemberSequence']
......
......@@ -10,9 +10,9 @@ from setuptools import setup, find_packages
def read(fname):
return io.open(
os.path.join(os.path.dirname(__file__), fname),
'r', encoding='utf-8').read()
return io.open(os.path.join(os.path.dirname(__file__), fname),
'r',
encoding='utf-8').read()
def get_require_version(name):
......@@ -20,8 +20,8 @@ def get_require_version(name):
require = '%s >= %s.%s.dev0, < %s.%s'
else:
require = '%s >= %s.%s, < %s.%s'
require %= (name, major_version, minor_version,
major_version, minor_version + 1)
require %= (name, major_version, minor_version, major_version,
minor_version + 1)
return require
......@@ -37,13 +37,12 @@ major_version = int(major_version)
minor_version = int(minor_version)
name = 'trytond_association'
download_url = 'http://downloads.tryton.org/%s.%s/' % (
major_version, minor_version)
download_url = 'http://downloads.tryton.org/%s.%s/' % (major_version,
minor_version)
if minor_version % 2:
version = '%s.%s.dev0' % (major_version, minor_version)
download_url = (
'hg+http://hg.tryton.org/modules/%s#egg=%s-%s' % (
name[8:], name, version))
download_url = ('hg+http://hg.tryton.org/modules/%s#egg=%s-%s' %
(name[8:], name, version))
requires = ['python-sql', 'python-stdnum']
for dep in info.get('depends', []):
......@@ -56,7 +55,8 @@ dependency_links = []
if minor_version % 2:
dependency_links.append('https://trydevpi.tryton.org/')
setup(name=name,
setup(
name=name,
version=version,
description='Tryton module for association management',
long_description=read('README.rst'),
......@@ -69,18 +69,17 @@ setup(name=name,
"Documentation": 'https://docs.tryton.org/',
"Forum": 'https://www.tryton.org/forum',
"Source Code": 'https://hg.tryton.org/modules/association',
},
},
keywords='tryton association',
package_dir={'trytond.modules.association': '.'},
packages=(
['trytond.modules.association'] +
['trytond.modules.association.%s' % p for p in find_packages()]
),
packages=(['trytond.modules.association'] +
['trytond.modules.association.%s' % p for p in find_packages()]),
package_data={
'trytond.modules.association': (info.get('xml', [])
+ ['tryton.cfg', 'view/*.xml', 'locale/*.po', 'icons/*.svg',
'tests/*.rst']),
},
'trytond.modules.association': (info.get('xml', []) + [
'tryton.cfg', 'view/*.xml', 'locale/*.po', 'icons/*.svg',
'tests/*.rst'
]),
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Plugins',
......@@ -89,7 +88,8 @@ setup(name=name,
'Intended Audience :: Financial and Insurance Industry',
'Intended Audience :: Legal Industry',
'Intended Audience :: Manufacturing',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'License :: OSI Approved ::'
'GNU General Public License v3 or later (GPLv3+)',
'Natural Language :: Bulgarian',
'Natural Language :: Catalan',
'Natural Language :: Chinese (Simplified)',
......@@ -116,7 +116,7 @@ setup(name=name,
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Office/Business',
],
],
license='GPL-3',
python_requires='>=3.5',
install_requires=requires,
......@@ -129,4 +129,4 @@ setup(name=name,
test_suite='tests',
test_loader='trytond.test_loader:Loader',
tests_require=tests_require,
)
\ No newline at end of file
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment