diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000000000000000000000000000000000000..e423c98c9223532b3fe494838fc109a69ecf83ee --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include README.md LICENSE NOTICE diff --git a/metainfo.json b/metainfo.json index 667cdda3bcb5be40fe411bd44d091abab122c8c0..e420c80e5072339d7455ac069eb94829c2ac0da0 100644 --- a/metainfo.json +++ b/metainfo.json @@ -1,17 +1,17 @@ { "authors": [ - "Benjamin, Reglerand", - "Matthias, Scheffler", - "Luca, Ghiringhelli" + "Regler, Benjamin", + "Scheffler, Matthias", + "Ghiringhelli, Luca M.", ], - "email": "refler@fhi-berlin.mpg.de", + "email": "regler@fhi-berlin.mpg.de", "title": "Total cumulative mutual information", "description": "This interactive notebook includes the original implementation of total cumulative mutual information (TCMI) to reproduce the main results presented in the publication.", "url": "https://gitlab.mpcdf.mpg.de/nomad-lab/analytics-tcmi", "link": "https://analytics-toolkit.nomad-coe.eu/hub/user-redirect/notebooks/tutorials/tcmi.ipynb", "link_public": "https://analytics-toolkit.nomad-coe.eu/public/user-redirect/notebooks/tutorials/tcmi.ipynb", - "created": "", - "updated": "", + "created": "2020-01-14", + "updated": "2020-01-14", "flags": { "isPublic": false, "featured": false, @@ -19,8 +19,10 @@ }, "labels": { "application_keyword": [ - "keyword1", - "keyword2" + "information theory", + "mutual information", + "cumulative entropy", + "feature selection" ], "application_section": [ "Materials property prediction" @@ -32,8 +34,12 @@ "Tutorial" ], "data_analytics_method": [ - "Clustering" + "Clustering", "TCMI" ], + "language": [ + "python", + "javascript" + ], "platform": [ "jupyter" ] diff --git a/setup.py b/setup.py index 31d9bfd755247f979b0f4f53ae6f05d9cd4f2646..ae3d7c7c44ccf19df7fac2a7cae86e7ef68270de 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,27 @@ +# !/usr/bin/env python +# -*- coding: utf-8 -*- +""" +@package tcmi + +@copyright Copyright (c) 2018+ Fritz Haber Institute of the Max Planck Society, + Benjamin Regler <regler@fhi-berlin.mpg.de> +@license See LICENSE file for details. + +Licensed under the Apache License, Version 2.0 (the "License"). +You may not use this file except in compliance with the License. +""" + +import io import json +import tcmi as pkg from setuptools import setup, find_packages -with open('metainfo.json') as file: +with io.open('metainfo.json', encoding='utf-8') as file: metainfo = json.load(file) setup( - name='tcmi', - version='1.0', + name=pkg.__name__, + version=pkg.__version__, author=', '.join(metainfo['authors']), author_email=metainfo['email'], url=metainfo['url'], @@ -14,4 +29,4 @@ setup( long_description=metainfo['description'], packages=find_packages(), install_requires=['numpy', 'scipy', 'pandas', 'scikit-learn', 'joblib'], -) +) \ No newline at end of file