Skip to content

Commit

Permalink
Add setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-kotliar committed Jul 28, 2017
1 parent 8a4e66f commit 130dca9
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**refGene-sort**
1 change: 1 addition & 0 deletions refgene_sort/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__import__("pkg_resources").declare_namespace(__name__)
File renamed without changes.
2 changes: 1 addition & 1 deletion refgene_sort.py → refgene_sort/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import os


CREATE_REFGENE_TABLE_SCRIPT=open('create_refgene_table.sql', 'r').read()
CREATE_REFGENE_TABLE_SCRIPT=open(os.path.join(os.path.dirname(os.path.abspath(__file__)),'create_refgene_table.sql'), 'r').read()


def arg_parser():
Expand Down
7 changes: 7 additions & 0 deletions refgene_sort/refgene-sort.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env python
import sys

from main import main

if __name__ == "__main__":
sys.exit(main(sys.argv[1:]))
25 changes: 25 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
from setuptools import setup, find_packages
import os

setup(
name='refgene-sort',
description='refGene sort utility',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
version='v0.0.1',
url='https://github.com/Barski-lab/refgene-sort',
download_url=('https://github.com/Barski-lab/refgene-sort'),
author='Michael Kotliar',
author_email='[email protected]',
license = 'Apache 2.0',
packages=find_packages(),
package_data={'refgene_sort': ['*.sql']},
install_requires=[
'argparse'
],
zip_safe=False,
entry_points={
'console_scripts': [
"refgene-sort=refgene_sort.main:main"
]
}
)

0 comments on commit 130dca9

Please sign in to comment.