-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
INIT: initial files and folder structure
- Loading branch information
1 parent
e0f1332
commit 68bde01
Showing
11 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
convention: tagged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#! /bin/bash | ||
|
||
pip3 install -e . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Empty file.