mirror of
https://github.com/NaN-tic/trytond-contract_invoice_journal.git
synced 2023-12-14 06:02:54 +01:00
Update setup.py file
This commit is contained in:
parent
7bfbb2a285
commit
050f114c5d
1 changed files with 19 additions and 12 deletions
31
setup.py
31
setup.py
|
@ -1,19 +1,24 @@
|
|||
#!/usr/bin/env python
|
||||
# This file is part of the contract_invoice_journal module for Tryton.
|
||||
# This file is part contract_invoice_journal module for Tryton.
|
||||
# The COPYRIGHT file at the top level of this repository contains
|
||||
# the full copyright notices and license terms.
|
||||
|
||||
from setuptools import setup
|
||||
import re
|
||||
import os
|
||||
import ConfigParser
|
||||
import io
|
||||
try:
|
||||
from configparser import ConfigParser
|
||||
except ImportError:
|
||||
from ConfigParser import ConfigParser
|
||||
|
||||
MODULE2PREFIX = {}
|
||||
|
||||
|
||||
def read(fname):
|
||||
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
||||
|
||||
return io.open(
|
||||
os.path.join(os.path.dirname(__file__), fname),
|
||||
'r', encoding='utf-8').read()
|
||||
|
||||
def get_require_version(name):
|
||||
if minor_version % 2:
|
||||
|
@ -24,7 +29,7 @@ def get_require_version(name):
|
|||
major_version, minor_version + 1)
|
||||
return require
|
||||
|
||||
config = ConfigParser.ConfigParser()
|
||||
config = ConfigParser()
|
||||
config.readfp(open('tryton.cfg'))
|
||||
info = dict(config.items('tryton'))
|
||||
for key in ('depends', 'extras_depend', 'xml'):
|
||||
|
@ -34,9 +39,8 @@ version = info.get('version', '0.0.1')
|
|||
major_version, minor_version, _ = version.split('.', 2)
|
||||
major_version = int(major_version)
|
||||
minor_version = int(minor_version)
|
||||
name = 'trytond-contract_invoice_journal'
|
||||
download_url = ('https://bitbucket.org/zikzakmedia/'
|
||||
'trytond-contract_invoice_journal')
|
||||
name = 'trytonzz_contract_invoice_journal'
|
||||
download_url = 'https://bitbucket.org/zikzakmedia/trytond-contract_invoice_journal'
|
||||
|
||||
requires = []
|
||||
for dep in info.get('depends', []):
|
||||
|
@ -53,14 +57,13 @@ if minor_version % 2:
|
|||
|
||||
setup(name=name,
|
||||
version=version,
|
||||
description='This module assigns configured account journal to invoices '
|
||||
'created since consumptions of contracts',
|
||||
description='Tryton Contract Invoice Journal Module',
|
||||
long_description=read('README'),
|
||||
author='Zikzakmedia',
|
||||
author='Zikzakmedia SL',
|
||||
author_email='zikzak@zikzakmedia.com',
|
||||
url='https://bitbucket.org/zikzakmedia/',
|
||||
download_url=download_url,
|
||||
keywords='contract invoice account journal',
|
||||
keywords='',
|
||||
package_dir={'trytond.modules.contract_invoice_journal': '.'},
|
||||
packages=[
|
||||
'trytond.modules.contract_invoice_journal',
|
||||
|
@ -94,6 +97,9 @@ setup(name=name,
|
|||
'Natural Language :: Spanish',
|
||||
'Operating System :: OS Independent',
|
||||
'Programming Language :: Python :: 2.7',
|
||||
'Programming Language :: Python :: 3.3',
|
||||
'Programming Language :: Python :: 3.4',
|
||||
'Programming Language :: Python :: 3.5',
|
||||
'Programming Language :: Python :: Implementation :: CPython',
|
||||
'Programming Language :: Python :: Implementation :: PyPy',
|
||||
'Topic :: Office/Business',
|
||||
|
@ -109,4 +115,5 @@ setup(name=name,
|
|||
test_suite='tests',
|
||||
test_loader='trytond.test_loader:Loader',
|
||||
tests_require=tests_require,
|
||||
use_2to3=True,
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue