[Python-apps-commits] r13169 - in packages/pyomo/trunk (18 files)

stender at users.alioth.debian.org stender at users.alioth.debian.org
Sun May 8 09:14:45 UTC 2016


    Date: Sunday, May 8, 2016 @ 09:14:44
  Author: stender
Revision: 13169

[svn-inject] Applying Debian modifications (4.3.11327-1) to trunk

Added:
  packages/pyomo/trunk/debian/
  packages/pyomo/trunk/debian/changelog
  packages/pyomo/trunk/debian/compat
  packages/pyomo/trunk/debian/control
  packages/pyomo/trunk/debian/copyright
  packages/pyomo/trunk/debian/patches/
  packages/pyomo/trunk/debian/patches/run-scripts-from-usr-share.patch
  packages/pyomo/trunk/debian/patches/series
  packages/pyomo/trunk/debian/pyomo.1
  packages/pyomo/trunk/debian/pyomo.docs
  packages/pyomo/trunk/debian/pyomo.examples
  packages/pyomo/trunk/debian/pyomo.links
  packages/pyomo/trunk/debian/pyomo.manpages
  packages/pyomo/trunk/debian/rules
  packages/pyomo/trunk/debian/source/
  packages/pyomo/trunk/debian/source/format
  packages/pyomo/trunk/debian/source/options
  packages/pyomo/trunk/debian/watch


Property changes on: packages/pyomo/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
   + 1

Added: packages/pyomo/trunk/debian/changelog
===================================================================
--- packages/pyomo/trunk/debian/changelog	                        (rev 0)
+++ packages/pyomo/trunk/debian/changelog	2016-05-08 09:14:44 UTC (rev 13169)
@@ -0,0 +1,18 @@
+pyomo (4.3.11327-1) unstable; urgency=medium
+
+  * New upstream release.
+  * deb/control:
+    + put needed version for pyutilib (5.3.2).
+    + added python3-appdirs to build-deps.
+    + added info on missing packages.
+  * deb/copyright: expanded copyright span.
+  * deb/rules: use empty override for disabling tests, cosmetics.
+  * Updated maintainer email address in deb/control, deb/copyright, deb/pyomo.1.
+
+ -- Daniel Stender <stender at debian.org>  Sat, 09 Apr 2016 21:45:39 +0200
+
+pyomo (4.2.10784-1) unstable; urgency=medium
+
+  * Initial release (Closes: #782436).
+
+ -- Daniel Stender <debian at danielstender.com>  Fri, 26 Feb 2016 07:31:37 +0100

Added: packages/pyomo/trunk/debian/compat
===================================================================
--- packages/pyomo/trunk/debian/compat	                        (rev 0)
+++ packages/pyomo/trunk/debian/compat	2016-05-08 09:14:44 UTC (rev 13169)
@@ -0,0 +1 @@
+9

Added: packages/pyomo/trunk/debian/control
===================================================================
--- packages/pyomo/trunk/debian/control	                        (rev 0)
+++ packages/pyomo/trunk/debian/control	2016-05-08 09:14:44 UTC (rev 13169)
@@ -0,0 +1,55 @@
+Source: pyomo
+Section: math
+Priority: optional
+Maintainer: Daniel Stender <stender at debian.org>
+Build-Depends:
+ debhelper (>= 9),
+ dh-python,
+ python3,
+ python3-setuptools,
+ python3-nose,
+ python3-six,
+ python3-ply,
+ python3-pyutilib (>= 5.3.2),
+ python3-appdirs
+Standards-Version: 3.9.7
+Homepage: http://www.pyomo.org/
+X-Python3-Version: >= 3.3
+
+Package: pyomo
+Architecture: all
+Depends:
+ ${python3:Depends},
+ python3-yaml,
+ python3-pyutilib (>= 5.3.2),
+ ${misc:Depends}
+Recommends:
+ glpk-utils,
+ coinor-cbc
+# python3-pyodbc not available (#699778)
+Description: PYthon Optimization Modeling Objects
+ Pyomo is a tool for formulating and analyzing mathematical models
+ that represent real-world systems for complex optimization applications
+ as applied in different areas of business, engineering, research,
+ and administration.
+ It's used to define symbolic problems, create concrete problem
+ instances, and solve this instances with standard solvers.
+ Pyomo provides a capability that is commonly associated with
+ algebraic modeling languages (AML) and applications like
+ AMPL, AIMMS, or GAMS, but has its modeling objects within the Python
+ environment.
+ Pyomo features a versatile set of modeling components, and supports
+ concrete models (defined with data) as well as abstract models (defined
+ without data).
+ .
+ For the processing of instantiated models Pyomo supports a wide range of
+ independent solvers that could be written either in Python or other languages.
+ Pyomo supports the general ASL (AMPL Solver Library) compatible interface,
+ and has invidividual backends for solvers which some of them are available
+ within Debian (GLPK, COIN-OR CPC, OPENOPT).
+ Pyomo's solver manager could also employ the public NEOS Server to remotely
+ optimize models if network access is available.
+ .
+ Pyomo was formerly released as the Coopr software library, and includes
+ the PySP package (Pyomo Stochastic Programming) which provides generic
+ solvers for stochastic programming.
\ No newline at end of file

Added: packages/pyomo/trunk/debian/copyright
===================================================================
--- packages/pyomo/trunk/debian/copyright	                        (rev 0)
+++ packages/pyomo/trunk/debian/copyright	2016-05-08 09:14:44 UTC (rev 13169)
@@ -0,0 +1,40 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Pyomo
+Upstream-Contact: William E. Hart <wehart at sandia.gov>
+Source: https://pypi.python.org/pypi/Pyomo/
+
+Files: *
+Copyright: 2014-2016 Sandia Corporation
+License: BSD-3-Clause
+
+Files: debian/*
+Copyright: 2016 Daniel Stender <stender at debian.org>
+License: BSD-3-Clause
+
+License: BSD-3-Clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ .
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ .
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ .
+ * Neither the name of the Sandia National Laboratories nor the names of
+ its contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+ TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Added: packages/pyomo/trunk/debian/patches/run-scripts-from-usr-share.patch
===================================================================
--- packages/pyomo/trunk/debian/patches/run-scripts-from-usr-share.patch	                        (rev 0)
+++ packages/pyomo/trunk/debian/patches/run-scripts-from-usr-share.patch	2016-05-08 09:14:44 UTC (rev 13169)
@@ -0,0 +1,19 @@
+Description: patch to run scripts instead of from /usr/bin out of /usr/share
+ via "pyomo run" (otherwise "pyomo run --list" shows *all* what is in /usr/bin,
+ and "pyomo run" could run it all, and that's definitely not wanted.
+ "pyomo run --list" now shows all helper scripts in a clean and user friendly way).
+Author: Daniel Stender <debian at danielstender.com>
+Forwarded: not-needed
+
+--- a/pyomo/scripting/driver_help.py
++++ b/pyomo/scripting/driver_help.py
+@@ -84,7 +84,8 @@
+     parser.add_argument("command", nargs='*', help="The command and command-line options")
+ 
+ def command_exec(options):
+-    cmddir = os.path.dirname(os.path.abspath(sys.executable))+os.sep
++    # cmddir = os.path.dirname(os.path.abspath(sys.executable))+os.sep
++    cmddir = '/usr/share/pyomo/'
+     if options.summary:
+         print("")
+         print("The following commands are installed in the Pyomo bin directory:")

Added: packages/pyomo/trunk/debian/patches/series
===================================================================
--- packages/pyomo/trunk/debian/patches/series	                        (rev 0)
+++ packages/pyomo/trunk/debian/patches/series	2016-05-08 09:14:44 UTC (rev 13169)
@@ -0,0 +1 @@
+run-scripts-from-usr-share.patch

Added: packages/pyomo/trunk/debian/pyomo.1
===================================================================
--- packages/pyomo/trunk/debian/pyomo.1	                        (rev 0)
+++ packages/pyomo/trunk/debian/pyomo.1	2016-05-08 09:14:44 UTC (rev 13169)
@@ -0,0 +1,49 @@
+.TH "PYOMO" 1 "" "" "pyomo"
+.SH NAME
+\fBpyomo\fP \- user interface of the Pyomo optimization tool
+.SH USAGE EXAMPLES
+$ pyomo solve --solver=\fIglpk\fP \fImodel1.py\fP \fImodel.dat\fP --summary
+.PP
+$ pyomo solve --solver-manager=neos --solver=\fIcplex\fP \fImodel1.py\fP \fImodel.dat\fP --summary
+.SH OPTIONS
+.IP \fB--version\fP
+put out the version number and exit.
+.IP \fB-h,--help\fP
+put out a help message and exit.
+.SH SUBCOMMANDS
+.IP \fBsolve\fP
+optimize a Pyomo model.
+Some of the solvers which are supported by Pyomo's versatile backend are available within
+Debian.
+\fB--solver=glpk\fP uses the LP/MIP solver (glpsol) of GNU Linear Programming Kit for optimizing (package: glpk-utils). \fB--solver=cbc\fP uses the MIP solver (cbc) of the COIN-OR project (package: coinor-cbc).
+Individual configuration files could be employed, while rich commented templates for that could be easily generated.
+Individual arguments could be passed to the solver by \fB--solver-options="<option>"\fP.
+Please regard that the perfomance level of open source solvers isn't analogous to commercial products like CPLEX when it comes to solving large-scale and very complex problems, but you can do a lot with them.
+The NEOS Server (http://www.neos-server.org/neos/) is employed by \fB--solver-manager=neos\fP, while the individual solver which is hosted there must be given, e.g. \fB--solver=cplex\fP. 
+The command \fBpyomo help --solvers\fP puts out information on the whole issue.
+.IP \fBcheck\fP
+check a model script for errors.
+.IP \fBconvert\fP
+convert a model script to another format.
+.IP \fBrun\fP
+execute helper scripts installed with Pyomo.
+\fB--list\fP shows a list of available scripts, and \fBpyomo help --commands\fP puts out information on them. If you want to run those helper scripts independently please add \fI/usr/share/pyomo/\fP to $PATH.
+.IP \fBinfo\fP
+put out general system information.
+.IP \fBtest-solvers\fP
+test supported solvers.
+.IP \fBhelp\fP
+put out information about Pyomo's components and features.
+E.g. \fBpyomo help --components\fP puts out information about what is available in the modeling environment.
+.PP
+Some subcommands put out a usage synopsis when run without options, and some put out extra information when \fB--help\fP is given to them.
+.SH HELP
+For Pyomo's documentation, please see \fIhttp://www.pyomo.org/documentation/\fP. A large collection
+of example models could be found in \fI/usr/share/doc/pyomo/examples/\fP. And there's a tutorial
+in \fIexamples/pyomo/tutorial\fP.
+.SH SEE ALSO
+glpsol(1), cbc(1)
+.SH AUTHORS
+Pyomo is written by William Hart, John Siirola, and Jean-Paul Watson.
+.P
+This manpage is written by Daniel Stender <stender at debian.org>.

Added: packages/pyomo/trunk/debian/pyomo.docs
===================================================================
--- packages/pyomo/trunk/debian/pyomo.docs	                        (rev 0)
+++ packages/pyomo/trunk/debian/pyomo.docs	2016-05-08 09:14:44 UTC (rev 13169)
@@ -0,0 +1,2 @@
+README.txt
+RELEASE.txt
\ No newline at end of file

Added: packages/pyomo/trunk/debian/pyomo.examples
===================================================================
--- packages/pyomo/trunk/debian/pyomo.examples	                        (rev 0)
+++ packages/pyomo/trunk/debian/pyomo.examples	2016-05-08 09:14:44 UTC (rev 13169)
@@ -0,0 +1 @@
+examples/*
\ No newline at end of file

Added: packages/pyomo/trunk/debian/pyomo.links
===================================================================
--- packages/pyomo/trunk/debian/pyomo.links	                        (rev 0)
+++ packages/pyomo/trunk/debian/pyomo.links	2016-05-08 09:14:44 UTC (rev 13169)
@@ -0,0 +1 @@
+/usr/share/pyomo/pyomo /usr/bin/pyomo
\ No newline at end of file

Added: packages/pyomo/trunk/debian/pyomo.manpages
===================================================================
--- packages/pyomo/trunk/debian/pyomo.manpages	                        (rev 0)
+++ packages/pyomo/trunk/debian/pyomo.manpages	2016-05-08 09:14:44 UTC (rev 13169)
@@ -0,0 +1 @@
+debian/pyomo.1
\ No newline at end of file

Added: packages/pyomo/trunk/debian/rules
===================================================================
--- packages/pyomo/trunk/debian/rules	                        (rev 0)
+++ packages/pyomo/trunk/debian/rules	2016-05-08 09:14:44 UTC (rev 13169)
@@ -0,0 +1,18 @@
+#!/usr/bin/make -f
+#export DH_VERBOSE=1
+#export DEB_BUILD_OPTIONS=nocheck
+
+# modules need to be by publically importable
+
+export PYBUILD_INSTALL_ARGS=--install-scripts=/usr/share/pyomo
+# see run-scripts-from-usr-share.patch
+
+%:
+	dh $@ --with python3 --buildsystem=pybuild
+
+override_dh_auto_test:
+	# TODO: get tests to run
+
+override_dh_fixperms:
+	dh_fixperms
+	find $(CURDIR)/debian/pyomo/usr/share/doc/pyomo/examples -executable -type f -exec chmod 644 {} \;


Property changes on: packages/pyomo/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/pyomo/trunk/debian/source/format
===================================================================
--- packages/pyomo/trunk/debian/source/format	                        (rev 0)
+++ packages/pyomo/trunk/debian/source/format	2016-05-08 09:14:44 UTC (rev 13169)
@@ -0,0 +1 @@
+3.0 (quilt)

Added: packages/pyomo/trunk/debian/source/options
===================================================================
--- packages/pyomo/trunk/debian/source/options	                        (rev 0)
+++ packages/pyomo/trunk/debian/source/options	2016-05-08 09:14:44 UTC (rev 13169)
@@ -0,0 +1 @@
+extend-diff-ignore="^[^/]+\.egg-info/"
\ No newline at end of file

Added: packages/pyomo/trunk/debian/watch
===================================================================
--- packages/pyomo/trunk/debian/watch	                        (rev 0)
+++ packages/pyomo/trunk/debian/watch	2016-05-08 09:14:44 UTC (rev 13169)
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/Pyomo/Pyomo-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))




More information about the Python-apps-commits mailing list