Skip to content

Commit

Permalink
Minor refactoring and variable renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
andfoy committed May 13, 2017
1 parent 5629a06 commit c33a548
Show file tree
Hide file tree
Showing 116 changed files with 4,717 additions and 4,111 deletions.
44 changes: 18 additions & 26 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,39 @@
# https://travis-ci.org/spyder-ide/spyder

language: python
dist: trusty
sudo: false

env:
global:
- MINICONDA_VERSION="latest"
- MINICONDA_LINUX="Linux-x86_64"
- MINICONDA_OSX="MacOSX-x86_64"

matrix:
include:
# Linux using pip packages
- python: "3.5"
env: USE_QT_API=PyQt5 USE_CONDA=false
os: linux
# Linux using conda packages
- python: "2.7"
env: USE_QT_API=PyQt4 USE_CONDA=true
os: linux
# This never ends!
#- python: "2.7"
# env: TEST_MODULES=false
# os: linux
- python: "2.7"
env: USE_QT_API=PyQt5 USE_CONDA=true
env: TEST_MODULES=true
os: linux
- python: "3.5"
env: USE_QT_API=PyQt4 USE_CONDA=true
env: TEST_MODULES=false
os: linux
- python: "3.5"
env: USE_QT_API=PyQt5 USE_CONDA=true
env: TEST_MODULES=true
os: linux
- python: "3.4"
env: TEST_MODULES=false
os: linux

before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "export FULL_SPYDER_CLONE=$HOME/spy-clone"

install:
- ./continuous_integration/travis/install.sh;
- export PATH="$HOME/miniconda/bin:$PATH";
- if [ "${USE_CONDA}" = "true" ]; then
source activate test-environment;
fi
- ./continuous_integration/install.sh;

script:
- ./continuous_integration/travis/build_test.sh
- ./continuous_integration/travis/run_test.sh
- ./continuous_integration/travis/modules_test.sh
- |
if [ "$TEST_MODULES" = "true" ]; then
./continuous_integration/travis/modules_test.sh
else
./continuous_integration/travis/test-qt4.sh
fi
13 changes: 6 additions & 7 deletions Announcements.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
# Minor release to list

**Subject**: [ANN] Spyder 3.1.3 is released!
**Subject**: [ANN] Spyder 3.1.4 is released!


Hi all,

On the behalf of the [Spyder Project Contributors](https://github.com/spyder-ide/spyder/graphs/contributors),
I'm pleased to announce that Spyder **3.1.3** has been released and is available for
I'm pleased to announce that Spyder **3.1.4** has been released and is available for
Windows, GNU/Linux and MacOS X: https://github.com/spyder-ide/spyder/releases

This release comes almost one month after version 3.1.2 and fixes several
crashes and segfaults introduced in the 3.1 series, so everyone is encouraged
to update to this version.
This release comes almost two months after version 3.1.3 and adds compatibility
with IPython 6 and Jedi 0.10, so everyone is encouraged to update to this version.

In this release we also fixed 25 issues and merged 29 pull requests that amount
to almost 150 commits. For a full list of fixes, please see our
In this release we also fixed 19 issues and merged 37 pull requests that amount
to almost 200 commits. For a full list of fixes, please see our
[changelog](https://github.com/spyder-ide/spyder/blob/3.x/CHANGELOG.md)

Don't forget to follow Spyder updates/news on the project
Expand Down
74 changes: 74 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,79 @@
# History of changes

## Version 3.1.4 (2017-04-24)

### Bugs fixed

**Issues**

* [Issue 4372](https://github.com/spyder-ide/spyder/issues/4372) - Update translations for 3.1.4
* [Issue 4284](https://github.com/spyder-ide/spyder/issues/4284) - The message about the removal of the Python console is also shown on the Internal console
* [Issue 4233](https://github.com/spyder-ide/spyder/issues/4233) - Python console is stealing focus at startup because of message about its removal
* [Issue 4217](https://github.com/spyder-ide/spyder/issues/4217) - "Unable to connect to the internet" problem
* [Issue 4191](https://github.com/spyder-ide/spyder/issues/4191) - Kernel dies and can't report errors because of failure to read stderr file
* [Issue 4174](https://github.com/spyder-ide/spyder/issues/4174) - Add our required packages for testing to setup.py
* [Issue 4173](https://github.com/spyder-ide/spyder/issues/4173) - Add a message in the update dialog about not using pip if Spyder is running under Anaconda/Miniconda
* [Issue 4172](https://github.com/spyder-ide/spyder/issues/4172) - Add a message to the Python console about its removal in Spyder 3.2
* [Issue 4170](https://github.com/spyder-ide/spyder/issues/4170) - IPython console fails to start (Ipython >=6.x)
* [Issue 4161](https://github.com/spyder-ide/spyder/issues/4161) - Create a test for finding print statements in the code
* [Issue 4141](https://github.com/spyder-ide/spyder/issues/4141) - Code completion breaks with Spyder 3 for modules added through the Python path manager
* [Issue 4003](https://github.com/spyder-ide/spyder/issues/4003) - Debugging seems to break with recent versions of Spyder and tqdm
* [Issue 4002](https://github.com/spyder-ide/spyder/issues/4002) - %matplolib magic command in IPython terminal needs to be executed twice
* [Issue 3985](https://github.com/spyder-ide/spyder/issues/3985) - Add CI testing with Python 3.6
* [Issue 3967](https://github.com/spyder-ide/spyder/issues/3967) - Hide calltip when a matching `)` is written up to the starting point where it's shown
* [Issue 3926](https://github.com/spyder-ide/spyder/issues/3926) - File switcher doesn't leave focus in its last selected file when it looses focus
* [Issue 3823](https://github.com/spyder-ide/spyder/issues/3823) - sig_new_file error when converting notebook to script
* [Issue 3195](https://github.com/spyder-ide/spyder/issues/3195) - Test stand alone widgets in application
* [Issue 1855](https://github.com/spyder-ide/spyder/issues/1855) - can't run doctest - unexpected keyword argument 'nosigint'

In this release 19 issues were closed

**Pull requests**

* [PR 4389](https://github.com/spyder-ide/spyder/pull/4389) - PR: Update Spanish translation
* [PR 4387](https://github.com/spyder-ide/spyder/pull/4387) - PR: Update Japanese translation
* [PR 4375](https://github.com/spyder-ide/spyder/pull/4375) - PR: Update Russian translations
* [PR 4369](https://github.com/spyder-ide/spyder/pull/4369) - PR: Add encoding handling to stderr files in the IPython Console
* [PR 4361](https://github.com/spyder-ide/spyder/pull/4361) - PR: Fix some inline backend issues
* [PR 4353](https://github.com/spyder-ide/spyder/pull/4353) - PR: Test conversion of notebooks to Python files from the Project Explorer
* [PR 4345](https://github.com/spyder-ide/spyder/pull/4345) - PR: Simplify Appveyor installation
* [PR 4342](https://github.com/spyder-ide/spyder/pull/4342) - PR: Decrease test times by moving Qt4 tests to Travis
* [PR 4341](https://github.com/spyder-ide/spyder/pull/4341) - PR: Make jedi_patch.py to work with Jedi 0.10.x versions
* [PR 4321](https://github.com/spyder-ide/spyder/pull/4321) - PR: Add all tests to the distributed package
* [PR 4311](https://github.com/spyder-ide/spyder/pull/4311) - PR: More robust username query
* [PR 4293](https://github.com/spyder-ide/spyder/pull/4293) - PR: Skip and re-run some tests that fail too much
* [PR 4292](https://github.com/spyder-ide/spyder/pull/4292) - PR: Backport PR #4286
* [PR 4290](https://github.com/spyder-ide/spyder/pull/4290) - PR: Add support for other plugins in File Switcher
* [PR 4283](https://github.com/spyder-ide/spyder/pull/4283) - PR: Don't fail while running tests if coveralls fails for whatever reason
* [PR 4263](https://github.com/spyder-ide/spyder/pull/4263) - PR: Add Spyder PYTHONPATH to PluginClient
* [PR 4256](https://github.com/spyder-ide/spyder/pull/4256) - PR: Some test fixes
* [PR 4251](https://github.com/spyder-ide/spyder/pull/4251) - PR: Add pytest-xvfb to our test dependencies
* [PR 4249](https://github.com/spyder-ide/spyder/pull/4249) - PR: Run our tests with PyQt5 wheels on CircleCI
* [PR 4248](https://github.com/spyder-ide/spyder/pull/4248) - PR: Change how to add removal message for the Python console to not make it steal focus
* [PR 4247](https://github.com/spyder-ide/spyder/pull/4247) - PR: Added sigint argument to SpyderPdb constructor
* [PR 4246](https://github.com/spyder-ide/spyder/pull/4246) - PR: Make %matplotlib magic to really change backends
* [PR 4237](https://github.com/spyder-ide/spyder/pull/4237) - PR: Don't show internet conection errors on startup when trying to check for new releases
* [PR 4230](https://github.com/spyder-ide/spyder/pull/4230) - PR: Run tests for PyQt4 and Python 3.6 on CircleCI
* [PR 4226](https://github.com/spyder-ide/spyder/pull/4226) - PR: Generalice previous is_instance test to search other avoided patterns
* [PR 4224](https://github.com/spyder-ide/spyder/pull/4224) - PR: Add warning message about updating Spyder if installed with Anaconda
* [PR 4208](https://github.com/spyder-ide/spyder/pull/4208) - PR: Surround deprecated IPython quick_quide import by try/except block
* [PR 4199](https://github.com/spyder-ide/spyder/pull/4199) - PR: Move all tests to be pytest's
* [PR 4189](https://github.com/spyder-ide/spyder/pull/4189) - PR: Fixup MANIFEST.in to include the changelog
* [PR 4185](https://github.com/spyder-ide/spyder/pull/4185) - PR: Add testing requirements to setup.py
* [PR 4177](https://github.com/spyder-ide/spyder/pull/4177) - PR: Add a message informing the removal of the Python console
* [PR 4123](https://github.com/spyder-ide/spyder/pull/4123) - PR: Add AppStream metainfo file
* [PR 4121](https://github.com/spyder-ide/spyder/pull/4121) - PR: Monkey patch Jedi 0.10.0 for numpydoc
* [PR 4019](https://github.com/spyder-ide/spyder/pull/4019) - PR: Handle errors while debugging code when importing tqdm
* [PR 3984](https://github.com/spyder-ide/spyder/pull/3984) - PR: Correctly hide calltip when matching closing parenthesis
* [PR 3956](https://github.com/spyder-ide/spyder/pull/3956) - PR: Add missing signal to convert notebooks from the project explorer
* [PR 3952](https://github.com/spyder-ide/spyder/pull/3952) - PR: Make File Switcher leave focus on its last selected file when it loses focus

In this release 37 pull requests were merged


----


## Version 3.1.3 (2017-02-20)

### Bugs fixed
Expand Down
120 changes: 120 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
# Contributing to Spyder-IDE

:+1::tada: First off, thanks for taking the time to contribute to Spyder! :tada::+1:

## General Guidelines

This page documents at a very high level how to contribute to Spyder.
Please Check the
[Spyder IDE Contributor Documentation](https://github.com/spyder-ide/spyder/wiki/Contributing-to-Spyder)
for a more detailed guide on how to contribute to the Spyder.


## Setting Up a Development Environment


### Cloning the repo

```bash
$ git clone https://github.com/spyder-ide/spyder.git
```

### Creating a conda environment or virtualenv

If you use Anaconda you can create a conda environment with
these instructions

```bash
$ conda create -n spyder-dev python=3
$ source activate spyder-dev
```

You can also use `virtualenv` on Linux, but `conda` is preferred:

```bash
$ mkvirtualenv spyder-dev
$ workon spyder-dev
```

### Installing dependencies

After you have created your development environment, you need to install
Spyder necessary dependencies. For that you need to go to the directory
where your git clone is placed and run:

```bash
$ conda install --file requirements/requirements.txt
```

or using pip and virtualenv:

```bash
$ pip install -r requirements/requirements.txt
```

*Note*: If you are using pip, you also need to install a Qt binding
package. This can be achieved by running

```bash
$ pip install pyqt5
```

### Running Spyder

To start Spyder directly from your clone, i.e. without installing it to your
environment, you need to run

```bash
$ python bootstrap.py
```

**Important Note**: You need to restart Spyder after any change you do to its
source code. This is the only way to test your new code.

## Spyder Branches

When you start to work on a new pull request (PR), you need to be sure that your
feature branch is a child of the right Spyder branch, and also that you make
your PR on Github against it.

Besides, issues are marked with a milestone that indicates the correct branch
to use, like this:

* Use the `3.1.x` branch for bugfixes only (milestones `v3.1.1`, `v3.1.2`, `v3.1.3`,
etc)

* Use the `3.x` branch to introduce new features that don't require major internal
changes (milestones `v3.1`, `v3.2`, `v3.3`, etc).

* Use `master` to introduce new features that break compatibility with previous
Spyder versions (Milestone `v4.0beta1`, `v4.0beta2`, etc).


You can also submit bugfixes to `3.x` or `master` for errors that are only present in
those branches.

So to start working on a new PR, you need to follow these commands:

```bash
$ git checkout <branch>
$ git pull upstream <branch>
$ git checkout -b name-new-branch
```

## Running Tests

Install our test dependencies:

```bash
$ conda install --file requirements/test_requirements.txt -c spyder-ide
```

or using pip
```bash
$ pip install -r requirements/test_requirements.txt
```

To run Spyder test suite, please use:
```bash
$ python runtests.py
```
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
recursive-include spyder *.pot *.po *.svg *.png *.css *.qss
recursive-include spyder *.pot *.po *.svg *.png *.css *.qss *.c, *.cpp, *.html, *.java, *.md, *.R, *.csv, *.pyx, *.ipynb
recursive-include spyder_breakpoints *.pot *.po *.svg *.png
recursive-include spyder_profiler *.pot *.po *.svg *.png
recursive-include spyder_pylint *.pot *.po *.svg *.png
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,13 @@ a Python version greater than 2.7 (Python 3.2 is not supported anymore).
* **Cython**: Run Cython files in the IPython console.


## Contributing

Everyone is welcome to contribute. Please read our
[contributing instructions](https://github.com/spyder-ide/spyder/blob/master/CONTRIBUTING.md),
then get started!


## More information

* For code development please go to:
Expand Down
47 changes: 23 additions & 24 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
# https://ci.appveyor.com/project/ccordoba12/spyder
# https://ci.appveyor.com/project/spyder-ide/spyder

environment:
matrix:
- PYTHON: "C:\\Python27_64"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "64"
USE_QT_API: "PyQt5"

- PYTHON: "C:\\Python35_64"
PYTHON_VERSION: "3.5"
PYTHON_ARCH: "64"
USE_QT_API: "PyQt5"
global:
PYTHON: "C:\\conda"
MINICONDA_VERSION: "latest"
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\ci-helpers\\appveyor\\windows_sdk.cmd"
PYTHON_ARCH: "64"
PIP_DEPENDENCIES_FLAGS: "-q"
CONDA_DEPENDENCIES_FLAGS: "--quiet"
CONDA_DEPENDENCIES: >
rope pyflakes sphinx pygments pylint pycodestyle psutil nbconvert
qtawesome pickleshare qtpy pyzmq chardet mock pandas pytest
pytest-cov numpydoc scipy pillow qtconsole matplotlib
PIP_DEPENDENCIES: "pytest-qt flaky jedi"

#- PYTHON: "C:\\Python35_64"
# PYTHON_VERSION: "3.5"
# PYTHON_ARCH: "64"
# USE_QT_API: "PyQt4"
matrix:
- PYTHON_VERSION: "2.7"
- PYTHON_VERSION: "3.6"

#- PYTHON: "C:\\Python27_64"
# PYTHON_VERSION: "2.7"
# PYTHON_ARCH: "64"
# USE_QT_API: "PyQt4"
platform:
-x64

install:
# If there is a newer build queued for the same PR, cancel this one.
Expand All @@ -32,13 +32,12 @@ install:
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
throw "There are newer queued builds for this pull request, failing early." }
- powershell .\\continuous_integration\\appveyor\\install.ps1
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PYTHON%\\Library\\bin;%PATH%"
- "git clone git://github.com/astropy/ci-helpers.git"
- "powershell ci-helpers/appveyor/install-miniconda.ps1"
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "activate test"

build: false

test_script:
- "%CMD_IN_ENV% %APPVEYOR_BUILD_FOLDER%\\continuous_integration\\appveyor\\build_test.bat"
- "%CMD_IN_ENV% %APPVEYOR_BUILD_FOLDER%\\continuous_integration\\appveyor\\run_test.bat"
- "%CMD_IN_ENV% %APPVEYOR_BUILD_FOLDER%\\continuous_integration\\appveyor\\modules_test.bat"
- cd %APPVEYOR_BUILD_FOLDER% & python runtests.py
- "%CMD_IN_ENV% python runtests.py"
7 changes: 2 additions & 5 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
# See https://github.com/TestFX/TestFX/issues/158#issuecomment-62421691
- sudo apt-get install matchbox-window-manager
override:
- ./continuous_integration/circle/install.sh
- ./continuous_integration/install.sh
- DISPLAY=:99 /usr/bin/matchbox-window-manager:
background: true
- sleep 5
Expand All @@ -28,8 +28,5 @@ test:
#- export PATH="$HOME/miniconda/bin:$PATH" && source activate test && ciocheck spyder: # note the colon
# parallel: true
# PyQt5
- ./continuous_integration/circle/test-qt5.sh: # note the colon
parallel: true
# PyQt4
- ./continuous_integration/circle/test-qt4.sh: # note the colon
- ./continuous_integration/circle/test-qt5.sh || ./continuous_integration/circle/test-qt5.sh || ./continuous_integration/circle/test-qt5.sh: # note the colon
parallel: true
Loading

0 comments on commit c33a548

Please sign in to comment.