Commit Graph

32 Commits

Author SHA1 Message Date
Mickaël Schoentgen
9857693ebf
Use a more modern approach to run tests (#1089)
Running tests through `python setup.py test` is deprecated:

> WARNING: Testing via this command is deprecated and will be removed
> in a future version. Users looking for a generic test entry point
> independent of test runner are encouraged to use tox.

I am not in favor of moving back to `tox`, we should simply run tests
using `python -m pytest` (or `make test`) and that's it.

A new extra was added, `dev`, to install development requirements:

    $ python -m pip install --upgrade --editable '.[dev]'
2021-06-11 20:55:26 +02:00
Mickaël Schoentgen
350f973f70
Switch from pycodestyle to flake8 for code style checks (#1083) 2021-06-02 11:06:46 +02:00
Mickaël Schoentgen
7cbdf2c608
Prefer usage of pytest rather than py.test (#1058)
`py.test` was chosen over `pytest` but it is not planned for removal yet [1].
Anyway, it is a good thing to ensure we are using the correct Python version
with the right `pytest` installed, so using `python -m pytest` is recommended.

[1] https://github.com/pytest-dev/pytest/issues/1629
2021-05-03 18:40:25 +02:00
Jakub Roztocil
173e622567 Update upload command 2021-02-06 11:17:14 +01:00
Jakub Roztocil
1573058811 v2.3.0 2020-10-25 21:12:38 +01:00
Shageldi Ovezov
cf937b6b79
Remove tox (#944)
* Removed the instructions of tox testing

* Deleted tox.ini

* removed tox from requirements

* removed tox from setup.cfg

* removed tox from the Makefile

* removed tox from contributing docs

* updated the CHANGELOG

* removed tox from .gitignore
2020-06-26 17:22:06 +02:00
Jakub Roztocil
14677bd25d Cleanup inline to-dos
I.
2020-06-25 11:36:09 +02:00
Jakub Roztocil
364edc4bd8 Ignore codecov upload failures 2020-01-12 10:57:14 +01:00
Jakub Roztocil
4b524e6a8c v2.0.0 2020-01-12 10:50:57 +01:00
Jakub Roztocil
e4a3ce8b9d Cleanup 2019-12-04 23:31:47 +01:00
Jakub Roztocil
348cc7d5c5 Fixes 2019-12-04 18:48:39 +01:00
Jakub Roztocil
ab3ea24630 Fixes 2019-12-04 18:34:26 +01:00
Jakub Roztocil
cd5116705c Set path in makefile 2019-12-04 18:24:53 +01:00
Jakub Roztocil
38bc578744 Fix tests 2019-12-04 18:09:51 +01:00
Jakub Roztocil
1bc54d4cb4 Create Python virtual environment (via venv) for tests & development, etc. 2019-12-04 17:49:07 +01:00
Jakub Roztocil
f031b8cc8b Make codecov fail loudly 2019-09-18 11:17:33 +02:00
Jakub Roztocil
85da430d16 codecov 2019-09-18 11:09:46 +02:00
Jakub Roztocil
2ffd8d9d9b workflow 2019-09-10 13:10:29 +02:00
Jakub Roztocil
747be30d2e 1.0.3 2019-08-26 12:42:34 +02:00
Jakub Roztocil
69d010a11b Brew cleanup 2019-02-03 15:08:29 +01:00
Jakub Roztocil
42ff243400 Add make brew-test 2019-02-03 14:58:23 +01:00
Jakub Roztocil
d1407baf76 Add make pdf 2018-11-14 13:06:10 +01:00
Jakub Roztocil
7917f1b40c Build fixes and clean-up
* reflect Python 3.7 release
* fix `pycodestyle` errors
* update `pycodestyle` config
* move `pytest` and `pycodestyle` config to `setup.cfg`
* add `make pycodestyle`
* add `make coveralls`
* etc.
2018-07-12 21:16:16 +02:00
Jakub Roztocil
8a9206eceb Fixed Makefile 2016-08-13 22:57:44 +02:00
Jakub Roztocil
487c7a9221 v0.9.5 2016-08-13 22:51:42 +02:00
Jakub Roztocil
01ca7f0eb2 Ignore redirected stdout with --output, -o
This makes it easier to use HTTPie in cron jobs and scripts.

Closes #259
2016-03-01 20:24:50 +08:00
Jakub Roztocil
3b217daddc Travis 2016-02-29 16:43:18 +08:00
Jakub Roztocil
c6690e0182 Makefile improvements 2016-01-02 14:33:48 -03:00
Jakub Roztocil
c82c9f0ae4 Makefile improvements 2016-01-02 14:28:46 -03:00
Jakub Roztocil
84b81c00ea Fixed tox.ini and improved tests and CONTRIBUTING.txt 2016-01-02 14:07:00 -03:00
Jakub Roztocil
6aa711c69f Removed pytest-xdist
The test suite is much less IO-bound now with the local httpbin
instance (via pytest-httpbin). Therefore, paralelization is not
as helpful.
2014-09-08 07:44:25 +02:00
Jakub Roztocil
5a989b6075 Fixed Makefile, added setup.cfg. 2014-04-28 13:27:02 +02:00