Skip to content

Commit 502fb78

Browse files
committed
Merge pull request #91 from twisted/91-dev-deps
Define optional development dependency in .[dev]
2 parents 805e4c5 + 9c62041 commit 502fb78

3 files changed

Lines changed: 21 additions & 7 deletions

File tree

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ language: python
33
python:
44
- "2.7"
55

6-
# Twisted is required for trial.
76
install:
8-
- pip install --upgrade twisted==13.2.0 pyflakes==0.8.1 .
7+
- pip install --upgrade -e '.[dev]'
98

109
script:
1110
- trial twistedchecker

README.rst

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,26 @@ standard <https://twistedmatrix.com/documents/current/core/development/policy/co
66

77
This was originally a project of Google Summer of Code 2012.
88

9-
Dependencies
10-
------------
9+
TwistedChecker's dependencies are recorded in setup.py.
1110

12-
TwistedChecker's dependencies are pylint (== 0.26.0) and a recent version of PEP8.
1311

14-
Tests
15-
-----
12+
Development
13+
-----------
1614

1715
.. image:: https://travis-ci.org/twisted/twistedchecker.svg?branch=master
1816
:target: https://travis-ci.org/twisted/twistedchecker
1917

18+
Get a development environment::
19+
20+
virtualenv build
21+
. build/bin/activate
22+
pip install -Ue '.[dev]'
23+
2024
To test twistedchecker, run the following in the source directory::
2125

2226
trial twistedchecker
27+
28+
Check pyflakes status ignoring functional tests
29+
(#68 some day we might use twistedchecker on itself)::
30+
31+
python check_pyflakes.py twistedchecker/

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,11 @@
4040
"logilab-common == 0.62.0",
4141
"pep8 == 1.5.7"
4242
],
43+
extras_require = {
44+
'dev': [
45+
'twisted>=15.0.0',
46+
'pyflakes==0.8.1',
47+
],
48+
},
4349
long_description=file('README.rst').read()
4450
)

0 commit comments

Comments
 (0)