diff --git a/README.md b/README.md index 1eaf4897..c40e88f8 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d Ehsan Gharib-Nezhad
💻 - 🧑‍🏫 + 🤔 🚧 📚 @@ -105,6 +105,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d Miguel Martinho
🧑‍🏫 + 🤔 @@ -112,7 +113,6 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d Gopal Nookula
📚 - 🧑‍🔬 diff --git a/TelescopeML/__init__.py b/TelescopeML/__init__.py index 9bfb1a51..3abf2600 100644 --- a/TelescopeML/__init__.py +++ b/TelescopeML/__init__.py @@ -7,14 +7,15 @@ from os.path import dirname, basename, isfile, join import glob + modules = glob.glob(join(dirname(__file__), "*.py")) + __all__ = [ basename(f)[:-3] for f in modules if isfile(f) and not f.endswith('__init__.py')] -# try: -# from pkg_resources import declare_namespace -# declare_namespace(__name__) -# except ImportError: -# from pkgutil import extend_path -# __path__ = extend_path(__path__, __name__) -__version__ = "0.0.1" \ No newline at end of file +# Read the __version__.py file +with open('__version__.txt', 'r') as f: + ver = f.read() + +__version__ = '0.0.3' +print(__version__) \ No newline at end of file