-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·63 lines (50 loc) · 1.87 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# An experimental local optimization package
# Copyright (C) 2018 Cristina E. Gonzalez-Espinoza <[email protected]>
#
# This file is part of LROptimizer.
#
# LROptimizer is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# LROptimizer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>
# --
"""LROptimizer setup script.
If you are not familiar with setup.py, just use pip instead:
pip install Flik --user --upgrade
Alternatively, you can install from source with
./setup.py install --user
"""
from __future__ import print_function
from setuptools import setup
def get_version():
"""Load the version from version.py, without importing it.
This function assumes that the last line in the file contains a variable defining the
version string with single quotes.
"""
with open('Flik/version.py', 'r') as f:
return f.read().split('=')[-1].replace('\'', '').strip()
def readme():
"""Load README.rst for display on PyPI."""
with open('README.rst') as f:
return f.read()
setup(
name='LROptimizer',
version='0.0.1b',
description='Optimizer of Long-Range model Hamiltonians.',
long_description=readme(),
author='Cristina E. Gonz\'alez-Espinoza',
author_email='[email protected]',
url='https://github.com/crisely09/lroptimizer',
packages=['LROptimizer'],
zip_safe=False,
)