Skip to content

Commit

Permalink
Workspace updates
Browse files Browse the repository at this point in the history
  • Loading branch information
konstantint committed Dec 23, 2018
1 parent 31311c4 commit b4d26dc
Show file tree
Hide file tree
Showing 8 changed files with 566 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
*.pyc
/.cache
/_docs
/venv*
/venv*
/_tmp
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: python
python:
- "3.5"
- "3.6"
- "3.7"
# Two lines below needed for testing Py3.7: https://github.com/travis-ci/travis-ci/issues/9069#issuecomment-425720905
sudo: required
dist: xenial
install: pip install .[test]
script: pytest
2 changes: 2 additions & 0 deletions .vscode/pypi-upload.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
del /Q dist\*.tar.gz
python setup.py sdist && twine upload dist\*.tar.gz
23 changes: 23 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"files.exclude": {
"**/.git": true, // this is a default value
"**/.DS_Store": true, // this is a default value
"build": true,
"dist": true,
"*.egg-info": true,
"venv*": true,
".cache": true,
"**/__pycache__": true,
"Untitled.ipynb": true,
".ipynb_checkpoints": true,
".pytest_cache": true,
"**/*.pyc": true
},
"python.pythonPath": "${workspaceFolder}\\venv3\\Scripts\\python.exe",
"python.unitTest.pyTestEnabled": true,
"python.linting.pylintEnabled": true,
"python.linting.enabled": true,
"python.linting.pylintUseMinimalCheckers": false,
"python.linting.pylintPath": "${workspaceFolder}\\venv3\\Scripts\\pylint.exe",
// https://github.com/Microsoft/vscode-python/issues/435
}
63 changes: 63 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"type": "shell",
"isBackground": true,
"options": {
"env": {"PATH": "./venv3/Scripts"}
},
"presentation": {
"panel": "dedicated"
},
"tasks": [
{
"label": "jupyter",
"type": "shell",
"command": "jupyter notebook",
"problemMatcher": []
},
{
"label": "shell",
"type": "shell",
"problemMatcher": [],
"command": "ipython",
"presentation": {
"reveal": "always",
"panel": "new",
"focus": true
}
},
{
"label": "py.test: all tests",
"command": "py.test",
"problemMatcher": [],
"presentation": {
"reveal": "always",
"panel": "dedicated"
},
"group": "test"
},
{
"label": "py.test: current file",
"command": "py.test",
"args": [
"${file}"
],
"problemMatcher": [],
"presentation": {
"reveal": "always",
"panel": "dedicated"
},
"group": {
"kind": "test",
"isDefault": true
}
},
{
"label": "Upload to PyPI",
"command": ".\\.vscode\\pypi-upload.cmd",
"problemMatcher": []
}
]
}
8 changes: 2 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,9 @@ Development

If you plan to develop or debug the package, consider installing it by running::

$ python setup.py develop

from within the source distribution. The package contains a basic set of smoke tests. To run those you should first make sure you have
`pytest` installed::

$ pip install pytest
$ pip install -e .[dev]

This will install the package in "editable" mode and add a couple of useful extras (such as `pytest`).
You can then run the tests by typing::

$ py.test
Expand Down
Loading

0 comments on commit b4d26dc

Please sign in to comment.