Skip to content

Commit

Permalink
INIT: initial files and folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-filho committed May 11, 2019
1 parent e0f1332 commit 68bde01
Show file tree
Hide file tree
Showing 11 changed files with 113 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[*]
root = true
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = false

[*.py]
indent_size = 4
tab_width = 4
indent_style = space

[*.txt]
insert_final_newline = false
30 changes: 30 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
language: python

python:
- '3.5'

install:
- pip install -r dev-requirements.txt

script:
- pytest tests/ -v
- pycodestyle image_processing/*

after_script:
- py.test --cov-report term --cov=. --ignore=tests/* --cov-report=html
- coverage xml
- python-codacy-coverage -r coverage.xml

notification:
email: false

before_deploy:
- echo 'Beggining deploy...'
- python3 setup.py build
- python3 setup.py sdist bdist_wheel

deploy:
- provider: script
script: bash deploy.sh deploy
on:
branch: master
1 change: 1 addition & 0 deletions VERSION.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.0
1 change: 1 addition & 0 deletions commiter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
convention: tagged
11 changes: 11 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#! /bin/bash

python3 setup.py sdist bdist_wheel

if [ "$1" == "test" ]; then
twine upload --repository-url https://test.pypi.org/legacy/ dist/* --verbose -u $TWINE_USERNAME -p $TWINE_PASSWORD_TEST --skip-existing
fi

if [ "$1" == "deploy" ]; then
twine upload dist/* --verbose -u $TWINE_USERNAME -p $TWINE_PASSWORD --skip-existing
fi
Empty file added image_processing/__init__.py
Empty file.
Empty file.
3 changes: 3 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash

pip3 install -e .
54 changes: 54 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import os
import codecs
from os import path
from setuptools import setup
from setuptools import find_packages
from pip._internal.req import parse_requirements

here = path.abspath(path.dirname(__file__))

with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()

# allowes setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))

# parse_requirements() returns generator of pip.req.InstallRequirement objects
INSTALL_REQS = parse_requirements('requirements.txt', session='hack')

# reqs is a list of requirements
REQUIREMENTS = [str(ir.req) for ir in INSTALL_REQS]

CLASSIFIERS = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Everyone",
"Natural Language :: Portuguese",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
]

setup( # pragma: no cover
name='',
description="", # nopep8
url='',
long_description=codecs.open('README.md', 'rb', 'utf8').read(),
long_description_content_type='text/markdown',
author='Gaia boat group',
author_email='andre.filho001@outlook.com',
version=codecs.open('VERSION.txt', 'rb', 'utf8').read(),
packages=find_packages(),
keywords=['gaia', 'boat', 'pi2'],
# entry_points={
# 'console_scripts': [
# 'ezissue = ezissue.ezissue:main'
# ]
# },
install_requires=REQUIREMENTS,
license='GNU',
classifiers=CLASSIFIERS,
)
Empty file added tests/__init__.py
Empty file.
Empty file added tests/test_image_processing.py
Empty file.

0 comments on commit 68bde01

Please sign in to comment.