Commit f3b47cdb authored by Paul Erhart's avatar Paul Erhart

MAINT: updated setup.py and added info to __init__.py

parent 29c5e959
# -*- coding: utf-8 -*-
'''
dynasor module.
'''
__project__ = 'dynasor'
__description__ = 'A tool for calculating dynamical structure factors'
__authors__ = ['Mattias Slabanja',
'Erik Fransson']
__copyright__ = '2018'
__license__ = 'GPL2+'
__credits__ = ['The dynasor developers team']
__version__ = '0.2'
__maintainer__ = 'The dynasor developers team'
__email__ = 'dynasor@materialsmodeling.org'
__status__ = 'beta-version'
__url__ = 'http://dynasor.materialsmodeling.org/'
......@@ -3,8 +3,9 @@
from distutils.core import setup
from distutils.extension import Extension
from distutils.sysconfig import get_config_vars
from build_config import *
import re
from build_config import (local_compiler, local_linker, local_link_shared,
extra_compile_args, extra_link_args)
if local_compiler is not None:
# Kludge: Force compiler of choice for building _rho_j_k.c.
......@@ -38,29 +39,42 @@ rho_j_k_s_ext = Extension('dsf._rho_j_k_s',
)
setup(name = 'python-dynasor',
version = '0.2',
description = 'A tool for calculating dynamical structure factors',
author = 'Mattias Slabanja, Erik Fransson',
author_email = 'n/a',
maintainer = 'Erik Fransson',
maintainer_email = 'erikfr@chalmers.se',
packages = ['dsf', 'dsf/trajectory_reader'],
ext_modules = [rho_j_k_d_ext,
rho_j_k_s_ext],
scripts = ['dynasor'],
data_files = [('share/man/man1', ['dynasor.1'])],
requires = ['numpy'],
license = "GPL2+",
classifiers = ['Development Status :: 3 - Beta',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Programming Language :: Python',
'Programming Language :: C',
'Topic :: Scientific/Engineering :: Chemistry',
'Topic :: Scientific/Engineering :: Physics'
]
)
with open('hiphive/__init__.py') as fd:
lines = '\n'.join(fd.readlines())
version = re.search("__version__ = '(.*)'", lines).group(1)
author = re.search("__author__ = '(.*)'", lines).group(1)
maintainer = re.search("__maintainer__ = '(.*)'", lines).group(1)
maintainer_email = re.search("__maintainer_email__ = '(.*)'", lines).group(1)
url = re.search("__url__ = '(.*)'", lines).group(1)
license = re.search("__license__ = '(.*)'", lines).group(1)
description = re.search("__description__ = '(.*)'", lines).group(1)
name = 'dynasor' # PyPI name
# Linux-distributions may want to change the name:
if 0:
name = 'python-dynasor'
setup(name=name,
version=version,
description=description,
author=author,
maintainer=maintainer,
maintainer_email=maintainer_email,
packages=['dsf', 'dsf/trajectory_reader'],
ext_modules=[rho_j_k_d_ext,
rho_j_k_s_ext],
scripts=['dynasor'],
data_files=[('share/man/man1', ['dynasor.1'])],
requires=['numpy'],
license='GPL2+',
classifiers=['Development Status :: 3 - Beta',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Programming Language :: Python',
'Programming Language :: C',
'Topic :: Scientific/Engineering :: Chemistry',
'Topic :: Scientific/Engineering :: Physics'
]
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment