Skip to content

Commit 88668c2

Browse files
committed
Added requirements.txt, bugfix for installation when dependencies not present - upgrade to v1.0
1 parent 1eeae8b commit 88668c2

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

dfogn/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424
2525
"""
2626

27-
__version__ = '0.2'
27+
__version__ = '1.0'

docs/history.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ Version 0.2 (20 Feb 2018)
1010
-------------------------
1111
* Minor bug fix to trust region subproblem solver (the output :code:`crvmin` is calculated correctly) - this has minimal impact on the performance of DFO-GN.
1212

13+
Version 1.0 (17 Jul 2018)
14+
-------------------------
15+
* Bug fix for installation when dependencies not installed, added requirements.txt - no changes to the DFO-GN algorithm.
16+

manual.pdf

316 Bytes
Binary file not shown.

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
numpy>=1.11
2+
scipy>=0.18

setup.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@
2424

2525
from setuptools import setup
2626

27-
# Get package version
28-
from dfogn import __version__
27+
# Get package version without "import dfogn" (which requires dependencies to already be installed)
28+
import os
29+
version = {}
30+
with open(os.path.join('dfogn', 'version.py')) as fp:
31+
exec(fp.read(), version)
32+
__version__ = version['__version__']
2933

3034
setup(
3135
name='DFOGN',
@@ -35,7 +39,7 @@
3539
author='Lindon Roberts',
3640
author_email='[email protected]',
3741
url="https://github.com/numericalalgorithmsgroup/dfogn/",
38-
download_url="https://github.com/numericalalgorithmsgroup/dfogn/archive/0.2.tar.gz",
42+
download_url="https://github.com/numericalalgorithmsgroup/dfogn/archive/1.0.tar.gz",
3943
packages=['dfogn'],
4044
license='GNU GPL',
4145
keywords = "mathematics derivative free optimization nonlinear least squares",

0 commit comments

Comments
 (0)