Skip to content

Commit

Permalink
version: bump, add to setup, and access in python
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyfothergill committed Mar 29, 2021
1 parent 50f80db commit 0a988bf
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
2 changes: 2 additions & 0 deletions msibi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
from msibi.pair import Pair
from msibi.potentials import *
from msibi.state import State
from msibi.__version__ import __version__

__all__ = [
"__version__",
"MSIBI",
"Pair",
"State",
Expand Down
1 change: 1 addition & 0 deletions msibi/__version__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.2.0"
22 changes: 17 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""

import os
from setuptools import setup
from setuptools.command.test import test as TestCommand
import sys
Expand All @@ -18,6 +19,12 @@

requirements = ["numpy", "six", "networkx"]

NAME = "msibi"
# Load the package's __version__.py module as a dictionary.
here = os.path.abspath(os.path.dirname(__file__))
about = {}
with open(os.path.join(here, NAME, "__version__.py")) as f:
exec(f.read(), about)

class PyTest(TestCommand):
def finalize_options(self):
Expand All @@ -33,12 +40,17 @@ def run_tests(self):


setup(
name="msibi",
version="0.1",
description="",
url="http://github.com/mosdef-hub/misibi",
name=NAME,
version=about["__version__"],
description=(
"A package for optimizing coarse-grained force fields using " +
"multistate iterative Boltzmann inversion."
),
url="http://github.com/cmelab/msibi",
author="Christoph Klein, Timothy C. Moore",
author_email="[email protected], [email protected]",
author_email=(
"[email protected], [email protected]"
),
license="MIT",
packages=["msibi"],
install_requires=requirements,
Expand Down

0 comments on commit 0a988bf

Please sign in to comment.