Skip to content

Commit

Permalink
Merge branch 'walles/tox' into python
Browse files Browse the repository at this point in the history
  • Loading branch information
walles committed Apr 1, 2020
2 parents ade2a81 + e14b112 commit b19f99b
Show file tree
Hide file tree
Showing 14 changed files with 180 additions and 321 deletions.
15 changes: 8 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
/env/
/build/
/dist/
/dist2/
/dist3/
/.tox/
/.eggs/
/.vscode/
/.coverage
/.mypy_cache/
/.pytest_cache/
/.pytest-avoidance/

# See: https://packaging.python.org/distributing/#uploading-your-project-to-pypi
/.pypirc

/.*-env/

*.egg-info
*.pyc
__pycache__/

# See: https://packaging.python.org/distributing/#uploading-your-project-to-pypi
/.pypirc

# Auto generated by setup.py
/px/version.py

px.pex
# tox.sh end result
/px.pex

# For regenerating the animated-gif ptop screenshot
/node_modules/
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ before_install:
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install python3.5 python3.5-dev --force-yes -y ; fi

- sudo -H pip2 install coveralls coverage
- sudo -H pip2 install coveralls coverage tox

script: ./ci.sh
script: tox

after_success:
- coveralls
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,15 @@ information; the command will work without it but might miss some information.

Development
===========
Note that before editing any code, you need to run ``ci.sh`` first to create
Note that before editing any code, you need to run ``tox.sh`` once to create
the ``px/version.py`` file.

Note that the build infrastructure here is designed to create a ``px.pex`` file
that works on both Python 2 and Python 3, and on "all" machines with Python
interpreters (tested on Linux and OS X).

* Clone: ``git clone git@github.com:walles/px.git ; cd px``
* Build and test: ``./ci.sh``
* Build and test: ``./tox.sh``
* Run: ``./px.pex``
* To add dependencies, edit ``requirements.txt``

Expand Down
132 changes: 0 additions & 132 deletions ci.sh

This file was deleted.

2 changes: 1 addition & 1 deletion px/px.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def _main(argv):
return

if arg == '--version':
# If this fails, run "ci.sh" once and the "version.py" file will be created for you.
# If this fails, run "tox.sh" once and the "version.py" file will be created for you.
#
# NOTE: If we "import version" at the top of this file, we will depend on it even if
# we don't use it. And this will make test avoidance fail to avoid px.py tests every
Expand Down
1 change: 1 addition & 0 deletions px/px_commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ def get_python_command(commandline):
'-t', '-tt',
'-u',
'-v',
'-Werror',
'-x',
'-3'
]
Expand Down
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ cd "$(dirname "$0")"
find . -name 'px*.whl' -delete

# Build the release
./ci.sh
tox

# Make a relelase virtualenv
ENVDIR="$(mktemp -d)"
Expand Down
1 change: 0 additions & 1 deletion requirements-dev-py3.txt

This file was deleted.

15 changes: 0 additions & 15 deletions requirements-dev.txt

This file was deleted.

6 changes: 1 addition & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
# These are runtime dependencies, we want them weak to improve
# co-existence with other packages if installed globally using
# pip.
#
# Fox exact versions that we like, check requirements-dev.txt.
#
# If making changes here make sure they don't clash!

# We're only using text_type from six, any version works
# We're six simpletons, any version works
six

# 2.6.1 is what we started out using, older is probably fine
Expand Down
126 changes: 0 additions & 126 deletions scripts/parallelize.py

This file was deleted.

0 comments on commit b19f99b

Please sign in to comment.