Skip to content

Commit

Permalink
Update extra_require groups (#100)
Browse files Browse the repository at this point in the history
* Update workflow file

* Update setup.cfg dependency groups

* Update readme
  • Loading branch information
10sr authored Nov 7, 2024
1 parent 276025f commit bc65241
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 22 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,7 @@ jobs:
python-version: ${{ env.python_version_publish }}
- name: Install denendencies
run: |
set -eux
if ! twine --version
then
make publish-installdeps
fi
twine --version
pip install .[publish] && twine --version
- name: Publish to testpypi
run: make publish publish_repository=testpypi
env:
Expand Down Expand Up @@ -85,13 +80,9 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install denendencies
run: |
set -eux
pip install . coverage codecov
pip install .[test]
- name: Run test
run: |
set -eux
python --version
flake8 --version
make test
- name: Run codecov
uses: codecov/codecov-action@v4
Expand All @@ -116,7 +107,6 @@ jobs:
python-version: ${{ env.python_version_lint }}
- name: Install denendencies
run: |
set -eux
pip install .[dev]
pip install .[lint]
- name: Run linter
run: make lint
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,3 @@ wheel:
publish_repository ?= testpypi # Set to pypi to publish as production
publish: sdist wheel
twine upload --skip-existing --verbose --repository $(publish_repository) dist/*

# Do not add to devdependencies because different platforms install
# different packages
publish-installdeps:
pip install twine wheel setuptools
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Development

Use tools like Pipenv:

pipenv run python -m pip install -e .[dev]
pipenv run python -m pip install -e .[dev,lint]
pipenv run make check


Expand Down
11 changes: 8 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ exclude =
tests

[options.extras_require]
dev =
test =
coverage
codecov
lint =
black
isort
flake8
Expand All @@ -70,8 +73,10 @@ dev =
flake8-rst-docstrings
darglint
mypy
coverage
codecov
publish =
twine
wheel
setuptools


[coverage:run]
Expand Down

0 comments on commit bc65241

Please sign in to comment.