-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
21 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
from setuptools import find_packages, setup | ||
|
||
from xmca import __version__ | ||
import os | ||
|
||
from setuptools import find_packages, setup | ||
''' | ||
Run the following code in your conda environment to make the package available | ||
in development mode | ||
$ python setup.py develop | ||
''' | ||
|
||
|
||
with open('README.md', 'r') as fh: | ||
long_description = fh.read() | ||
|
||
with open('requirements.txt', 'r') as fh: | ||
install_requires = fh.read() | ||
|
||
|
@@ -20,11 +20,14 @@ | |
'tqdm', | ||
'cartopy >= 0.18.0'] | ||
|
||
# Get version file | ||
here = os.path.dirname(__file__) | ||
version_file = os.path.join(here, 'version') | ||
|
||
setup( | ||
name='xmca', | ||
include_package_data=True, | ||
keywords='mca', | ||
keywords='eof, analysis, mca, pca', | ||
author='Niclas Rieger', | ||
author_email='[email protected]', | ||
description='Maximum Covariance Analysis in Python', | ||
|
@@ -39,7 +42,7 @@ | |
], | ||
python_requires='>=3.6', | ||
version_config={ | ||
'version_callback' : __version__, | ||
'vesion_file' : version_file, | ||
'dev_template': '{tag}.post{ccount}', | ||
'dirty_template': '{tag}.post{ccount}' | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.3.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
__version__ = '0.3.0' | ||
import os | ||
|
||
here = os.path.dirname(__file__) | ||
version_file = open(os.path.join(here, '../version')) | ||
version = version_file.read().rstrip('\n') | ||
|
||
__version__ = version | ||
__author__ = 'Niclas Rieger' | ||
__email__ = '[email protected]' |