Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install Dependencies
run: ./configure --dev
run: make dev

- name: Check documentation and HTML for errors and dead links
run: make docs-check
Expand Down
25 changes: 0 additions & 25 deletions MANIFEST.in

This file was deleted.

45 changes: 28 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,26 +1,34 @@
# SPDX-License-Identifier: Apache-2.0
#
# Copyright (c) nexB Inc. and others. All rights reserved.
# ScanCode is a trademark of nexB Inc.
# SPDX-License-Identifier: Apache-2.0
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
# See https://github.com/aboutcode-org/skeleton for support or download.
# See https://aboutcode.org for more information about nexB OSS projects.
#
# Copyright (c) nexB Inc. and contributors
# See https://github.com/aboutcode-org/aboutcode.federated/ for support and sources

# Python version can be specified with `$ PYTHON_EXE=python3.x make conf`
PYTHON_EXE?=python3
VENV=venv
ACTIVATE?=. ${VENV}/bin/activate;

virtualenv:
@echo "-> Bootstrap the virtualenv with PYTHON_EXE=${PYTHON_EXE}"
@${PYTHON_EXE} -m venv ${VENV}
@${ACTIVATE} pip install --upgrade pip

conf:
conf: virtualenv
@echo "-> Install dependencies"
./configure
@${ACTIVATE} pip install --editable .

dev:
dev: virtualenv
@echo "-> Configure and install development dependencies"
./configure --dev
@${ACTIVATE} pip install --editable .[dev]

build: test
@echo "-> Building sdist and wheel"
rm -rf build/ dist/
${VENV}/bin/flot --pyproject pyproject.toml --sdist --wheel

publish: build
@echo "-> Publish built sdist and wheel to PyPi"
${VENV}/bin/twine upload dist/*

doc8:
@echo "-> Run doc8 validation"
Expand All @@ -38,16 +46,19 @@ check:
@echo "-> Run Ruff format validation"
@${ACTIVATE} ruff format --check
@$(MAKE) doc8
@echo "-> Run ABOUT files validation"
@${ACTIVATE} about check etc/

clean:
@echo "-> Clean the Python env"
./configure --clean
rm -rf ${VENV} build/ dist/ docs/_build/ pip-selfcheck.json .tox .pytest_cache/ .coverage
find . -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete

test:
test: check
@echo "-> Run the test suite"
${VENV}/bin/pytest -vvs
${ACTIVATE} ${PYTHON_EXE} -m pytest -vvs

bump:
@echo "-> Bump the version"
venv/bin/bump-my-version bump patch

docs:
rm -rf docs/_build/
Expand All @@ -57,4 +68,4 @@ docs-check:
@${ACTIVATE} sphinx-build -E -W -b html docs/source docs/_build/
@${ACTIVATE} sphinx-build -E -W -b linkcheck docs/source docs/_build/

.PHONY: conf dev check valid clean test docs docs-check
.PHONY: virtualenv conf dev build publish doc8 valid check clean test bump docs docs-check
File renamed without changes.
201 changes: 0 additions & 201 deletions configure

This file was deleted.

Loading