Commit 59850751 authored by agb80's avatar agb80

ci(add gitlab files): Add gitlab files

parent afc0385e
variables:
BUILDOUT: tools/buildout.cfg
cache:
key: "$CI_BUILD_NAME"
paths:
- buildout-cache/
before_script:
- git clone --depth=1 http://gitlab.openpyme.mx/pyerp/test.git tools
- virtualenv --quiet --python=python2.7 .
- source bin/activate
- pip install -r tools/requirements.txt
stages:
- check
- test
- deploy
code-analysis:
stage: check
script:
- buildout -qc $BUILDOUT buildout:directory=$CI_PROJECT_DIR install node code-analysis
- code-analysis
lint-analysis:
stage: check
script:
- buildout -qc $BUILDOUT buildout:directory=$CI_PROJECT_DIR install pylint-bin pylint
mccabe:
stage: check
script:
- buildout -qc $BUILDOUT buildout:directory=$CI_PROJECT_DIR install xenon
- xenon -bC -mB -aB -i bin,eggs,downloads,lib .
* Juan Carlos Funes
* Moisés López
* Federico Cruz <federico.cruz@openpyme.mx>
* Agustín Cruz <agustin.cruz@openpyme.mx>
[isort]
# A comment to consistently place directly above future imports.
import_heading_future=Future
# If set to true - isort will combine as imports on the same line within for
# import statements. By default isort forces all as imports to display on their
# own lines.
combine_as_imports = True
# The default section to place imports in, if their section can not be
# automatically determined.
default_section=THIRDPARTY
# If set to true - imports will be sorted by their length instead of
# alphabetically.
length_sort=False
force_alphabetical_sort = True
force_to_top = True
include_trailing_comma = True
# An integer that represents the longest line-length you want a single import to
# take. Defaults to 80.
line_length = 80
# Number of spaces you would like to indent by
indent=4
# How you want imports to be displayed if they're long enough to span multiple
# lines. All possible modes can be found
# https://github.com/timothycrosley/isort#multi-line-output-modes.
# 5 - Hanging Grid Grouped
# from third_party import (
# lib1, lib2, lib3, lib4,
# lib5, ...
#)
multi_line_output=5
# Forces a certain number of lines after the imports and before the first line
# of functional code. By default this is 2 lines if the first line of code is a
# class or function. Otherwise it's 1.
lines_after_imports = 2
# On Odoo we use the __init__ file to add all imports so we need to check
skip = __init__.py
# Separate sections within "from" imports for CONSTANTS, Classes, and
# modules/functions.
order_by_type=True
# A list of imports that will be forced to display withing the standard
# category.
known_standard_library=
# self-odoo
odoo, openerp,
# Known external packages of odoo
PIL, anybox.testing.openerp, argparse, babel,
dateutil, decorator, docutils, faces, feedparser,
gdata, gevent, greenlet, jcconv, jinja2,
ldap, lxml, mako, markupsafe, mock, odf,
ofxparse, openid, passlib, pkg_resources,
psutil, psycogreen, psycopg2, pyPdf, pychart,
pydot, pyparsing, pytz, qrcode, reportlab,
requests, serial, simplejson, six, suds,
unittest2, usb, vatnumber, vobject, werkzeug,
wsgiref', xlsxwriter, xlwt, yaml,
# Set order for import sections
sections=FUTURE,STDLIB,FIRSTPARTY,LOCALFOLDER,THIRDPARTY
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
import ast
import os
MANIFEST_NAMES = ('__openerp__.py', '__manifest__.py', '__terp__.py')
class NoManifestFound(Exception):
pass
def get_manifest_path(addon_dir):
for manifest_name in MANIFEST_NAMES:
manifest_path = os.path.join(addon_dir, manifest_name)
if os.path.isfile(manifest_path):
return manifest_path
def parse_manifest(s):
return ast.literal_eval(s)
def read_manifest(addon_dir):
manifest_path = get_manifest_path(addon_dir)
if not manifest_path:
raise NoManifestFound('No manifest found in %s' % addon_dir)
return parse_manifest(open(manifest_path).read())
addon_dir = 'l10n_mx_facturae'
manifest = read_manifest(addon_dir)
long_description = (
open(os.path.join(addon_dir, 'README.rst')).read() +
'\n' +
'Contributors\n'
'============\n' +
'\n' +
open(os.path.join(addon_dir, 'CONTRIBUTORS.rst')).read() +
'\n' +
open(os.path.join(addon_dir, 'CHANGES.rst')).read() +
'\n')
setup(
name=addon_dir,
version=manifest.get('version'),
long_description=long_description,
# Get more from http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Programming Language :: Python',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
],
keywords='Python PyERP',
license=manifest.get('license', 'GPL-3'),
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=[
'setuptools',
'num2words',
'unidecode',
],
)
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