Remove deprecated use of 'setup.py test' (#1275)
Since setuptools v41.5.0 (27 Oct 2019), the 'test' command is formally deprecated and should not be used. Now use unittest as the test entry point.
This commit is contained in:
parent
4041c560ec
commit
1382eabb3f
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@ -29,7 +29,7 @@ assignees: ""
|
|||||||
- create a new virtualenv (make sure it's the same Python version);
|
- create a new virtualenv (make sure it's the same Python version);
|
||||||
- clone this repository;
|
- clone this repository;
|
||||||
- run `pip install -e .`;
|
- run `pip install -e .`;
|
||||||
- make sure it's sane by running `python setup.py test`; and
|
- make sure it's sane by running `python -m unittest`; and
|
||||||
- run `black` like you did last time.
|
- run `black` like you did last time.
|
||||||
|
|
||||||
**Additional context** Add any other context about the problem here.
|
**Additional context** Add any other context about the problem here.
|
||||||
|
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -27,4 +27,4 @@ jobs:
|
|||||||
|
|
||||||
- name: Unit tests
|
- name: Unit tests
|
||||||
run: |
|
run: |
|
||||||
coverage run tests/test_black.py
|
coverage run -m unittest
|
||||||
|
@ -4,7 +4,7 @@ cache:
|
|||||||
directories:
|
directories:
|
||||||
- $HOME/.cache/pre-commit
|
- $HOME/.cache/pre-commit
|
||||||
env:
|
env:
|
||||||
- TEST_CMD="coverage run tests/test_black.py"
|
- TEST_CMD="coverage run -m unittest"
|
||||||
install:
|
install:
|
||||||
- pip install coverage coveralls pre-commit
|
- pip install coverage coveralls pre-commit
|
||||||
- pip install -e '.[d]'
|
- pip install -e '.[d]'
|
||||||
|
@ -37,7 +37,7 @@ from the cloned _Black_ repo. It will do the correct thing.
|
|||||||
Before submitting pull requests, run tests with:
|
Before submitting pull requests, run tests with:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ python setup.py test
|
$ python -m unittest
|
||||||
```
|
```
|
||||||
|
|
||||||
## Hygiene
|
## Hygiene
|
||||||
|
1
setup.py
1
setup.py
@ -78,7 +78,6 @@ def get_long_description() -> str:
|
|||||||
"mypy_extensions>=0.4.3",
|
"mypy_extensions>=0.4.3",
|
||||||
],
|
],
|
||||||
extras_require={"d": ["aiohttp>=3.3.2", "aiohttp-cors"]},
|
extras_require={"d": ["aiohttp>=3.3.2", "aiohttp-cors"]},
|
||||||
test_suite="tests.test_black",
|
|
||||||
classifiers=[
|
classifiers=[
|
||||||
"Development Status :: 4 - Beta",
|
"Development Status :: 4 - Beta",
|
||||||
"Environment :: Console",
|
"Environment :: Console",
|
||||||
|
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
Loading…
Reference in New Issue
Block a user