Skip to content

Commit

Permalink
Added basic repository structure
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoveda committed Nov 12, 2019
1 parent cd88df5 commit 01908f6
Show file tree
Hide file tree
Showing 19 changed files with 534 additions and 1 deletion.
105 changes: 105 additions & 0 deletions .gitignore
@@ -0,0 +1,105 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/

# PyCharm
.idea
30 changes: 30 additions & 0 deletions .travis.yml
@@ -0,0 +1,30 @@
language: python
before_install:
- pip install pycodestyle
install:
- pip install -r requirements.txt
- python setup.py install
script:
- find . -name \*.py -exec pycodestyle --max-line-length=120 --ignore=E402 {} +
- pytest --cov=artellapipe
- sphinx-apidoc -f -e -o docs/sphinx artellapipe
- sphinx-build -M html ./docs/sphinx ./
after_success:
- coveralls
- cd html && touch .nojekyll && cd ../
deploy:
- provider: pages
skip_cleanup: true
github_token: "$GITHUB_TOKEN"
keep_history: true
local_dir: html
on:
branch: master
- provider: pypi
skip_cleanup: true
user: tpoveda
password:
secure: gDiIQHjXTgZE011S0UsAgLsYsDEhG5cRYcJ+5LbGNMScV6tzpfbpJlyPOSac77oiNELtklLAb2abG1kR36yJFKEJVr2klg6lJtbjOz8k660QQ2L5ZjEA1popSVE+3Jt0wKSDFCEaCWfSkPyGqLZDOjgOoqZzLedy8eilZjR9edRUCx+gSM2bLlsrzmaNqtQTcwe1PnJXDjI2uZG7CPsxrjy5ue0A7rp65GKIE3wvylpwJi61JvfkSumbb5intu/WmvZLATPbO9GH51gYJGvilUATtdWVdY9dIaskTDSXeY3dSsXDr1VE3xwkV3xcmmqAGU+HH6+retQhSgm6H6g6RCacYTBQrjLug8GF3VIh/Yn8DGdTdcxxqExCJ+MOyh7UflqJBQ/DFlumLUN2g09zF3GrXeb5azUs05knlcyMDSwXzRQcS380HsiVYpr1gDeGVfVuz7jtRCKz067mDtyQAa8xTAaRGkZ/jdcLGyQogsKiRqNRwmAp0Y8BDBpOmPj9MW3/VzY88vMUlKqwo06RShk1rEo9bkDy+F7Cnsic/XcMA32VIa0616fNoNeFHkIvXc9IAQrwwwg125pnKH5u7q38xROZKkhxUzr7ZwxYzbHdzMQM6YyGRVnWLHI+xHVAUqnDH7l0zZEfOJ2KzTo93yeCvrXahYnElLwJQLfXyHU=
on:
branch: master
tags: true
21 changes: 21 additions & 0 deletions LICENSE
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Tomas Poveda

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1 change: 1 addition & 0 deletions MANIFEST.in
@@ -0,0 +1 @@
include artellapipe/libs/kitsu/__logging__.ini
1 change: 0 additions & 1 deletion README.md

This file was deleted.

27 changes: 27 additions & 0 deletions README.rst
@@ -0,0 +1,27 @@
# artellapipe-libs-kitsu
============================================================

Library to handle Artella Project production tracking using Kitsu

.. image:: https://travis-ci.com/ArtellaPipe/artellapipe-libs-maya.svg?branch=master&kill_cache=1
:target: https://travis-ci.com/ArtellaPipe/artellapipe-libs-maya

.. image:: https://coveralls.io/repos/github/ArtellaPipe/artellapipe-libs-maya/badge.svg?branch=master&kill_cache=1
:target: https://coveralls.io/github/ArtellaPipe/artellapipe-libs-maya?branch=master

.. image:: https://img.shields.io/badge/docs-sphinx-orange
:target: https://artellapipe.github.io/artellapipe-libs-maya/

.. image:: https://img.shields.io/github/license/ArtellaPipe/artellapipe-libs-maya
:target: https://github.com/ArtellaPipe/artellapipe-libs-maya/blob/master/LICENSE

.. image:: https://img.shields.io/pypi/v/artellapipe-libs-maya?branch=master&kill_cache=1
:target: https://pypi.org/project/artellapipe-libs-maya/

.. image:: https://img.shields.io/badge/code_style-pep8-blue
:target: https://www.python.org/dev/peps/pep-0008/


.. image:: https://www.cg-wire.com/en/images/kitsu.png
:target: https://www.cg-wire.com/en/kitsu.html
:align: center
17 changes: 17 additions & 0 deletions artellapipe/__init__.py
@@ -0,0 +1,17 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-

"""
Initialization module for artellapipe
"""

from __future__ import print_function, division, absolute_import

__author__ = "Tomas Poveda"
__license__ = "MIT"
__maintainer__ = "Tomas Poveda"
__email__ = "tpovedatd@gmail.com"

from pkgutil import extend_path

__path__ = extend_path(__path__, __name__)
17 changes: 17 additions & 0 deletions artellapipe/libs/__init__.py
@@ -0,0 +1,17 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-

"""
Initialization module for artellapipe-libs
"""

from __future__ import print_function, division, absolute_import

__author__ = "Tomas Poveda"
__license__ = "MIT"
__maintainer__ = "Tomas Poveda"
__email__ = "tpovedatd@gmail.com"

from pkgutil import extend_path

__path__ = extend_path(__path__, __name__)
Empty file.
31 changes: 31 additions & 0 deletions artellapipe/libs/kitsu/__logging__.ini
@@ -0,0 +1,31 @@
[loggers]
keys=root

[handlers]
keys=consoleHandler,rotatingFileHandler

[formatters]
keys=json, simpleFormatter

[logger_root]
level=DEBUG
handlers=rotatingFileHandler, consoleHandler

[handler_consoleHandler]
class=StreamHandler
level=WARNING
formatter=simpleFormatter
args=(sys.stdout,)

[handler_rotatingFileHandler]
class=logging.handlers.RotatingFileHandler
level=DEBUG
formatter=json
args=(os.path.normpath(os.path.join(os.path.expanduser('~'), 'artellapipe', 'logs', 'artellapipe-libs-kitsu.log')), 'w', 50000000 , 3)

[formatter_json]
class=pythonjsonlogger.jsonlogger.JsonFormatter
format=[%(levelname)1.1s %(asctime)s | %(name)s | %(module)s:%(lineno)d]: %(message)s

[formatter_simpleFormatter]
format=[%(levelname)1.1s %(asctime)s | %(name)s | %(module)s:%(lineno)d]: %(message)s
15 changes: 15 additions & 0 deletions artellapipe/libs/kitsu/__version__.py
@@ -0,0 +1,15 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-

"""
Module that defines package version for artellapipe-libs-kitsu
"""

from __future__ import print_function, division, absolute_import

__author__ = "Tomas Poveda"
__license__ = "MIT"
__maintainer__ = "Tomas Poveda"
__email__ = "tpovedatd@gmail.com"

__version__ = "0.0.1"
7 changes: 7 additions & 0 deletions docs/sphinx/_templates/layout.html
@@ -0,0 +1,7 @@
{% extends '!layout.html' %}
{% block document %}
{{super()}}
<a href="https://github.com/ArtellaPipe/artellapipe-libs-kitsu" target="_blank">
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub">
</a>
{% endblock %}

0 comments on commit 01908f6

Please sign in to comment.