Commit ae02e6ee authored by htyao's avatar htyao
Browse files

Reform package structure

parent 0a5d956e
...@@ -11,7 +11,7 @@ def read_version(fpath): ...@@ -11,7 +11,7 @@ def read_version(fpath):
raise Exception('Version not found') raise Exception('Version not found')
VERSION = read_version('./__init__.py') VERSION = read_version('src/varnaapi/__init__.py')
with open("README.md", "r") as fh: with open("README.md", "r") as fh:
...@@ -40,7 +40,9 @@ setup(name='varnaapi', ...@@ -40,7 +40,9 @@ setup(name='varnaapi',
author_email='hua-ting.yao@polytechnique.edu', author_email='hua-ting.yao@polytechnique.edu',
url='https://gitlab.inria.fr/amibio/varna-api', url='https://gitlab.inria.fr/amibio/varna-api',
classifiers=[_f for _f in CLASSIFIERS.split('\n') if _f], classifiers=[_f for _f in CLASSIFIERS.split('\n') if _f],
py_modules=['varnaapi', 'param'], packages=setuptools.find_packages('src'),
package_dir={'': 'src'},
py_modules=['varnaapi'],
install_requires=['colour', 'deprecated', 'pyyml', 'IPython'], install_requires=['colour', 'deprecated', 'pyyml', 'IPython'],
python_requires='>=3' python_requires='>=3'
) )
...@@ -8,7 +8,7 @@ from deprecated import deprecated ...@@ -8,7 +8,7 @@ from deprecated import deprecated
from IPython.display import Image, display, SVG from IPython.display import Image, display, SVG
from param import VarnaConfig, BasesStyle, _Title, _Highlight, _Annotation, _BPStyle, _ChemProb, _ColorMap from varnaapi.param import VarnaConfig, BasesStyle, _Title, _Highlight, _Annotation, _BPStyle, _ChemProb, _ColorMap
_VARNA_PATH="VARNAv3-93.jar" _VARNA_PATH="VARNAv3-93.jar"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment