Skip to content

Commit fec5a2f

Browse files
committed
Merge pull request #64 from jtpereyda/tox-optimize-sudo
Moved sudo from .travis.yml to inside tox.ini
2 parents 4369fbf + 8868392 commit fec5a2f

File tree

4 files changed

+23
-19
lines changed

4 files changed

+23
-19
lines changed

.travis.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,7 @@ before_install: sudo sed -i -e 's/^Defaults\tsecure_path.*$//' /etc/sudoers
77
install: pip install tox
88

99
script:
10-
- sudo tox
11-
12-
before_deploy:
13-
- # If the script step uses sudo, the build artifacts will be owned by root.
14-
- # `chown` to the build user to support the deploy step.
15-
- sudo chown -R $USER:$USER *
10+
- tox
1611

1712
deploy:
1813
provider: pypi

CHANGELOG.rst

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
=====
33
- Fixed deployment from 0.0.2.
44
- Simplify CONTRIBUTING.rst for automated deployment.
5+
- tox no longer runs entirely as sudo. The sudo has been moved into tox.ini and is more fine-grained.
56

67
0.0.2
78
=====
@@ -11,7 +12,7 @@ Development
1112
-----------
1213
- Added build and PyPI badges.
1314
- Added CONTRIBUTING.rst.
14-
- `check-manifest` now runs in automated build.
15+
- check-manifest now runs in automated build.
1516
- Travis now deploys to PyPI!
1617

1718
0.0.1-dev5
@@ -25,7 +26,7 @@ Development
2526
==========
2627

2728
Fixes
28-
~~~~~
29+
-----
2930
- Missing property setters in ``boofuzz.request.Request`` now implemented.
3031
- Unit tests now pass on Windows.
3132
- Fixed wheel build issue; boofuzz subpackages were missing.
@@ -34,13 +35,13 @@ Fixes
3435
==========
3536

3637
Fixes
37-
~~~~~
38+
-----
3839
- Session constructor param ``session_filename`` is now optional.
3940

4041
0.0.1-dev2
4142
==========
4243
New features
43-
~~~~~~~~~~~~
44+
------------
4445

4546
- Now on PyPI! ``pip install boofuzz``
4647
- API is now centralized so all classes are available at top level
@@ -53,14 +54,14 @@ New features
5354
ezOutlet EZ-11b.
5455

5556
Backwards-incompatible
56-
~~~~~~~~~~~~~~~~~~~~~~
57+
----------------------
5758

5859
- Target now only takes an ``ITargetConnection``. This separates
5960
responsibilities and makes our code more flexible with different
6061
kinds of connections.
6162

6263
Fixes
63-
~~~~~
64+
-----
6465

6566
- Bugs fixed:
6667

@@ -75,7 +76,7 @@ Fixes
7576
properly.
7677

7778
Back-end Improvements
78-
~~~~~~~~~~~~~~~~~~~~~
79+
---------------------
7980

8081
This section took the most work. It has the least visible impact, but
8182
all of the refactors enable new features, fixes, and unit tests.
@@ -92,7 +93,7 @@ all of the refactors enable new features, fixes, and unit tests.
9293
- Many Unit tests added.
9394

9495
Other
95-
~~~~~
96+
-----
9697

9798
- Continuous integration with Travis is running!
9899
- Doc organization improvements.

boofuzz/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from .sex import SullyRuntimeError, SizerNotUtilizedError, MustImplementException
2929
from .socket_connection import SocketConnection
3030

31-
__version__ = '0.0.3.dev13'
31+
__version__ = '0.0.3.dev14'
3232

3333

3434
# REQUEST MANAGEMENT

tox.ini

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
[tox]
2-
envlist = py27
2+
envlist = py27-{unix,windows}
33

44
[testenv]
5+
whitelist_externals=sudo
6+
platform=
7+
windows: win32
8+
unix: linux2|darwin
59
# This list is duplicated in setup.py extras_require. Make sure to change both!
610
# This can stop once tox supports installing package extras.
7-
deps=pytest
11+
deps =
12+
pytest
813
pytest-bdd
914
mock
1015
check-manifest
11-
commands=python -m pytest
16+
install_command =
17+
python -m pip install {opts} {packages}
18+
commands =
19+
windows: python -m pytest
20+
unix: sudo {envpython} -m pytest
1221
python -m check_manifest
13-
install_command = python -m pip install {opts} {packages}

0 commit comments

Comments
 (0)