Skip to content

Commit

Permalink
New version information is now added
Browse files Browse the repository at this point in the history
  • Loading branch information
Chenggong committed Jul 20, 2023
1 parent d61ab68 commit 684d991
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Sfilter/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from .Sfilter import Sfilter
from .sfilter import sfilter
from .util.output_wrapper import Perm_event_output
from .util.output_wrapper import Cylinder_output
from .util.output_wrapper import read_k_cylinder
from .util import MSM
from .util import MSM

__version__ = '0.5.1'
16 changes: 15 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
from setuptools import setup, find_packages
import codecs
import os.path

def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), 'r') as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")

setup(
name='Sfilter',
version='0.4.0',
version=get_version("Sfilter/__init__.py"),
description='This is a tool for basic analysis in Potassium Channel MD simulation.',
author='Chenggong Hui',
author_email='[email protected]',
Expand Down

0 comments on commit 684d991

Please sign in to comment.