File tree Expand file tree Collapse file tree 8 files changed +65
-38
lines changed Expand file tree Collapse file tree 8 files changed +65
-38
lines changed Original file line number Diff line number Diff line change 1515 with :
1616 python-version : ' 3.x'
1717 cache : pip
18- cache-dependency-path : requirements/dev.txt
18+ - name : Install tox
19+ run : pip install tox
1920 - name : Lint
20- run : make lint
21+ run : tox -e lint
2122 - name : Test
22- run : make test
23+ run : tox
Original file line number Diff line number Diff line change @@ -18,12 +18,14 @@ jobs:
1818 python-version : ' 3.x'
1919 cache : pip
2020 cache-dependency-path : .github/workflows/release.yml
21+ - name : Install project
22+ run : pip install .[dev]
2123 - name : Lint
22- run : make lint
24+ run : tox -e lint
2325 - name : Test
24- run : make test
26+ run : tox
2527 - name : Install build dependencies
26- run : pip install -U setuptools wheel build calver
28+ run : pip install -U setuptools wheel build
2729 - name : Build
2830 run : python -m build .
2931 - name : Publish
Original file line number Diff line number Diff line change 22build /
33dist /
44* .egg-info /
5+ .tox /
6+ .venv /
7+ .env /
8+ env /
9+ venv /
10+ .idea /
11+ .vscode /
Original file line number Diff line number Diff line change 11# Contributing
2- How to contributing to this package.
2+ How to contribute to this package.
33
44## Running tests
55Run ` make test ` . This checks whether the auto-generated list of classifiers
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ dynamic = ["version"]
2020[project .urls ]
2121Homepage = " https://github.com/pypa/trove-classifiers"
2222
23+ [project .optional-dependencies ]
24+ dev = [
25+ " tox >= 4.0"
26+ ]
27+
2328[tool .setuptools ]
2429package-dir = {"" = " src" }
2530include-package-data = false
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ [tox]
2+ envlist =
3+ py311
4+ py310
5+ py39
6+ py38
7+ py37
8+ lint
9+ reformat
10+
11+ isolated_build = true
12+ skip_missing_interpreters = true
13+ minversion = 4.0
14+
15+ [testenv]
16+ description = run the tests with pytest under {envname}
17+ passenv =
18+ PYTEST_*
19+ deps =
20+ pytest >= 7.1
21+ commands =
22+ pytest {posargs}
23+ python -m tests.lib
24+
25+ [testenv:lint]
26+ description = lint the code base
27+ skip_install = true
28+ deps =
29+ black >= 22.12.0
30+ mypy >= 0.991
31+ natsort >= 8.2
32+ commands =
33+ black --check bin src tests
34+ python bin/sort.py src/trove_classifiers/__init__.py
35+ mypy src
36+
37+ [testenv:reformat]
38+ description = format the code base
39+ skip_install = true
40+ deps =
41+ black >= 22.12.0
42+ commands =
43+ black tests src
You can’t perform that action at this time.
0 commit comments