Skip to content

Commit

Permalink
Merge pull request #108 from kmike/pipenv
Browse files Browse the repository at this point in the history
Migrate development dependency management to pipenv
  • Loading branch information
fizyk committed Dec 14, 2022
2 parents 8752132 + 5861a78 commit 5ed6287
Show file tree
Hide file tree
Showing 24 changed files with 258 additions and 37 deletions.
4 changes: 2 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[run]
omit =
src/port_for/_download_ranges.py
src/port_for/docopt.py
port_for/_download_ranges.py
port_for/docopt.py
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ on:

jobs:
build:
uses: fizyk/actions-reuse/.github/workflows/pypi.yml@v1.3.1
uses: fizyk/actions-reuse/.github/workflows/pypi.yml@v1.6.3
3 changes: 2 additions & 1 deletion .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
branches: [ master ]
jobs:
lint:
uses: fizyk/actions-reuse/.github/workflows/linters-python.yml@main
uses: fizyk/actions-reuse/.github/workflows/linters-python.yml@v1.6.3
with:
pipenv: true
mypy: true
4 changes: 2 additions & 2 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Run test commands

on:
pull_request:
branches: [ main ]
branches: [ master ]

jobs:
# bump:
Expand All @@ -23,5 +23,5 @@ jobs:
with:
python-version: "3.11"
pipenv-install-options: "--skip-lock"
command: towncrier check --compare-with origin/main
command: towncrier check --compare-with origin/master
fetch-depth: 0
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- v*
jobs:
build:
uses: fizyk/actions-reuse/.github/workflows/pypi.yml@v1.3.1
uses: fizyk/actions-reuse/.github/workflows/pypi.yml@v1.6.3
with:
publish: true
secrets:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/tests-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ on:

jobs:
tests:
uses: fizyk/actions-reuse/.github/workflows/tests-pytests.yml@v1.3.1
uses: fizyk/actions-reuse/.github/workflows/tests-pytests.yml@v1.6.3
with:
python-versions: '["3.7", "3.8", "3.9", "3.10", "pypy-3.8"]'
cover_package: src/port_for
os: macos-latest
pipenv: true
pipenv-install-options: --skip-lock
5 changes: 3 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ on:

jobs:
tests:
uses: fizyk/actions-reuse/.github/workflows/tests-pytests.yml@v1.3.1
uses: fizyk/actions-reuse/.github/workflows/tests-pytests.yml@v1.6.3
with:
python-versions: '["3.7", "3.8", "3.9", "3.10", "pypy-3.8"]'
cover_package: src/port_for
pipenv: true
pipenv-install-options: --skip-lock
10 changes: 7 additions & 3 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ name = "pypi"

[dev-packages]
towncrier = "==22.8"

[requires]
python_version = "3.9"
pytest = "==7.2.0"
pytest-cov = "==4.0.0"
coverage = "==6.5.0"
black = "==22.10.0"
pydocstyle = {version = "==6.1.1", extras = ["toml"]}
pycodestyle = "==2.9.1"
mypy = "==0.991"
236 changes: 232 additions & 4 deletions Pipfile.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions newsfragments/108.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Moved development dependencies to be managed by pipenv.
All development process can be managed with it - which means automatic isolation.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 0 additions & 7 deletions requirements-lint.txt

This file was deleted.

5 changes: 0 additions & 5 deletions requirements-test.txt

This file was deleted.

9 changes: 2 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,10 @@ classifiers =
zip_safe = False
include_package_data = True
python_requires = >= 3.7
packages = find:
package_dir =
=src
packages = port_for
scripts =
scripts/port-for

[options.packages.find]
where = src

[options.extras_require]
tests =
pytest
Expand All @@ -58,7 +53,7 @@ ignore = D203,D212
match = '(?!docs|build|venv).*\.py'

[tool:pytest]
addopts = -vvv --capture=no --showlocals --cov src/port_for --cov tests --ignore src/port_for/_download_ranges.py
addopts = -vvv --capture=no --showlocals
testpaths = tests/
filterwarnings = error
xfail_strict = True
1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Test's module."""

0 comments on commit 5ed6287

Please sign in to comment.