Skip to content

Commit

Permalink
build updates, remove support for some python versions (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chad Smith authored Sep 21, 2019
1 parent c94add5 commit 21f2fe5
Show file tree
Hide file tree
Showing 18 changed files with 154 additions and 2,880 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ __pycache__
*egg*
__pycache__
*.dSYM
docs/_static
docs
.mypy_cache/
venv
venv
49 changes: 27 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
os:
- linux
cache:
pip: true
language: python
sudo: required # for gdb installation
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7-dev"
- "3.8-dev"
- "pypy"

sudo: required
matrix:
allow_failures:
- python: '3.7-dev'
- python: '3.8-dev'
include:
- python: '3.5'
env: NOXSESSION="tests-3.5"
- python: '3.6'
env: NOXSESSION="tests-3.6"
- python: '3.7'
env: NOXSESSION="tests-3.7"
dist: xenial
- python: '3.8-dev'
env: NOXSESSION="tests-3.8"
dist: xenial

before_install:
- sudo apt-get install gdb
- python: '3.7'
env: NOXSESSION="lint"
dist: xenial
- python: '3.7'
env: NOXSESSION="docs"
dist: xenial

install:
- 'pip install -e .[dev]'
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install gdb; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install homebrew/dupes/gdb; fi
- pip install nox

script:
- make test

cache:
directories:
# avoid using PyPI's bandwidth when pip packages are already cached
- $HOME/.cache/pip
- nox --non-interactive --session "$NOXSESSION"
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# pygdbmi release history

## dev
* Drop support for 2.7, 3.4
* Add support for 3.7, 3.8
* Do not log in StringStream (#36)

## 0.9.0.0
* Stop buffering output
* Use logger in GdbController; modify `verbose` arguments.
Expand Down
12 changes: 9 additions & 3 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
include
*.md
LICENSE
include *.md
include LICENSE

exclude example.py
exclude .flake8
exclude noxfile.py

prune tests
prune docs
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ pygdbmi - Get Structured Output from GDB's Machine Interface
<img src="https://img.shields.io/badge/pypi-v0.9.0.2-blue.svg"/>
</a>

<img src="https://img.shields.io/badge/python-2.7,3.4,3.5,3.6,pypy-blue.svg"/>
<a href="https://github.com/ambv/black"><img src="https://img.shields.io/badge/code%20style-black-000000.svg" alt="Code style: black" /></a>
</p>

**Documentation** https://cs01.github.io/pygdbmi

**Source Code** https://github.com/cs01/pygdbmi
Expand Down Expand Up @@ -159,11 +155,18 @@ The `type` is defined based on gdb's various [mi output record types](<(https://

Documentation fixes, bug fixes, performance improvements, and functional improvements are welcome. You may want to create an issue before beginning work to make sure I am interested in merging it to the master branch.

To develop, set up a new virtual environment, then clone this repo and run `pip install -e .[dev]`.
pygdbmi uses [nox](https://github.com/theacodes/nox) for automation.

Confirm unit tests are working with `make test`, then begin development.
See available tasks with
```
nox -l
```

Update unit tests as necessary at `pygdbmi/tests/test_app.py`.
Run tests and lint with
```
nox -s tests
nox -s lint
```

## Projects Using pygdbmi

Expand Down
Loading

0 comments on commit 21f2fe5

Please sign in to comment.