-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from kaklise/master
Updates to support Pandas 1.0 and other minor changes
- Loading branch information
Showing
13 changed files
with
63 additions
and
46 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
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
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 was deleted.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
v0.1.3 (February 28, 2020) | ||
---------------------------- | ||
|
||
* Updated methods to be compatible with Pandas 1.0 | ||
* Added required dependencies to setup.py | ||
* Dropped Python 2.7 tests | ||
* Updated documentation |
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,24 +1,38 @@ | ||
from setuptools import setup, find_packages | ||
from distutils.core import Extension | ||
import os | ||
import re | ||
|
||
DISTNAME = 'chama' | ||
VERSION = '0.1.2' | ||
PACKAGES = ['chama'] | ||
EXTENSIONS = [] | ||
DESCRIPTION = 'Sensor Placement Optimization.' | ||
LONG_DESCRIPTION = open('README.md').read() | ||
AUTHOR = 'Chama developers' | ||
MAINTAINER_EMAIL = '[email protected]' | ||
LICENSE = 'Revised BSD' | ||
URL = 'https://github.com/sandialabs/chama' | ||
DEPENDENCIES = ['pyomo', 'pandas', 'numpy', 'scipy'] | ||
|
||
setuptools_kwargs = { | ||
'zip_safe': False, | ||
'install_requires': [], | ||
'scripts': [], | ||
'include_package_data': True | ||
} | ||
# use README file as the long description | ||
file_dir = os.path.abspath(os.path.dirname(__file__)) | ||
with open(os.path.join(file_dir, 'README.md'), encoding='utf-8') as f: | ||
LONG_DESCRIPTION = f.read() | ||
|
||
# use README file as the long description | ||
file_dir = os.path.abspath(os.path.dirname(__file__)) | ||
with open(os.path.join(file_dir, 'README.md'), encoding='utf-8') as f: | ||
LONG_DESCRIPTION = f.read() | ||
|
||
# get version from __init__.py | ||
with open(os.path.join(file_dir, 'chama', '__init__.py')) as f: | ||
version_file = f.read() | ||
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", | ||
version_file, re.M) | ||
if version_match: | ||
VERSION = version_match.group(1) | ||
else: | ||
raise RuntimeError("Unable to find version string.") | ||
|
||
setup(name=DISTNAME, | ||
version=VERSION, | ||
packages=PACKAGES, | ||
|
@@ -29,4 +43,7 @@ | |
maintainer_email=MAINTAINER_EMAIL, | ||
license=LICENSE, | ||
url=URL, | ||
**setuptools_kwargs) | ||
zip_safe=False, | ||
install_requires=DEPENDENCIES, | ||
scripts=[], | ||
include_package_data=True) |