Skip to content

Commit

Permalink
Added requirements.txt, bugfix for installation when dependencies not…
Browse files Browse the repository at this point in the history
… present - upgrade to v1.0
  • Loading branch information
lindonroberts committed Jul 17, 2018
1 parent 1eeae8b commit 88668c2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dfogn/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
"""

__version__ = '0.2'
__version__ = '1.0'
4 changes: 4 additions & 0 deletions docs/history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ Version 0.2 (20 Feb 2018)
-------------------------
* 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.

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

Binary file modified manual.pdf
Binary file not shown.
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
numpy>=1.11
scipy>=0.18
10 changes: 7 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@

from setuptools import setup

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

setup(
name='DFOGN',
Expand All @@ -35,7 +39,7 @@
author='Lindon Roberts',
author_email='lindon.roberts@maths.ox.ac.uk',
url="https://github.com/numericalalgorithmsgroup/dfogn/",
download_url="https://github.com/numericalalgorithmsgroup/dfogn/archive/0.2.tar.gz",
download_url="https://github.com/numericalalgorithmsgroup/dfogn/archive/1.0.tar.gz",
packages=['dfogn'],
license='GNU GPL',
keywords = "mathematics derivative free optimization nonlinear least squares",
Expand Down

0 comments on commit 88668c2

Please sign in to comment.