Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
37b06f4
Added notebook for doing development work on IO-Cleanup.
Feb 17, 2017
feb68f5
Added .eggs directory to gitignore.
Feb 17, 2017
5e2d95d
Broke out the numerator/denominator cleanup function into a separate …
Feb 18, 2017
cd7f596
Merge remote-tracking branch 'upstream/master'
Feb 18, 2017
509ff8e
Removed test notebook
Feb 18, 2017
d44489f
Renamed cleanPart to _cleanPart since it is an internal function, as …
Feb 18, 2017
d8d6b02
Fix minreal not returning a discrete TF
rssalessio Mar 26, 2017
585c028
change if to None. add tests
rssalessio Mar 29, 2017
d4fc2d0
BLD: travis update for new/old scipy + improved slycot
murrayrm Dec 23, 2017
11c99ef
Fixes for SciPy 1.0 compatibility
murrayrm Dec 23, 2017
b6e378f
BLD: updated Travis CI script to build slycot from source
murrayrm Dec 24, 2017
087046f
DOC: fix conda-recipe and make_version for conda v3
murrayrm Dec 29, 2017
b19ca11
DOC: update docstrings for system creation (see PR #163)
murrayrm Dec 29, 2017
bde823b
DOC: add more info on class constructors
murrayrm Dec 29, 2017
b881b77
DOC: improved docstrings for fucntions with variable arguments
murrayrm Dec 29, 2017
b1437f0
unit test from kangwonlee commit facfe9c49d79227dd3bdcd22af9d0aa917ac…
murrayrm Dec 29, 2017
10cdb7a
TST: renamed unit test from kangwonlee
murrayrm Dec 29, 2017
af8837e
Merge branch 'InputSanitization' of https://github.com/jed-frey/pytho…
murrayrm Dec 29, 2017
b697a08
Merge branch 'jed-frey-InputSanitization' into sstf_input_sanitization
murrayrm Dec 29, 2017
68b5dd1
address additional comments from roryyorke in PR #135
murrayrm Dec 29, 2017
314c4eb
DOC: fixed typos + address @roryyorke feedback
murrayrm Dec 30, 2017
aa6e0df
replace np.pi with math.pi (avoids Mock() issues) + docstring update …
murrayrm Dec 30, 2017
11a6264
Merge pull request #1 from murrayrm/sstf_input_sanitization
Dec 31, 2017
fbcdc21
Use slycot's tb05ad for faster and more accurate frequency response e…
rabraker Jan 2, 2018
7d8bc65
Merge pull request #169 from murrayrm/fix_travis
murrayrm Jan 2, 2018
9457031
Merge pull request #167 from murrayrm/fix_conda
murrayrm Jan 2, 2018
c4f1c34
Merge pull request #170 from murrayrm/fix_scipy-1.0
murrayrm Jan 2, 2018
bbb902f
Merge branch 'master' into InputSanitization
murrayrm Jan 2, 2018
8c997ff
Merge branch 'master' into InputSanitization
murrayrm Jan 2, 2018
a5094e2
Merge pull request #135 from jed-frey/InputSanitization
murrayrm Jan 2, 2018
6e3c2dd
Merge branch 'master' into statesp_constructor_doc
murrayrm Jan 2, 2018
2635889
Merge branch 'master' into statesp_constructor_doc
murrayrm Jan 2, 2018
f890a88
Merge pull request #171 from murrayrm/statesp_constructor_doc
murrayrm Jan 2, 2018
33bebc1
Merge pull request #140 from rssalessio/master
murrayrm Jan 2, 2018
66c0088
Use slycot's tb05ad for faster and more accurate frequency response e…
rabraker Jan 2, 2018
308d8b5
Merge branch 'freqresp_tb05ad' of github.com:rabraker/python-control …
rabraker Jan 2, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
DOC: fix conda-recipe and make_version for conda v3
  • Loading branch information
murrayrm committed Dec 29, 2017
commit 087046fa283e7d1c5ad0156e129933f58007e540
5 changes: 5 additions & 0 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
package:
name: control
version: {{ GIT_DESCRIBE_TAG }}

source:
git_url: ../

build:
number: {{ GIT_DESCRIBE_NUMBER }}
script:
- cd $RECIPE_DIR/..
- $PYTHON make_version.py
Expand Down
35 changes: 21 additions & 14 deletions make_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
# make_version.py - generate version information
#
# Author: Clancy Rowley
# Date: 2 Apr 2015
# Modified: Richard M. Murray, 28 Dec 2017
#
# This script is used to create the version information for the python-
# control package. The version information is now generated directly from
# tags in the git repository. Now, *before* running setup.py, one runs
#
# python make_version.py
#
# and this generates a file with the version information. This is copied
# from binstar (https://github.com/Binstar/binstar) and seems to work well.
#
# The original version of this script also created version information for
# conda, but this stopped working when conda v3 was released. Instead, we
# now use jinja templates in conda-recipe to create the conda information.
# The current version information is used in setup.py, control/__init__.py,
# and doc/conf.py (for sphinx).

from subprocess import check_output
import os

Expand Down Expand Up @@ -33,19 +54,5 @@ def main():
fd.write('__version__ = "%s.post%s"\n' % (version, build))
fd.write('__commit__ = "%s"\n' % (commit))

# Write files for conda version number
SRC_DIR = os.environ.get('SRC_DIR', '.')
conda_version_path = os.path.join(SRC_DIR, '__conda_version__.txt')
print("Writing %s" % conda_version_path)
with open(conda_version_path, 'w') as conda_version:
conda_version.write(version)

conda_buildnum_path = os.path.join(SRC_DIR, '__conda_buildnum__.txt')
print("Writing %s" % conda_buildnum_path)

with open(conda_buildnum_path, 'w') as conda_buildnum:
conda_buildnum.write(build)


if __name__ == '__main__':
main()