Browse Source

Various config files

pull/1/head
Michael COSTA 6 months ago
parent
commit
2062da5ba9
16 changed files with 3320 additions and 0 deletions
  1. +9
    -0
      .bumpversion.cfg
  2. +8
    -0
      .editorconfig
  3. +6
    -0
      .flake8
  4. +13
    -0
      .gitignore
  5. +571
    -0
      .pylintrc
  6. +20
    -0
      .yamllint
  7. +708
    -0
      CHANGELOG.md
  8. +78
    -0
      CONTRIBUTING.md
  9. +133
    -0
      Jenkinsfile
  10. +14
    -0
      LICENSE
  11. +41
    -0
      Makefile
  12. +1625
    -0
      README.md
  13. +19
    -0
      requirements.txt
  14. +63
    -0
      setup.cfg
  15. +3
    -0
      setup.py
  16. +9
    -0
      sonar-project.properties

+ 9
- 0
.bumpversion.cfg View File

@ -0,0 +1,9 @@
[bumpversion]
current_version = 1.1.52
commit = False
tag = False
[bumpversion:file:setup.cfg]
search = version = {current_version}
replace = version = {new_version}

+ 8
- 0
.editorconfig View File

@ -0,0 +1,8 @@
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

+ 6
- 0
.flake8 View File

@ -0,0 +1,6 @@
[flake8]
ignore = E111,I001,I004,I003,E265,E114,E501,I005
exclude = .git,__pycache__
max-line-length = 160
use-flake8-tabs = true
tab-width = 2

+ 13
- 0
.gitignore View File

@ -0,0 +1,13 @@
*un~
*.swp
*.pyc
*/__pycache__
build/
dist/
infra.egg-info/
python_infra.egg-info/
test.py
populate_dir.py
.vscode/
venv/
.idea

+ 571
- 0
.pylintrc View File

@ -0,0 +1,571 @@
[MASTER]
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code.
extension-pkg-whitelist=
# Add files or directories to the blacklist. They should be base names, not
# paths.
ignore=CVS
# Add files or directories matching the regex patterns to the blacklist. The
# regex matches against base names, not paths.
ignore-patterns=
# Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
#init-hook=
# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
# number of processors available to use.
jobs=1
# Control the amount of potential inferred values when inferring a single
# object. This can help the performance when dealing with large functions or
# complex, nested conditions.
limit-inference-results=100
# List of plugins (as comma separated values of python modules names) to load,
# usually to register additional checkers.
load-plugins=
# Pickle collected data for later comparisons.
persistent=yes
# Specify a configuration file.
#rcfile=
# When enabled, pylint would attempt to guess common misconfiguration and emit
# user-friendly hints instead of false-positive error messages.
suggestion-mode=yes
# Allow loading of arbitrary C extensions. Extensions are imported into the
# active Python interpreter and may run arbitrary code.
unsafe-load-any-extension=no
[MESSAGES CONTROL]
# Only show warnings with the listed confidence levels. Leave empty to show
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED.
confidence=
# Disable the message, report, category or checker with the given id(s). You
# can either give multiple identifiers separated by comma (,) or put this
# option multiple times (only on the command line, not in the configuration
# file where it should appear only once). You can also use "--disable=all" to
# disable everything first and then reenable specific checks. For example, if
# you want to run only the similarities checker, you can use "--disable=all
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use "--disable=all --enable=classes
# --disable=W".
disable=print-statement,
parameter-unpacking,
unpacking-in-except,
old-raise-syntax,
backtick,
long-suffix,
old-ne-operator,
old-octal-literal,
import-star-module-level,
non-ascii-bytes-literal,
raw-checker-failed,
bad-inline-option,
locally-disabled,
file-ignored,
suppressed-message,
useless-suppression,
deprecated-pragma,
use-symbolic-message-instead,
apply-builtin,
basestring-builtin,
buffer-builtin,
cmp-builtin,
coerce-builtin,
execfile-builtin,
file-builtin,
long-builtin,
raw_input-builtin,
reduce-builtin,
standarderror-builtin,
unicode-builtin,
xrange-builtin,
coerce-method,
delslice-method,
getslice-method,
setslice-method,
no-absolute-import,
old-division,
dict-iter-method,
dict-view-method,
next-method-called,
metaclass-assignment,
indexing-exception,
raising-string,
reload-builtin,
oct-method,
hex-method,
nonzero-method,
cmp-method,
input-builtin,
round-builtin,
intern-builtin,
unichr-builtin,
map-builtin-not-iterating,
zip-builtin-not-iterating,
range-builtin-not-iterating,
filter-builtin-not-iterating,
using-cmp-argument,
eq-without-hash,
div-method,
idiv-method,
rdiv-method,
exception-message-attribute,
invalid-str-codec,
sys-max-int,
bad-python3-import,
deprecated-string-function,
deprecated-str-translate-call,
deprecated-itertools-function,
deprecated-types-field,
next-method-defined,
dict-items-not-iterating,
dict-keys-not-iterating,
dict-values-not-iterating,
deprecated-operator-function,
deprecated-urllib-function,
xreadlines-attribute,
deprecated-sys-function,
exception-escape,
comprehension-escape
# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
# multiple time (only on the command line, not in the configuration file where
# it should appear only once). See also the "--disable" option for examples.
enable=c-extension-no-member
[REPORTS]
# Python expression which should return a note less than 10 (10 is the highest
# note). You have access to the variables errors warning, statement which
# respectively contain the number of errors / warnings messages and the total
# number of statements analyzed. This is used by the global evaluation report
# (RP0004).
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
# Template used to display messages. This is a python new-style format string
# used to format the message information. See doc for all details.
#msg-template=
# Set the output format. Available formats are text, parseable, colorized, json
# and msvs (visual studio). You can also give a reporter class, e.g.
# mypackage.mymodule.MyReporterClass.
output-format=text
# Tells whether to display a full report or only the messages.
reports=no
# Activate the evaluation score.
score=yes
[REFACTORING]
# Maximum number of nested blocks for function / method body
max-nested-blocks=5
# Complete name of functions that never returns. When checking for
# inconsistent-return-statements if a never returning function is called then
# it will be considered as an explicit return statement and no message will be
# printed.
never-returning-functions=sys.exit
[SIMILARITIES]
# Ignore comments when computing similarities.
ignore-comments=yes
# Ignore docstrings when computing similarities.
ignore-docstrings=yes
# Ignore imports when computing similarities.
ignore-imports=no
# Minimum lines number of a similarity.
min-similarity-lines=4
[MISCELLANEOUS]
# List of note tags to take in consideration, separated by a comma.
notes=FIXME,
XXX,
TODO
[SPELLING]
# Limits count of emitted suggestions for spelling mistakes.
max-spelling-suggestions=4
# Spelling dictionary name. Available dictionaries: none. To make it working
# install python-enchant package..
spelling-dict=
# List of comma separated words that should not be checked.
spelling-ignore-words=
# A path to a file that contains private dictionary; one word per line.
spelling-private-dict-file=
# Tells whether to store unknown words to indicated private dictionary in
# --spelling-private-dict-file option instead of raising a message.
spelling-store-unknown-words=no
[STRING]
# This flag controls whether the implicit-str-concat-in-sequence should
# generate a warning on implicit string concatenation in sequences defined over
# several lines.
check-str-concat-over-line-jumps=no
[LOGGING]
# Format style used to check logging format string. `old` means using %
# formatting, while `new` is for `{}` formatting.
logging-format-style=old
# Logging modules to check that the string format arguments are in logging
# function parameter format.
logging-modules=
[BASIC]
# Naming style matching correct argument names.
argument-naming-style=snake_case
# Regular expression matching correct argument names. Overrides argument-
# naming-style.
#argument-rgx=
# Naming style matching correct attribute names.
attr-naming-style=snake_case
# Regular expression matching correct attribute names. Overrides attr-naming-
# style.
#attr-rgx=
# Bad variable names which should always be refused, separated by a comma.
bad-names=foo,
bar,
baz,
toto,
tutu,
tata
# Naming style matching correct class attribute names.
class-attribute-naming-style=any
# Regular expression matching correct class attribute names. Overrides class-
# attribute-naming-style.
#class-attribute-rgx=
# Naming style matching correct class names.
class-naming-style=PascalCase
# Regular expression matching correct class names. Overrides class-naming-
# style.
#class-rgx=
# Naming style matching correct constant names.
const-naming-style=UPPER_CASE
# Regular expression matching correct constant names. Overrides const-naming-
# style.
#const-rgx=
# Minimum line length for functions/classes that require docstrings, shorter
# ones are exempt.
docstring-min-length=-1
# Naming style matching correct function names.
function-naming-style=snake_case
# Regular expression matching correct function names. Overrides function-
# naming-style.
#function-rgx=
# Good variable names which should always be accepted, separated by a comma.
good-names=i,
j,
k,
ex,
e,
Run,
_
# Include a hint for the correct naming format with invalid-name.
include-naming-hint=no
# Naming style matching correct inline iteration names.
inlinevar-naming-style=any
# Regular expression matching correct inline iteration names. Overrides
# inlinevar-naming-style.
#inlinevar-rgx=
# Naming style matching correct method names.
method-naming-style=snake_case
# Regular expression matching correct method names. Overrides method-naming-
# style.
#method-rgx=
# Naming style matching correct module names.
module-naming-style=snake_case
# Regular expression matching correct module names. Overrides module-naming-
# style.
#module-rgx=
# Colon-delimited sets of names that determine each other's naming style when
# the name regexes allow several styles.
name-group=
# Regular expression which should only match function or class names that do
# not require a docstring.
no-docstring-rgx=^_
# List of decorators that produce properties, such as abc.abstractproperty. Add
# to this list to register other decorators that produce valid properties.
# These decorators are taken in consideration only for invalid-name.
property-classes=abc.abstractproperty
# Naming style matching correct variable names.
variable-naming-style=snake_case
# Regular expression matching correct variable names. Overrides variable-
# naming-style.
#variable-rgx=
[TYPECHECK]
# List of decorators that produce context managers, such as
# contextlib.contextmanager. Add to this list to register other decorators that
# produce valid context managers.
contextmanager-decorators=contextlib.contextmanager
# List of members which are set dynamically and missed by pylint inference
# system, and so shouldn't trigger E1101 when accessed. Python regular
# expressions are accepted.
generated-members=
# Tells whether missing members accessed in mixin class should be ignored. A
# mixin class is detected if its name ends with "mixin" (case insensitive).
ignore-mixin-members=yes
# Tells whether to warn about missing members when the owner of the attribute
# is inferred to be None.
ignore-none=yes
# This flag controls whether pylint should warn about no-member and similar
# checks whenever an opaque object is returned when inferring. The inference
# can return multiple potential results while evaluating a Python object, but
# some branches might not be evaluated, which results in partial inference. In
# that case, it might be useful to still emit no-member and other checks for
# the rest of the inferred objects.
ignore-on-opaque-inference=yes
# List of class names for which member attributes should not be checked (useful
# for classes with dynamically set attributes). This supports the use of
# qualified names.
ignored-classes=optparse.Values,thread._local,_thread._local
# List of module names for which member attributes should not be checked
# (useful for modules/projects where namespaces are manipulated during runtime
# and thus existing member attributes cannot be deduced by static analysis. It
# supports qualified module names, as well as Unix pattern matching.
ignored-modules=
# Show a hint with possible names when a member name was not found. The aspect
# of finding the hint is based on edit distance.
missing-member-hint=yes
# The minimum edit distance a name should have in order to be considered a
# similar match for a missing member name.
missing-member-hint-distance=1
# The total number of similar names that should be taken in consideration when
# showing a hint for a missing member.
missing-member-max-choices=1
[VARIABLES]
# List of additional names supposed to be defined in builtins. Remember that
# you should avoid defining new builtins when possible.
additional-builtins=
# Tells whether unused global variables should be treated as a violation.
allow-global-unused-variables=yes
# List of strings which can identify a callback function by name. A callback
# name must start or end with one of those strings.
callbacks=cb_,
_cb
# A regular expression matching the name of dummy variables (i.e. expected to
# not be used).
dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
# Argument names that match this expression will be ignored. Default to name
# with leading underscore.
ignored-argument-names=_.*|^ignored_|^unused_
# Tells whether we should check for unused import in __init__ files.
init-import=no
# List of qualified module names which can have objects that can redefine
# builtins.
redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
[FORMAT]
# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
expected-line-ending-format=
# Regexp for a line that is allowed to be longer than the limit.
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
# Number of spaces of indent required inside a hanging or continued line.
indent-after-paren=2
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
# tab).
indent-string=' '
# Maximum number of characters on a single line.
max-line-length=200
# Maximum number of lines in a module.
max-module-lines=1000
# List of optional constructs for which whitespace checking is disabled. `dict-
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
# `empty-line` allows space-only lines.
no-space-check=trailing-comma,
dict-separator
# Allow the body of a class to be on the same line as the declaration if body
# contains single statement.
single-line-class-stmt=no
# Allow the body of an if to be on the same line as the test if there is no
# else.
single-line-if-stmt=no
[DESIGN]
# Maximum number of arguments for function / method.
max-args=5
# Maximum number of attributes for a class (see R0902).
max-attributes=7
# Maximum number of boolean expressions in an if statement.
max-bool-expr=5
# Maximum number of branch for function / method body.
max-branches=12
# Maximum number of locals for function / method body.
max-locals=15
# Maximum number of parents for a class (see R0901).
max-parents=7
# Maximum number of public methods for a class (see R0904).
max-public-methods=20
# Maximum number of return / yield for function / method body.
max-returns=6
# Maximum number of statements in function / method body.
max-statements=50
# Minimum number of public methods for a class (see R0903).
min-public-methods=2
[IMPORTS]
# Allow wildcard imports from modules that define __all__.
allow-wildcard-with-all=no
# Analyse import fallback blocks. This can be used to support both Python 2 and
# 3 compatible code, which means that the block might have code that exists
# only in one or another interpreter, leading to false positives when analysed.
analyse-fallback-blocks=no
# Deprecated modules which should not be used, separated by a comma.
deprecated-modules=optparse,tkinter.tix
# Create a graph of external dependencies in the given file (report RP0402 must
# not be disabled).
ext-import-graph=
# Create a graph of every (i.e. internal and external) dependencies in the
# given file (report RP0402 must not be disabled).
import-graph=
# Create a graph of internal dependencies in the given file (report RP0402 must
# not be disabled).
int-import-graph=
# Force import order to recognize a module as part of the standard
# compatibility libraries.
known-standard-library=
# Force import order to recognize a module as part of a third party library.
known-third-party=enchant
[CLASSES]
# List of method names used to declare (i.e. assign) instance attributes.
defining-attr-methods=__init__,
__new__,
setUp
# List of member names, which should be excluded from the protected access
# warning.
exclude-protected=_asdict,
_fields,
_replace,
_source,
_make
# List of valid names for the first argument in a class method.
valid-classmethod-first-arg=cls
# List of valid names for the first argument in a metaclass class method.
valid-metaclass-classmethod-first-arg=cls
[EXCEPTIONS]
# Exceptions that will emit a warning when being caught. Defaults to
# "BaseException, Exception".
overgeneral-exceptions=BaseException,
Exception

+ 20
- 0
.yamllint View File

@ -0,0 +1,20 @@
---
extends: default
rules:
line-length: disable
colons:
level: warning
indentation:
level: warning
indent-sequences: consistent
commas:
level: warning
brackets:
level: warning
hyphens:
level: warning
new-line-at-end-of-file: disable
quoted-strings:
required: only-when-needed
level: warning

+ 708
- 0
CHANGELOG.md View File

@ -0,0 +1,708 @@
# Changelog
Fichier généré automatiquement par auto-changelog
## 1.1.52 (2021-01-20)
#### Fixes
* Makefile: Bad VERSION number
* Makefile: Bad VERSION number
* Makefile: Bad VERSION number
* bumpversion current_version
* Makefile: More targets
* Makefile: More targets
* Makefile: More targets
* Makefile: More targets
* Makefile: More targets
* Makefile
#### Others
* Makefile bumpversion and release targets
* Makefile bumpversion and release targets
Full set of changes: [`1.1.46...1.1.52`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.46...1.1.52)
## 1.1.46 (2020-12-29)
#### Fixes
* remote.ssh.exec_command should not show command unless --debug is used
Full set of changes: [`1.1.45...1.1.46`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.45...1.1.46)
## 1.1.45 (2020-12-29)
#### Fixes
* remote.ssh.exec_command should not show command unless --debug is used
Full set of changes: [`1.1.44...1.1.45`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.44...1.1.45)
## 1.1.44 (2020-12-09)
#### Fixes
* TERM is not defined on remote execution
Full set of changes: [`1.1.43...1.1.44`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.43...1.1.44)
## 1.1.43 (2020-12-09)
#### Fixes
* No more color in Jobscheduler + colors in log files
* No more color in Jobscheduler + colors in log files
* No more color in Jobscheduler + colors in log files
Full set of changes: [`1.1.42...1.1.43`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.42...1.1.43)
## 1.1.42 (2020-11-25)
#### Fixes
* SIN-15126
Full set of changes: [`1.1.41...1.1.42`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.41...1.1.42)
## 1.1.41 (2020-11-25)
#### Fixes
* SIN-15126
* SIN-15126
* SIN-15126
Full set of changes: [`1.1.40...1.1.41`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.40...1.1.41)
## 1.1.40 (2020-11-25)
#### Fixes
* SIN-15126
* SIN-15126
Full set of changes: [`1.1.39...1.1.40`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.39...1.1.40)
## 1.1.39 (2020-10-27)
#### Fixes
* (errorhandler): correction gestion du sys.exit
Full set of changes: [`1.1.38...1.1.39`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.38...1.1.39)
## 1.1.38 (2020-10-27)
#### New Features
* (history): en cas d'exception affiche le nom de l'exception dans le hist à la place de l'exit_code
* (error_handler): ajout gestion d'exception
#### Fixes
* commit only if repo is dirty
Full set of changes: [`1.1.37...1.1.38`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.37...1.1.38)
## 1.1.37 (2020-10-26)
#### Fixes
* infra.git: Utilisation de l objet Repo.git
* infra.git: Prise en charge des suppressions de fichiers
* infra.git: Prise en charge des suppressions de fichiers
* infra.git: Prise en charge des suppressions de fichiers
Full set of changes: [`1.1.36...1.1.37`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.36...1.1.37)
## 1.1.36 (2020-10-26)
#### Fixes
* api.validator global catch
* infra.api: There is NO Validator class
* infra.api: Validator is available from infra.api
* api: flake8 ready
Full set of changes: [`1.1.35...1.1.36`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.35...1.1.36)
## 1.1.35 (2020-10-23)
#### New Features
* Added multi_options support to infra.git
Full set of changes: [`1.1.34...1.1.35`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.34...1.1.35)
## 1.1.34 (2020-10-23)
#### New Features
* infra.git: Gestion des dépôts Git
Full set of changes: [`1.1.33...1.1.34`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.33...1.1.34)
## 1.1.33 (2020-10-20)
#### Fixes
* remote.ssh: Secure regexp match + unshadowing dir builtin
Full set of changes: [`1.1.32...1.1.33`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.32...1.1.33)
## 1.1.32 (2020-10-19)
#### Fixes
* Lower remote.ssh default verbosity
#### Others
* SIN-13730 test execution sur le master
Full set of changes: [`1.1.31...1.1.32`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.31...1.1.32)
## 1.1.31 (2020-10-19)
#### Fixes
* Le controle de la conf se fait dans tous les cas
Full set of changes: [`1.1.30...1.1.31`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.30...1.1.31)
## 1.1.30 (2020-10-19)
#### Fixes
* (remote): Ssh exec_command correction bug commande qui ne se termine pas
Full set of changes: [`1.1.29...1.1.30`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.29...1.1.30)
## 1.1.29 (2020-10-16)
#### Fixes
* (remote): Ssh exec_command correction bug commande qui ne se termine pas
Full set of changes: [`1.1.28...1.1.29`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.28...1.1.29)
## 1.1.28 (2020-10-13)
Full set of changes: [`1.1.27...1.1.28`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.27...1.1.28)
## 1.1.27 (2020-10-13)
#### Fixes
* remote.ftp.put_file remove remote_dir first char only if needed
Full set of changes: [`1.1.26...1.1.27`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.26...1.1.27)
## 1.1.26 (2020-10-13)
#### Fixes
* remote.ftp.put_file remove remote_dir first char only if needed
Full set of changes: [`1.1.25...1.1.26`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.25...1.1.26)
## 1.1.25 (2020-10-13)
#### Fixes
* remote.ftp prot_c fallback to prot p
Full set of changes: [`1.1.24...1.1.25`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.24...1.1.25)
## 1.1.24 (2020-10-13)
#### Fixes
* remote.ftp prot_c fallback to prot p
Full set of changes: [`1.1.23...1.1.24`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.23...1.1.24)
## 1.1.23 (2020-10-13)
#### Fixes
* remote.ftp prot_c fallback to prot p
Full set of changes: [`1.1.22...1.1.23`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.22...1.1.23)
## 1.1.22 (2020-10-12)
#### Fixes
* (remote): Ssh exec_command correction bug commande qui ne se termine pas
Full set of changes: [`1.1.21...1.1.22`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.21...1.1.22)
## 1.1.21 (2020-10-06)
#### New Features
* (ssh): exec_command accept maintenant l'ensemble des paramètres de la methode de paramiko
* (ssh): exec_command changement du retour stdin -> exit_code voir readme https://gitlab-infra.ref.gnc/python-infra/python-infra/blob/master/README.md\[#ex](https://gitlab-infra.ref.gnc/python-infra/python-infra/issues/ex)%C3%A9cuter-une-commande-sur-un-h%C3%B4te-distant
Full set of changes: [`1.1.20...1.1.21`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.20...1.1.21)
## 1.1.20 (2020-10-02)
#### New Features
* (remote): remote Ssh ajout de la method sftp_stat
Full set of changes: [`1.1.19...1.1.20`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.19...1.1.20)
## 1.1.19 (2020-10-01)
Full set of changes: [`1.1.18...1.1.19`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.18...1.1.19)
## 1.1.18 (2020-10-01)
#### Fixes
* Check authorized user before using PIDStack
#### Others
* remote/gncftp: clean lint
Full set of changes: [`1.1.17...1.1.18`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.17...1.1.18)
## 1.1.17 (2020-10-01)
Full set of changes: [`1.1.16...1.1.17`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.16...1.1.17)
## 1.1.16 (2020-10-01)
#### New Features
* ajout des 'with' sur les class Ssh, DB, SpamAssassinClient, Ftp, GncFtp
#### Others
* correction gestion des tags
* suppression de la notification des Merge Request [ci-skip]
Full set of changes: [`1.1.15...1.1.16`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.15...1.1.16)
## 1.1.15 (2020-09-21)
Full set of changes: [`1.1.14...1.1.15`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.14...1.1.15)
## 1.1.14 (2020-09-17)
#### Fixes
* _find_remote_files: exit_on_error
#### Others
* Avertissement de non-confidentialité
Full set of changes: [`1.1.13...1.1.14`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.13...1.1.14)
## 1.1.13 (2020-09-16)
Full set of changes: [`1.1.12...1.1.13`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.12...1.1.13)
## 1.1.12 (2020-09-14)
#### Fixes
* (context): correction erreur sur le context en utilisant les 2 options --nolog et --no-log-file
Full set of changes: [`1.1.11...1.1.12`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.11...1.1.12)
## 1.1.11 (2020-08-24)
Full set of changes: [`1.1.10...1.1.11`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.10...1.1.11)
## 1.1.10 (2020-08-24)
Full set of changes: [`1.1.9...1.1.10`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.9...1.1.10)
## 1.1.9 (2020-08-24)
#### Fixes
* security fix + sonar quality fixes
* Jinja2 autoescape == True by default
Full set of changes: [`1.1.8...1.1.9`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.8...1.1.9)
## 1.1.8 (2020-08-24)
#### New Features
* stack_file_path extension
Full set of changes: [`1.1.7...1.1.8`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.7...1.1.8)
## 1.1.7 (2020-08-24)
#### Fixes
* PermissionError handling on lockfile
Full set of changes: [`1.1.6...1.1.7`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.6...1.1.7)
## 1.1.6 (2020-08-21)
#### Refactorings
* Better filelock logging handling
Full set of changes: [`1.1.5...1.1.6`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.5...1.1.6)
## 1.1.5 (2020-08-21)
#### Refactorings
* Better filelock logging handling
Full set of changes: [`1.1.4...1.1.5`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.4...1.1.5)
## 1.1.4 (2020-08-20)
Full set of changes: [`1.1.3...1.1.4`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.3...1.1.4)
## 1.1.3 (2020-08-20)
#### New Features
* max_instance
Full set of changes: [`1.1.2...1.1.3`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.2...1.1.3)
## 1.1.2 (2020-08-17)
Full set of changes: [`1.1.1...1.1.2`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.1.1...1.1.2)
## 1.1.1 (2020-08-17)
#### Refactorings
* api.apiloader
Full set of changes: [`1.0.153...1.1.1`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.153...1.1.1)
## 1.0.153 (2020-08-13)
#### Others
* auto-changlog fix diff url
* upgrade auto-changelog 0.4.0 -> 0.5.1
Full set of changes: [`1.0.152...1.0.153`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.152...1.0.153)
## 1.0.152 (2020-08-10)
Full set of changes: [`1.0.151...1.0.152`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.151...1.0.152)
## 1.0.151 (2020-08-07)
#### Refactorings
* VWMareApi
Full set of changes: [`1.0.150...1.0.151`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.150...1.0.151)
## 1.0.150 (2020-08-03)
#### New Features
* api.Client ajout SSL verify
Full set of changes: [`1.0.149...1.0.150`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.149...1.0.150)
## 1.0.149 (2020-08-03)
#### Fixes
* api.Client response referenced before assignement
Full set of changes: [`1.0.148...1.0.149`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.148...1.0.149)
## 1.0.148 (2020-08-03)
#### Others
* fix project url in setup.cfg
Full set of changes: [`1.0.147...1.0.148`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.147...1.0.148)
## 1.0.147 (2020-08-03)
#### New Features
* infra.api.Client
#### Fixes
* Better README.md
* Typo in README.md
* better doc
* grammar in README.dm
#### Others
* updated module requirements + added requirements.txt
Full set of changes: [`1.0.145...1.0.147`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.145...1.0.147)
## 1.0.145 (2020-07-30)
#### Others
* clean Jenkinsfile
Full set of changes: [`1.0.144...1.0.145`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.144...1.0.145)
## 1.0.144 (2020-07-30)
#### New Features
* notifyMergeRequest
Full set of changes: [`1.0.143...1.0.144`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.143...1.0.144)
## 1.0.143 (2020-07-30)
#### Docs
* Correction de la doc d install
Full set of changes: [`1.0.142...1.0.143`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.142...1.0.143)
## 1.0.142 (2020-07-27)
#### Fixes
* remote.gncftp.close
Full set of changes: [`1.0.141...1.0.142`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.141...1.0.142)
## 1.0.141 (2020-07-27)
#### New Features
* infra.conf.Config.get_section
Full set of changes: [`1.0.140...1.0.141`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.140...1.0.141)
## 1.0.140 (2020-07-16)
#### Fixes
* README.md: Ajoute doc sur nolog
Full set of changes: [`1.0.139...1.0.140`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.139...1.0.140)
## 1.0.139 (2020-07-16)
#### Fixes
* README.md: Ajoute doc sur nolog
Full set of changes: [`1.0.138...1.0.139`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.138...1.0.139)
## 1.0.138 (2020-07-16)
#### Fixes
* infra.db: type == postgres
Full set of changes: [`1.0.137...1.0.138`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.137...1.0.138)
## 1.0.137 (2020-07-08)
Full set of changes: [`1.0.136...1.0.137`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.136...1.0.137)
## 1.0.136 (2020-07-08)
#### Fixes
* python3.4 argparse.ArgumentParser has no allow_abbrev argument
Full set of changes: [`1.0.135...1.0.136`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.135...1.0.136)
## 1.0.135 (2020-06-22)
#### New Features
* infra.remote.Ssh.sftp_list
Full set of changes: [`1.0.134...1.0.135`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.134...1.0.135)
## 1.0.134 (2020-06-22)
#### Fixes
* sftp_delete must open sftp connection first
Full set of changes: [`1.0.133...1.0.134`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.133...1.0.134)
## 1.0.133 (2020-06-22)
#### New Features
* infra.remote.Ssh.sftp_delete
Full set of changes: [`1.0.132...1.0.133`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.132...1.0.133)
## 1.0.132 (2020-06-19)
#### New Features
* Ajout de la classe Db_from_cc
Full set of changes: [`1.0.131...1.0.132`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.131...1.0.132)
## 1.0.131 (2020-06-19)
#### Refactorings
* infra.remote.ssh
Full set of changes: [`1.0.130...1.0.131`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.130...1.0.131)
## 1.0.130 (2020-06-12)
#### Fixes
* Db.execute default params
* Db.execute default params
Full set of changes: [`1.0.129...1.0.130`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.129...1.0.130)
## 1.0.129 (2020-06-12)
#### Fixes
* Db.execute default params
Full set of changes: [`1.0.128...1.0.129`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.128...1.0.129)
## 1.0.128 (2020-06-12)
#### Fixes
* Db.execute default params
Full set of changes: [`1.0.127...1.0.128`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.127...1.0.128)
## 1.0.127 (2020-06-12)
#### Fixes
* Db.execute default params
Full set of changes: [`1.0.126...1.0.127`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.126...1.0.127)
## 1.0.126 (2020-06-12)
#### Fixes
* Db.execute default params
Full set of changes: [`1.0.125...1.0.126`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.125...1.0.126)
## 1.0.125 (2020-06-12)
#### Fixes
* Db.execute default params
Full set of changes: [`1.0.124...1.0.125`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.124...1.0.125)
## 1.0.124 (2020-06-12)
#### Fixes
* Db.execute default params
Full set of changes: [`1.0.123...1.0.124`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.123...1.0.124)
## 1.0.123 (2020-06-12)
#### Fixes
* Db.execute for Oracle
Full set of changes: [`1.0.122...1.0.123`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.122...1.0.123)
## 1.0.122 (2020-06-12)
#### Others
* Updated Readme for Oracle support
Full set of changes: [`1.0.121...1.0.122`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.121...1.0.122)
## 1.0.121 (2020-06-12)
#### Others
* ajustement ordre bump2version tag auto-changelog
Full set of changes: [`1.0.120...1.0.121`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.120...1.0.121)
## 1.0.120 (2020-06-12)
#### Fixes
* Typo in Jenkinsfile
Full set of changes: [`1.0.119...1.0.120`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.119...1.0.120)
## 1.0.119 (2020-06-12)
#### Others
* end of test
Full set of changes: [`1.0.118...1.0.119`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.118...1.0.119)
## 1.0.118 (2020-06-12)
#### Fixes
* default db_type is pgsql
#### Others
* This is a test
Full set of changes: [`1.0.117...1.0.118`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.117...1.0.118)
## 1.0.117 (2020-06-04)
#### Others
* mise en place du changelog auto-généré
Full set of changes: [`1.0.116...1.0.117`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.116...1.0.117)
## 1.0.116 (2020-06-03)
#### Fixes
* (args): pour le type bool correction de la valeur par défaut de la valeur par defaut
Full set of changes: [`1.0.115...1.0.116`](https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/1.0.115...1.0.116)
## 1.0.115 (2020-05-29)
#### New Features
* add bumpversion
#### Fixes
* ajout du push increment version

+ 78
- 0
CONTRIBUTING.md View File

@ -0,0 +1,78 @@
## Environnement de dev
```sh
python3 -m venv socle-infra-venv
source socle-infra-venv/bin/activate
pip install -e .
```
## Pylint
### Changement par rapport à la norme :
[Nombre d'espaces] (.pylintrc#L449) Réduction à 2 espaces au lieu de 4
[Chaîne de caractères utilisée pour les tabulations] (.pylintrc#L453) Réduction à 2 espaces conformément à la ligne ci-dessus
[Taille d'une ligne] (.pylintrc#L456) Augmentation de la taille de ligne autorisée à 200 au lieu de 100 (Plus personne n'imprime de code !)
[Nom de variable] (.pylintrc#L310) Autorisation du nom "e" pour les noms de variables (utilisé pour les exceptions)
[Interpolation des logs] (.pylintrc#L242) Désactivation du check de l'interpolation pour le module logging
[Import inutiles dans les __init__] (.pylintrc#L434) Recherche activée des imports inutiles dans les fichiers __init__
# Conventions
## Commits
Le projet utilise la lib https://github.com/Michael-F-Bryan/auto-changelog pour générer automatiquement le fichier `CHANGELOG.md`
Pour cela, les messages de commits doivent respecter la spécification [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)
```
<type>[(optional scope)]: <description>
```
### Types
**New features**
* feat
**Fixes**
* fix
**Refactorings**
* refactor
**Others**
* build
* chore
* ci
* docs
* style
* perf
* test
### Scopes
Les scopes correspondent aux noms des modules jusqu'au deuxième niveau.
**Sans caratères speciaux !**
**exemple :** `infra.remote.ftp`, `infra.remote.ssh`, `infra.remote`, `infra.db`, `infra.mail.mailer`, etc...
### Breaking change
Pour les breaking changes ajouter `!` avant le `: <description>`
**Exemple :**
```
refactor!: drop support for Python3.6
```
Il est aussi possible d'ajouter les détails de cette façon :
```
refactor!: drop support for Python3.6
BREAKING CHANGE: refactor to use Python features not available in Python3.6
```
## Lancement des tests
pytest tests -v

+ 133
- 0
Jenkinsfile View File

@ -0,0 +1,133 @@
@Library('infra-shared-libs@master') _
currentBuild.result = "SUCCESS"
pipeline {
agent {
label 'master'
}
options {
gitLabConnection('gitlab-infra')
//On ne garde que les 10 derniers builds
buildDiscarder(logRotator(numToKeepStr: '10'))
gitlabBuilds(builds: [
"Init",
"Build and test",
"Code Quality",
"Packaging"
])
}
stages {
stage('Init') {
steps {
gitlabCommitStatus(name: 'Init'){
script{
// On renseigne la description du build
fillBuildDescription()
// Récupération de la branch et si merge request, merge des branches
checkoutAndMerge()
}
}
}
}
stage('Build and test') {
steps{
gitlabCommitStatus(name: 'Build and test') {
script{
withPythonEnv('python3') {
sh "pip install --upgrade pip"
sh "python -m pip install .[dev]"
}
}
}
}
}
stage('Code Quality') {
steps{
gitlabCommitStatus(name: 'Code Quality') {
script{
if (!isMergeRequest()) {
sonar()
}
}
}
}
}
stage('Packaging') {
steps{
gitlabCommitStatus(name: 'Packaging') {
script{
if (!isMergeRequest()) {
withCredentials([usernamePassword(
credentialsId: 'jenkins-infra-artifactory',
usernameVariable: 'ARTIFACTORY_USER',
passwordVariable: 'ARTIFACTORY_PASS')]) {
withPythonEnv('python3') {
sh "bump2version patch"
String version = getAppVersion()
sh "auto-changelog -v ${version} --issue-url https://gitlab-infra.ref.gnc/python-infra/python-infra/issues/{id} --starting-commit dbd7aa41a423126f5ede4e7c1c8436ca02ce022a -d 'Fichier généré automatiquement par auto-changelog' --diff-url https://gitlab-infra.ref.gnc/python-infra/python-infra/compare/{previous}...{current}"
sh "git add setup.cfg .bumpversion.cfg CHANGELOG.md"
sh "git commit -m 'increment version and update changelog [ci-skip]'"
sh "git tag ${version}"
sh "python3 setup.py sdist bdist_wheel"
sh "python3 -m twine upload -u ${ARTIFACTORY_USER} -p ${ARTIFACTORY_PASS} --repository-url http://artifactory.ref.gnc/artifactory/api/pypi/pypi-local dist/*"
}
}
sshagent (credentials: ['jenkins-sshkey']) {
sh "git push origin"
sh "git push --tags"
}
}
}
}
}
}
}
post {
always {
commentMergeRequest()
cleanWs()
}
success{
updateGitlabCommitStatus name: 'jenkins', state: 'success'
}
failure {
updateGitlabCommitStatus name: 'jenkins', state: 'failed'
sendMail()
}
}
}
def sonar() {
withSonarQubeEnv('Sonar [PROD]') {
def scannerHome = tool('sonar scanner default');
sh scannerHome+'/sonar-scanner' +
' -Dsonar.projectVersion=' + getAppVersion() +
' -Dsonar.projectKey=' + getAppName()
}
}
def getAppName() {
return sh(returnStdout: true, script: 'python3 setup.py --name').trim()
}
def getAppVersion() {
return sh(returnStdout: true, script: 'python3 setup.py --version').trim()
}
def commentMergeRequest(){
if (isMergeRequest()) {
def resultIcon = currentBuild.result == 'SUCCESS' ? ':white_check_mark:' : ':skull_crossbones:'
addGitLabMRComment "$resultIcon Jenkins Build $currentBuild.result\n\nResults available at: [Jenkins [$env.JOB_NAME#$env.BUILD_NUMBER]]($env.BUILD_URL)"
}
}

+ 14
- 0
LICENSE View File

@ -0,0 +1,14 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified copies of
this license document, and changing it is allowed as long as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.

+ 41
- 0
Makefile View File

@ -0,0 +1,41 @@
VERSION=$(shell python3 ./setup.py --version)
.RECIPEPREFIX +=
.PHONY: install uninstall all distclean bumpversion autochangelog tag dist push release
all: | uninstall install distclean
install:
sudo python3 ./setup.py build install
uninstall:
sudo pip3 uninstall -y python-infra
distclean:
sudo rm -Rf ./build ./dist ./python_infra.egg-info
bumpversion:
bump2version patch
autochangelog:
VERSION=$(shell python3 ./setup.py --version)
auto-changelog -v "${VERSION}" \
--issue-url https://git.mcos.nc/issues/{id} \
--starting-commit dbd7aa41a423126f5ede4e7c1c8436ca02ce022a \
-d 'Fichier généré automatiquement par auto-changelog' \
--diff-url https://git.mcos.nc/python/infra/src/tag/{current}
tag:
VERSION=$(shell python3 ./setup.py --version)
git add setup.cfg .bumpversion.cfg CHANGELOG.md
git commit -m 'increment version and update changelog [ci-skip]'
git tag "${VERSION}"
dist:
python3 setup.py sdist bdist_wheel register -r local upload -r local
push:
git push origin
git push --tags
release: | distclean bumpversion autochangelog tag dist push

+ 1625
- 0
README.md
File diff suppressed because it is too large
View File


+ 19
- 0
requirements.txt View File

@ -0,0 +1,19 @@
GitPython>=2.1.15
psycopg2-binary>=2.8.3
markupsafe>=1.1.1
pycparser>=2.19
paramiko>=2.6.0
argcomplete>=1.10.0
bcrypt>=3.1.7
coloredlogs>=10.0
pytz>=2019.3
pynacl>=1.3.0
cryptography>=2.7
six>=1.12.0
jinja2>=2.10.3
asn1crypto>=1.0.1
prettytable>=0.7.2
cffi>=1.12.3
humanfriendly>=4.18
sqlparse>=0.3.0
filelock>=3.0.12

+ 63
- 0
setup.cfg View File

@ -0,0 +1,63 @@
[metadata]
version = 1.1.52
classifiers =
Programming Language :: Python :: 3
License :: WTFPL
Operating System :: POSIX :: Linux
url = https://gitlab-infra.ref.gnc/puppet/python-infra
description = "Socle de fonctions utilisées dans les scripts python de gestion d'infrastructure."
name = python-infra
long_description = file: README.md
long_description_content_type = text/markdown
author = Michael Costa, Florent Chevalier
author_email = michael.costa@mcos.nc, florent.chevalier@gouv.nc
[options]
packages = find:
install_requires =
GitPython>=2.1.15
psycopg2-binary>=2.8.3
markupsafe>=1.1.1
pycparser>=2.19
paramiko>=2.6.0
argcomplete>=1.10.0
bcrypt>=3.1.7
coloredlogs>=10.0
pytz>=2019.3
pynacl>=1.3.0
cryptography>=2.7
six>=1.12.0
jinja2>=2.10.3
asn1crypto>=1.0.1
prettytable>=0.7.2
cffi>=1.12.3
humanfriendly>=4.18
sqlparse>=0.3.0
filelock>=3.0.12
[options.extras_require]
dev =
twine
wheel==0.33.6
flake8==3.7.8
flake8-breakpoint==1.1.0
flake8-builtins==1.4.1
flake8-eradicate==0.2.3
flake8-isort==2.7.0
flake8-print==3.1.1
flake8-return==1.1.1
pep8-naming>=0.8.2
flake8-tabs==2.1.0
pytest==5.2.1
bump2version==0.5.11
auto-changelog==0.5.1
[flake8]
ignore = E111
exclude = .git,__pycache__,build,dist, thot-cli-venv
max-line-length = 160
use-flake8-tabs = true
tab-width = 2
[easy_install]
index-url = http://artifactory.ref.gnc/artifactory/api/pypi/pypi-repos/simple/

+ 3
- 0
setup.py View File

@ -0,0 +1,3 @@
import setuptools
setuptools.setup()

+ 9
- 0
sonar-project.properties View File

@ -0,0 +1,9 @@
sonar.projectName=python-infra
sonar.gitlab.project_id=puppet/python-infra
sonar.gitlab.url=https://gitlab-infra.ref.gnc
sonar.sources=.
sonar.sourceEncoding=UTF-8
sonar.exclusions=tests/**,**/*.pyc
sonar.tests=tests

Loading…
Cancel
Save