Skip to content

Commit

Permalink
Merge pull request #27 from migonzalvar/chore-improve-tools
Browse files Browse the repository at this point in the history
Improve development/testing tools
  • Loading branch information
migonzalvar authored Jun 8, 2024
2 parents 7f6d7b7 + 86ae9a3 commit 8242bd8
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 17 deletions.
6 changes: 6 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# SPDX-FileCopyrightText: 2013-2022 Miguel Gonzalez <migonzalvar@gmail.com>
#
# SPDX-License-Identifier: CC0-1.0

[flake8]
extend-exclude = .venv/
2 changes: 1 addition & 1 deletion .github/workflows/reuse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v1
uses: fsfe/reuse-action@v3
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# SPDX-FileCopyrightText: 2013-2022 Miguel Gonzalez <migonzalvar@gmail.com>
#
# SPDX-License-Identifier: CC0-1.0

repos:
- repo: https://github.com/fsfe/reuse-tool
rev: v3.1.0a1
hooks:
- id: reuse
8 changes: 0 additions & 8 deletions .reuse/dep5

This file was deleted.

18 changes: 10 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
#
# SPDX-License-Identifier: CC0-1.0

PYTHON := .venv/bin/python

default: test

install:
python -m venv .venv
.venv/bin/python -m pip install --upgrade pip setuptools wheel
.venv/bin/python -m pip install docutils pygments
.venv/bin/python -m pip install build twine check-wheel-contents
${PYTHON} -m pip install --upgrade pip setuptools wheel
${PYTHON} -m pip install docutils pygments
${PYTHON} -m pip install build twine check-wheel-contents

release: clean test build
@echo Check:
Expand All @@ -22,13 +24,13 @@ release: clean test build
@echo '[ ] Upload to PyPI (twine upload dist/*).'

test: install
.venv/bin/python test_dj_email_url.py
.venv/bin/rst2html.py README.rst --halt=info >/dev/null
.venv/bin/rst2html.py CHANGELOG.rst --halt=info >/dev/null
${PYTHON} test_dj_email_url.py
${PYTHON} -m docutils README.rst --halt=info >/dev/null
${PYTHON} -m docutils CHANGELOG.rst --halt=info >/dev/null

build: install
.venv/bin/python -m build --sdist --wheel .
.venv/bin/check-wheel-contents dist/*.whl
${PYTHON} -m build --sdist --wheel .
${PYTHON} -m check_wheel_contents dist/*.whl

clean:
rm -f README.rst.html
Expand Down
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2013-2022 Miguel Gonzalez <migonzalvar@gmail.com>
#
# SPDX-License-Identifier: CC0-1.0

[bumpversion]
current_version = 1.0.6
commit = True
Expand Down

0 comments on commit 8242bd8

Please sign in to comment.