Skip to content

Commit

Permalink
Merge pull request #40 from alexlyttle/version
Browse files Browse the repository at this point in the history
Add version number to package
  • Loading branch information
danxhuber committed Dec 22, 2023
2 parents fbdb69f + e8edd3c commit d150be0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Python codes to perform stellar classifications given any set of input observabl

1. Download `mwdust` (see https://github.com/jobovy/mwdust).

2. Clone and `cd` to the repo,
2. Clone and `cd` to the repo (do this outside of your python `site-packages` directory, e.g. your home directory),

```bash
git clone https://github.com/danxhuber/isoclassify
Expand Down
3 changes: 3 additions & 0 deletions isoclassify/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import os
import importlib.metadata

__version__ = importlib.metadata.version(__package__) # only works if package installed via pip

# Absolute path to the package directory
PACKAGEDIR = os.path.abspath(os.path.dirname(__file__))
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ scipy
h5py
joblib
pandas
matplotlib
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import os
from setuptools import setup

# Load version
__version__ = None
# exec(open('isoclassify/version.py').read())
# Set version (increment this when making a new release)
version = "1.2.1"

# Load requirements
requirements = None
Expand Down Expand Up @@ -31,7 +30,7 @@

setup(
name='isoclassify',
version=__version__,
version=version,
description=desc,
package_dir={
'isoclassify': 'isoclassify',
Expand Down

0 comments on commit d150be0

Please sign in to comment.