Skip to content

Commit 19f7532

Browse files
damiansteigerthomashaener
authored andcommitted
Add setup and header (#4)
1 parent 82cb666 commit 19f7532

File tree

4 files changed

+60
-1
lines changed

4 files changed

+60
-1
lines changed

fermilibpluginpyscf/__init__.py

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,22 @@
1-
from ._run_pyscf import run_pyscf
1+
# Licensed under the Apache License, Version 2.0 (the "License");
2+
# you may not use this file except in compliance with the License.
3+
# You may obtain a copy of the License at
4+
#
5+
# http://www.apache.org/licenses/LICENSE-2.0
6+
#
7+
# Unless required by applicable law or agreed to in writing, software
8+
# distributed under the License is distributed on an "AS IS" BASIS,
9+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
# See the License for the specific language governing permissions and
11+
# limitations under the License.
12+
13+
"""
14+
FermiLib plugin to interface with PySCF.
15+
"""
16+
17+
from ._version import __version__
18+
19+
try:
20+
from ._run_pyscf import run_pyscf
21+
except ImportError:
22+
raise Exception("Please install PySCF.")

fermilibpluginpyscf/_version.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Licensed under the Apache License, Version 2.0 (the "License");
2+
# you may not use this file except in compliance with the License.
3+
# You may obtain a copy of the License at
4+
#
5+
# http://www.apache.org/licenses/LICENSE-2.0
6+
#
7+
# Unless required by applicable law or agreed to in writing, software
8+
# distributed under the License is distributed on an "AS IS" BASIS,
9+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
# See the License for the specific language governing permissions and
11+
# limitations under the License.
12+
13+
"""Define version number here and read it from setup.py automatically"""
14+
__version__ = "0.1a0"

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fermilib

setup.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
from setuptools import setup, find_packages
2+
3+
# This reads the __version__ variable from fermilibpluginpyscf/_version.py
4+
exec(open('fermilibpluginpyscf/_version.py').read())
5+
# Readme file as long_description:
6+
long_description = open('README.rst').read()
7+
# Read in requirements.txt
8+
requirements = open('requirements.txt').readlines()
9+
requirements = [r.strip() for r in requirements]
10+
11+
12+
setup(
13+
name='fermilibpluginpyscf',
14+
version=__version__,
15+
author='FermiLib plugin PySCF developers',
16+
author_email='[email protected]',
17+
url='http://www.projectq.ch',
18+
description='A plugin allowing FermiLib to interface with PySCF.',
19+
long_description=long_description,
20+
install_requires=requirements,
21+
license='Apache 2',
22+
packages=find_packages()
23+
)

0 commit comments

Comments
 (0)