Skip to content

Commit

Permalink
add setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Jul 9, 2015
1 parent e932a5a commit f01361b
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 8 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 Materials Project (LBNL)
Copyright (c) 2014-2015 Materials Project (LBNL)

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
10 changes: 6 additions & 4 deletions mpcontribs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""The Materials Project's Community Contribution Framework"""

__version__ = '0.0'
__url__ = 'https://github.com/materialsproject/MPContribs'
__author__ = 'Patrick Huck'
__copyright__ = 'Copyright 2014, The Materials Project'
__version__ = '0.1'
__maintainer__ = 'Patrick Huck'
__email__ = '[email protected]'
__date__ = 'Aug 22, 2014'
__copyright__ = 'Copyright 2014-2015, The Materials Project'
__maintainer__ = 'Patrick Huck'
14 changes: 11 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
atomicfile==1.0
chardet==2.3.0
fake-factory==0.4.2
Flask==0.10.1
gnureadline==6.3.3
ipython==3.1.0
itsdangerous==0.24
Jinja2==2.7.3
MarkupSafe==0.23
matplotlib==1.4.2
mock==1.0.1
monty==0.6.2
monty==0.6.4
nose==1.3.4
numpy==1.9.1
pandas==0.15.2
plotly==1.6.15
prettytable==0.7.2
pybtex==0.18
pyhull==1.5.3
pymatgen==3.0.8
pymongo==2.7.2
-e [email protected]:tschaume/pymatgen.git@84514995c24b3c4df2f8780d069bdd0af20f7f0a#egg=pymatgen-origin_submit_mpfile
pymongo==3.0
pyparsing==2.0.3
python-dateutil==2.3
pytz==2015.2
PyYAML==3.11
requests==2.6.0
scipy==0.14.0
six==1.9.0
Werkzeug==0.10.4
28 changes: 28 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import io, re
from setuptools import setup

package_name = 'mpcontribs'
init_py = io.open('{}/__init__.py'.format(package_name)).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py))
metadata['doc'] = re.findall('"""(.+)"""', init_py)[0]

setup(
name = package_name,
version = metadata['version'],
description = metadata['doc'],
author = metadata['author'],
author_email = metadata['email'],
url = metadata['url'],
packages = [
package_name, '{}.fake'.format(package_name),
'{}.io'.format(package_name),
'{}.webui'.format(package_name)
],
include_package_data=True,
install_requires = [
'numpy==1.9.1', 'Flask==0.10.1', 'pandas==0.15.2', 'plotly==1.6.15',
'six==1.9.0', 'monty==0.6.4'
],
license = 'MIT',
keywords = ['materials', 'contribution', 'framework', 'data', 'interactive'],
)

0 comments on commit f01361b

Please sign in to comment.