diff --git a/pyproject.toml b/pyproject.toml index cd33edc..f3353d8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,3 +24,47 @@ include_trailing_comma = true force_grid_wrap = 0 use_parentheses = true ensure_newline_before_comments = true + + +[project] + +name = "RahulScripts" +version = "0.0.2" +description = "Some daily used scripts" +readme = "README.md" +license = {file = "LICENSE"} +keywords = ["rahul", "scripts", "genomics", "class"] +authors = [ + {name = "Rahul Brahma", email = "rahul@drugonix.com"} +] + +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Topic :: Software Development :: Build Tools", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: Implementation :: CPython", + "Programming Language :: Python :: Implementation :: PyPy" +] + +dependencies=[ + "numpy", + "ipywidgets", + +] + +[project.optional-dependencies] + + +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" diff --git a/rahulscripts/__init__.py b/rahulscripts/__init__.py index a8722d1..227aed6 100644 --- a/rahulscripts/__init__.py +++ b/rahulscripts/__init__.py @@ -1,5 +1,12 @@ from .__version__ import __version__ +from .download import * +from .external import * +from .utils import * +from .metrics import * + + + print(f"Package v: {__version__}") print("===============================================") diff --git a/rahulscripts/metrics/__init__.py b/rahulscripts/metrics/__init__.py index 9401859..6199832 100644 --- a/rahulscripts/metrics/__init__.py +++ b/rahulscripts/metrics/__init__.py @@ -1 +1 @@ -from custom_metrics import * +from .custom_metrics import * diff --git a/rahulscripts/utils/utilities.py b/rahulscripts/utils/utilities.py index cde045f..796d25e 100644 --- a/rahulscripts/utils/utilities.py +++ b/rahulscripts/utils/utilities.py @@ -8,7 +8,18 @@ import tqdm from IPython.core.display import HTML from IPython.display import IFrame, clear_output, display -from openbabel import pybel + + +# check if openbabel is installed +try: + from openbabel import pybel +except ImportError: + print("OpenBabel is not installed. Please install it otherwise some functions will not work.") + command="conda install conda-forge::openbabel" + print(f"Run this command to install openbabel: {command}") + + # raise ImportError("OpenBabel is not installed. Please install it first.") + from rich import print from rich.console import Console from rich.style import Style diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 91d453a..0000000 --- a/setup.cfg +++ /dev/null @@ -1,37 +0,0 @@ -[metadata] -name = RahulScripts -version = 0.0.2 -author = Rahul Brahma -author_email = rahul@drugonix.com -description = Some daily used scripts -long_description = file: README.md -long_description_content_type = text/markdown -license_file = LICENSE -keywords = rahul scripts genomics class -url = https://www.drugonix.com -download_url = https://github.com/Takshan/RahulScripts/0.0.1.tar.gz -classifiers = - Development Status :: 5 - Production/Stable - Intended Audience :: Developers - License :: OSI Approved :: MIT License - Topic :: Software Development :: Build Tools - Programming Language :: Python - Programming Language :: Python :: 3 - Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - Programming Language :: Python :: 3.11 - Programming Language :: Python :: 3.12 - - Programming Language :: Python :: Implementation :: CPython - Programming Language :: Python :: Implementation :: PyPy - -[options] -packages = rahulscripts -setup_requires = pip -install_requires = pip; setuptools - -[options.entry_points] -console_scripts = rahulscripts.cli = rahulscripts.cli:main