Skip to content

Commit

Permalink
Creates cli folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-filho committed Jun 12, 2019
1 parent c481bc8 commit 39a00cc
Show file tree
Hide file tree
Showing 9 changed files with 175 additions and 0 deletions.
106 changes: 106 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,109 @@ venv.bak/

# mypy
.mypy_cache/
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
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/

.vscode/
1 change: 1 addition & 0 deletions commiter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
convention: none
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 gaia_control/__init__.py
Empty file.
Empty file added gaia_control/gaia_control.py
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 .
Empty file added requirements.txt
Empty file.
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='',
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.

0 comments on commit 39a00cc

Please sign in to comment.