Skip to content

Commit

Permalink
Add README + better structure
Browse files Browse the repository at this point in the history
  • Loading branch information
illusional committed Jul 22, 2019
1 parent c578197 commit a1b41be
Show file tree
Hide file tree
Showing 35 changed files with 73 additions and 41 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Janis - Unix tools
2 changes: 0 additions & 2 deletions __init__.py

This file was deleted.

7 changes: 0 additions & 7 deletions data_types/__init__.py

This file was deleted.

2 changes: 2 additions & 0 deletions janis_unix/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from janis_unix.data_types import *
from janis_unix.tools import *
Binary file added janis_unix/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
5 changes: 5 additions & 0 deletions janis_unix/data_types/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .csv import Csv
from .json import JsonFile
from .tarfile import TarFile
from .tsv import Tsv
from .zipfile import ZipFile
Binary file not shown.
Binary file added janis_unix/data_types/__pycache__/csv.cpython-37.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added janis_unix/data_types/__pycache__/tsv.cpython-37.pyc
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion data_types/csv.py → janis_unix/data_types/csv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from janis import File
from janis_core import File


class Csv(File):
Expand Down
2 changes: 1 addition & 1 deletion data_types/json.py → janis_unix/data_types/json.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from janis import File
from janis_core import File


class JsonFile(File):
Expand Down
2 changes: 1 addition & 1 deletion data_types/tarfile.py → janis_unix/data_types/tarfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from janis.types.common_data_types import File
from janis_core import File


class TarFile(File):
Expand Down
2 changes: 1 addition & 1 deletion data_types/tsv.py → janis_unix/data_types/tsv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from janis import File
from janis_core import File


class Tsv(File):
Expand Down
2 changes: 1 addition & 1 deletion data_types/zipfile.py → janis_unix/data_types/zipfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from janis.types.common_data_types import File
from janis_core import File


class ZipFile(File):
Expand Down
6 changes: 6 additions & 0 deletions janis_unix/tools/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from .cat import Cat
from .compile import Compile
from .echo import Echo
from .merge import Merge
from .tar import Tar
from .untar import Untar
Binary file added janis_unix/tools/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file added janis_unix/tools/__pycache__/cat.cpython-37.pyc
Binary file not shown.
Binary file not shown.
Binary file added janis_unix/tools/__pycache__/echo.cpython-37.pyc
Binary file not shown.
Binary file added janis_unix/tools/__pycache__/merge.cpython-37.pyc
Binary file not shown.
Binary file added janis_unix/tools/__pycache__/tar.cpython-37.pyc
Binary file not shown.
Binary file added janis_unix/tools/__pycache__/unixtool.cpython-37.pyc
Binary file not shown.
Binary file added janis_unix/tools/__pycache__/untar.cpython-37.pyc
Binary file not shown.
7 changes: 2 additions & 5 deletions tools/cat.py → janis_unix/tools/cat.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
from janis import ToolOutput, Stdout

from janis.tool.commandtool import ToolInput
from janis.types.common_data_types import Array, File
from janis.unix.tools.unixtool import UnixTool
from janis_core import ToolInput, ToolOutput, Stdout, Array, File
from .unixtool import UnixTool


class Cat(UnixTool):
Expand Down
5 changes: 2 additions & 3 deletions tools/compile.py → janis_unix/tools/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@

from typing import List

from janis import ToolInput, ToolOutput, ToolArgument, WildcardSelector, File
from janis.unix.tools.unixtool import UnixTool

from janis_core import ToolInput, ToolOutput, ToolArgument, WildcardSelector, File
from .unixtool import UnixTool

class Compile(UnixTool):
@staticmethod
Expand Down
4 changes: 2 additions & 2 deletions tools/echo.py → janis_unix/tools/echo.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from janis import String, ToolInput, ToolOutput, Stdout
from janis.unix.tools.unixtool import UnixTool
from janis_core import String, ToolInput, ToolOutput, Stdout
from .unixtool import UnixTool


class Echo(UnixTool):
Expand Down
4 changes: 2 additions & 2 deletions tools/merge.py → janis_unix/tools/merge.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from janis import File, Array, ToolInput, ToolOutput, Stdout
from janis.unix.tools.unixtool import UnixTool
from janis_core import File, Array, ToolInput, ToolOutput, Stdout
from .unixtool import UnixTool


class Merge(UnixTool):
Expand Down
7 changes: 3 additions & 4 deletions tools/tar.py → janis_unix/tools/tar.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#
# Untar a file
from janis import Array, ToolInput, ToolOutput, InputSelector, File, Filename
from janis.unix.data_types.tarfile import TarFile
from janis.unix.tools.unixtool import UnixTool

from janis_core import Array, ToolInput, ToolOutput, InputSelector, File, Filename
from ..data_types.tarfile import TarFile
from .unixtool import UnixTool

class Tar(UnixTool):
@staticmethod
Expand Down
2 changes: 1 addition & 1 deletion tools/unixtool.py → janis_unix/tools/unixtool.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from abc import ABC

from janis import CommandTool
from janis_core import CommandTool


class UnixTool(CommandTool, ABC):
Expand Down
6 changes: 3 additions & 3 deletions tools/untar.py → janis_unix/tools/untar.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from janis import Array, ToolInput, ToolOutput, WildcardSelector, File
from janis.unix.data_types.tarfile import TarFile
from janis.unix.tools.unixtool import UnixTool
from janis_core import Array, ToolInput, ToolOutput, WildcardSelector, File
from ..data_types.tarfile import TarFile
from .unixtool import UnixTool


class Untar(UnixTool):
Expand Down
39 changes: 39 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
from setuptools import setup, find_packages

# Version information is found in the __init__ file of `janiscore/`
DESCRIPTION = "Contains UNIX classes"

######## SHOULDN'T NEED EDITS BELOW THIS LINE ########

with open("./README.md") as readme:
long_description = readme.read()

__version__ = "v0.1.0"


setup(
name="janis-pipelines.unix",
version=__version__,
description=DESCRIPTION,
url="",
author="Michael Franklin, Evan Thomas, Mohammad Bhuyan",
author_email="[email protected]",
license="GNU",
keywords=["pipelines", "bioinformatics", "workflows"],
packages=["janis_unix"]
+ ["janis_unix." + p for p in sorted(find_packages("./janis_unix"))],
install_requires=[
"janis-pipelines.core"
],
entry_points={"janis.extension": ["unix=janis_unix"]},
zip_safe=False,
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Bio-Informatics",
],
)
7 changes: 0 additions & 7 deletions tools/__init__.py

This file was deleted.

0 comments on commit a1b41be

Please sign in to comment.