Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #904 from sardana-org/release-Jul18
Browse files Browse the repository at this point in the history
Release Jul18 (2.5.0)
  • Loading branch information
daneos authored Aug 10, 2018
2 parents a43330e + 224a796 commit 3c2bb3e
Show file tree
Hide file tree
Showing 176 changed files with 4,872 additions and 2,880 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ commit = True
message = Bump version {current_version} to {new_version}
tag = False
tag_name = {new_version}
current_version = 2.4.0
current_version = 2.5.0
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?
serialize =
{major}.{minor}.{patch}-{release}
Expand Down
40 changes: 36 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,19 @@ services:
- docker

python:
- "2.7"
- "3.6"

env:
global:
# Doctr deploy key for sardana-org/sardana-doc
- secure: "p/0UgVZzPKJQqcvQ/97qMgo9kPCE0cZ6vI+308YEJ2o9xj4a3FsfHCZ/vWtjdsrp1sQbtKVDesx+xmK4CLDzQeC2+Xskv8OZDjaG2jYkHcVosZEM3EGW8rLVKzoDWLr6cTy2wexLgjHPCsmrjukPs49/i5p+WU0no64YoLlZdp9TT+gvWSQJLIk6R4eqt4FHMszPybLv0pvb1SEiCzimlX1WM1pBrE0LHgchd2ZBYSUWTTwe+Koi4HCS4Bads8j20K2e3fFKcmR2u9DfmU+7Mf5HRJsj1LYJgBUF76lUG2/fZfpoDe8sWi+eUewTa3zNM4bhRLpV+pmG0ypplM4pIcdvwiHV03nGSGu6XK6OGQ/Mgsw0fmud4JR4f5g9DgEfERlyJKI4A9mPZQ327OmEwOOl33x2AFJAL05Qvm0yXCkf1dwgYXnZl44SQbAczY1NHFL90t6xbHtmTitJrE2Xb+4BLzMe3OOZj6j/0QeiXA4z1FnZr1s8UoAsm68iW194IuFg1RRG9FTISFWaBew5wzwvAJak0DxkpG0k43VkHiVC7sPHqr5CxXMXO/MuaptK2ti6iLK9xBAEUpO9HluOkeJq5WDIIxBiBS9tPi0i3vIpq87RjHkdw5n7pdIqnuJ1nXUjpWsuUyV3fLkY12fFxSbZgqmNhIE5/o9c5VP/69Y="

matrix:
- TEST="flake8"
- TEST="testsuite"
- TEST="testsuite" DOCKER_IMG=reszelaz/sardana-test
- TEST="testsuite" DOCKER_IMG=reszelaz/sardana-test:taurus-support-3.x
- TEST="doc" DOCKER_IMG=reszelaz/sardana-test


before_install:
# install flake8 to perform python code style check in the script part
Expand All @@ -23,8 +31,8 @@ before_install:

install:
# run reszelaz/sardana-test docker container (Debian8 with sardana-deps)
- if [ $TEST == "testsuite" ]; then docker pull reszelaz/sardana-test; fi
- if [ $TEST == "testsuite" ]; then docker run -d --name=sardana-test -h sardana-test --volume=`pwd`:/sardana reszelaz/sardana-test; fi
- if [ $TEST != "flake8" ]; then docker pull $DOCKER_IMG; fi
- if [ $TEST != "flake8" ]; then docker run -d --name=sardana-test -h sardana-test --volume=`pwd`:/sardana $DOCKER_IMG; fi

# wait approx. 10 s (supervisor starts mysql and Tango DB)
- if [ $TEST == "testsuite" ]; then sleep 10; fi
Expand All @@ -37,7 +45,31 @@ install:
- if [ $TEST == "testsuite" ]; then docker exec sardana-test supervisorctl start MacroServer; fi

script:
# make the script fail if a line fails
- set -e
# run flake8 check on all python files in the project
- if [ $TEST == "flake8" ]; then ci/flake8_diff.sh; fi
# run the full testsuite
- if [ $TEST == "testsuite" ]; then docker exec sardana-test sardanatestsuite; fi
# build docs
- if [ $TEST == "doc" ]; then
docker exec -t sardana-test /bin/bash -c "cd /sardana ; sphinx-build -W doc/source/ build/sphinx/html" ;
fi

# deploy sphinx docs to sardana-doc repo if we are on upstream
- if [[ $TEST == "doc" && $TRAVIS_REPO_SLUG == "sardana-org/sardana" ]]; then
pip install doctr ;
docker exec sardana-test /bin/bash -c "touch /sardana/build/sphinx/html/.nojekyll" ;
if [[ $TRAVIS_BRANCH == "develop" ]]; then
doctr deploy . ;
else
doctr deploy "v-$TRAVIS_BRANCH" ;
fi;
fi

doctr:
key-path : ci/github_deploy_key.enc
deploy-repo : sardana-org/sardana-doc
require-master: false
sync: true
built-docs: build/sphinx/html/
78 changes: 77 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,81 @@ All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
This file follows the formats and conventions from [keepachangelog.com]

## [Unreleased]

## [2.5.0] 2018-08-10

### Added
- `def_discr_pos`, `udef_discr_pos` and `prdef_discr` macros for configuring
discrete pseudo motors (#801)
- `Configuration` attribute to discrete pseudo motor (#801)
- Avoid desynchronization of motion and acquisition in time synchronized
continuous scans by checking whether the motor controller accepts the scan
velocity and in case it rounds it up, reduce the scan velocity (#757)
- `repeat` macro for executing n-times a set of macros passed as parameters
or attached as hooks (#310, #745, #892)
- `pre-acq` and `post-acq` hooks to the `ct` macro (#808)
- `pre-acq` and `post-acq` hooks to the continuous scans: `ascanct` family
macros (#780)
- `pre-acq` and `post-acq` hooks to `timescan` macro (#885)
- `SoftwareSynhronizerInitialDomain` Tango attribute to
the Measurement Group Tango device and `sw_synch_initial_domain` attribute
to the `PoolMeasurementGroup` (#759) - experimental
- Default macro logging filter which improves the output of logging messages.
Filter can be configured with sardanacustomsettings (#730)
- Possibiltiy to configure ORB end point for Tango servers with Tango DB
free property (#874)
- Enhance software synchronization by allowing function generation when
group has 1 repeat only (#786)
- Tab completion in spock for Boolean macro parameters (#871)
- Information about controller properties in `sar_info` macro (#855, #866)

### Fixed
- Ensure that value buffer (data) events are handled sequentially so data
are not wrongly interpreted as lost (#794, #813)
- Push change events from code for measurement group attributes: moveable,
latency time and synchronization (#736, #738)
- `getPoolObj` random `AttributeErrors: _pool_obj` errors in macros (#865, #57)
- Pre-scan snapshot (#753)
- Avoid loading configuration to disabled controllers in measurement group
acquisition (#758)
- Spock returning prompt too early not allowing to stop macros on Windows
(#717, #725, #905)
- Validation of starts and finals for a2scanct, a3scanct, meshct, ... (#734)
- `defelem` macro when using default axis number (#568, #609)
- Boolean macro parameter validation - now works only True, true, 1
or False, false, 0 (#871)
- Remove numpy and pylab symbols from spock namespace in order to
not collide with macros e.g. repeat, where, etc. (#893)
- Make SPEC_FileRecorder use LF instead of CRLF even on windows (#750)
- Appending of hooks from sequence XML (#747)
- Avoid problems with MacroServer attributes (Environment and Elements) in
taurus extesnions by using newly introduced (in taurus 4.4.0) TangoSerial
serialization mode (#897)
- Pseudo counters in continuous acquisition (#899)
- Split of `PoolPath`, `MacroPath` and `RecorderPath` with OS separator (#762)
- `lsgh` list hooks multiple times to reflect the configuration (#774)
- Avoid errors if selected trajectory in HKL controller doesnot exists (#752)
- Pass motion range information with `MoveableDesc` in `mesh` scan (#864)
- `getElementByAxis` and `getElementByName` of Controller Taurus extension
class (#872)
- `GScan` intervals estimation (#772)
- `meshct` intervals estimation (#768)
- Documentation on how to install and use Sardana from Git clone (#751)
- Documentation (Sphinx) build warnings (#859, #179, #219, #393)

### Changed
- Change epoch from float to formatted date & time in Spec recorder (#766)
- Documentation hosting from ReadTheDocs to Github Pages (build on Travis) (#826)
- Door and MacroServer references in spock configuration file (profile) to
use FQDN URI references (#894, #668)

### Deprecated
- `Label` and `Calibration` attributes of discrete pseudo motor in favor
of `Configuration` attribute (#801)
- `PoolMotorSlim` widget in favor of `PoolMotorTV` widget (#163, #785)
- `Controller.getUsedAxis` (Taurus device extension) in favor
of `Controller.getUsedAxes` (#609)

## [2.4.0] 2018-03-14

Expand Down Expand Up @@ -396,7 +471,8 @@ Main improvements since sardana 1.5.0 (aka Jan15):


[keepachangelog.com]: http://keepachangelog.com
[Unreleased]: https://github.com/sardana-org/sardana/compare/2.3.2...HEAD
[Unreleased]: https://github.com/sardana-org/sardana/compare/2.5.0...HEAD
[2.5.0]: https://github.com/sardana-org/sardana/compare/2.4.0...2.5.0
[2.4.0]: https://github.com/sardana-org/sardana/compare/2.3.2...2.4.0
[2.3.2]: https://github.com/sardana-org/sardana/compare/2.3.1...2.3.2
[2.3.1]: https://github.com/sardana-org/sardana/compare/2.3.0...2.3.1
Expand Down
12 changes: 10 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,17 @@ For the contributions, we use the [Fork & Pull Model][]:
In general, the contributions to sardana should consider following:

- The code must comply with the [Sardana coding conventions][].
[Sardana travis-ci][] will check it for each Pull Request.
[Sardana travis-ci][] will check it for each Pull Request (PR) using
the latest version of [flake8 available on PyPI][]. The check
will be done just on this part of code that is modified by the PR
together with some lines of context.
In case the check fails, please correct the errors and commit
to the Pull Request branch again. You may consider running the check locally
to the PR branch again. You may consider running the check locally
using the [flake8_diff.sh][] script in order to avoid unnecessary commits.
If you find problems with fixing these errors do not hesitate to ask for
help in the PR conversation! We will not reject any contribution due
to these errors - the purpose of this check is just to maintain the code
base clean.

- The contributor must be clearly identified. The commit author
email should be valid and usable for contacting him/her.
Expand Down Expand Up @@ -76,3 +83,4 @@ In general, the contributions to sardana should consider following:
[LGPL]: http://www.gnu.org/licenses/lgpl.html
[Sardana travis-ci]: https://travis-ci.org/sardana-org/sardana
[flake8_diff.sh]: https://github.com/sardana-org/sardana/blob/develop/ci/flake8_diff.sh
[flake8 available on PyPI]: https://pypi.org/project/flake8
1 change: 1 addition & 0 deletions ci/github_deploy_key.enc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gAAAAABbRIlov7GgCqYKPx7wnaU_-rtYRBbbucfQIPnjSsA7UUntuTcOiyzb2qEr7FCyUtZ9q2fWJf6NFG-c8RFJP1CfnviMDruCzAPPmBgJilSFbtC5sXBme8gesFUylVmjo-vUWHqgcSFmtwWv-lKef9Y1Uj1IHkw7ujEPEb5CzqbqeNYLX0b2vaFJzj1ySQoAAXv5_M6Y6It5kSg2ob3DJvql-w81PkyrnqpcQbEtnSiRgrUCIAQQDpJFy2f-NPWcMqYh9yLnjvwfEKO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