diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..7163913 --- /dev/null +++ b/.flake8 @@ -0,0 +1,6 @@ +# SPDX-FileCopyrightText: 2013-2022 Miguel Gonzalez +# +# SPDX-License-Identifier: CC0-1.0 + +[flake8] +extend-exclude = .venv/ diff --git a/.github/workflows/reuse.yml b/.github/workflows/reuse.yml index 0f7dd71..32ef282 100644 --- a/.github/workflows/reuse.yml +++ b/.github/workflows/reuse.yml @@ -12,4 +12,4 @@ jobs: steps: - uses: actions/checkout@v3 - name: REUSE Compliance Check - uses: fsfe/reuse-action@v1 + uses: fsfe/reuse-action@v3 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..684e74f --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,9 @@ +# SPDX-FileCopyrightText: 2013-2022 Miguel Gonzalez +# +# SPDX-License-Identifier: CC0-1.0 + +repos: + - repo: https://github.com/fsfe/reuse-tool + rev: v3.1.0a1 + hooks: + - id: reuse diff --git a/.reuse/dep5 b/.reuse/dep5 deleted file mode 100644 index 316d645..0000000 --- a/.reuse/dep5 +++ /dev/null @@ -1,8 +0,0 @@ -Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: dj-email-url -Upstream-Contact: Miguel Gonzalez -Source: https://github.com/migonzalvar/dj-email-url - -Files: setup.cfg -Copyright: 2013-2022 Miguel Gonzalez -License: BSD-2-Clause diff --git a/Makefile b/Makefile index e48a1fa..41fb87c 100644 --- a/Makefile +++ b/Makefile @@ -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: @@ -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 diff --git a/setup.cfg b/setup.cfg index 5f77946..4d0031d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2013-2022 Miguel Gonzalez +# +# SPDX-License-Identifier: CC0-1.0 + [bumpversion] current_version = 1.0.6 commit = True