generated from coulomb/repo-seed
pypi publication complicatoins
This commit is contained in:
31
Makefile
31
Makefile
@@ -37,6 +37,9 @@ help: ## Show issue core capability help
|
||||
@echo " test-integration Run integration tests only"
|
||||
@echo " test-cov Run tests with coverage report"
|
||||
@echo " test-verbose Run tests with verbose output"
|
||||
@echo " package Build source and wheel distributions"
|
||||
@echo " package-check Build and validate distributions"
|
||||
@echo " publish-gitea Publish distributions to Gitea PyPI"
|
||||
@echo ""
|
||||
@echo "Feedback & Continuous Improvement:"
|
||||
@echo " feedback MSG=\"...\" Submit feedback about issue-core"
|
||||
@@ -60,6 +63,10 @@ help: ## Show issue core capability help
|
||||
# Check if issue command is available
|
||||
ISSUE_CLI := $(shell command -v issue 2> /dev/null)
|
||||
|
||||
PYTHON ?= python3
|
||||
GITEA_PACKAGE_OWNER ?= coulomb
|
||||
GITEA_PYPI_REPOSITORY_URL ?= https://gitea.coulomb.social/api/packages/$(GITEA_PACKAGE_OWNER)/pypi
|
||||
|
||||
# Core Issue Operations
|
||||
.PHONY: issue-list
|
||||
issue-list: ## List all issues from configured backend
|
||||
@@ -209,6 +216,28 @@ test-cov: ## Run tests with coverage report (local development)
|
||||
test-verbose: ## Run tests with verbose output (local development)
|
||||
pytest tests/ -v
|
||||
|
||||
.PHONY: clean-dist
|
||||
clean-dist: ## Remove local Python package build artifacts
|
||||
rm -rf build/ dist/ *.egg-info/
|
||||
|
||||
.PHONY: package
|
||||
package: clean-dist ## Build source and wheel distributions
|
||||
$(PYTHON) -m build
|
||||
|
||||
.PHONY: package-check
|
||||
package-check: package ## Build and validate source/wheel distributions
|
||||
$(PYTHON) -m twine check dist/*
|
||||
|
||||
.PHONY: publish-gitea
|
||||
publish-gitea: package-check ## Publish distributions to the Coulomb Gitea PyPI registry
|
||||
ifndef TWINE_USERNAME
|
||||
$(error TWINE_USERNAME is required)
|
||||
endif
|
||||
ifndef TWINE_PASSWORD
|
||||
$(error TWINE_PASSWORD is required)
|
||||
endif
|
||||
$(PYTHON) -m twine upload --repository-url "$(GITEA_PYPI_REPOSITORY_URL)" dist/*
|
||||
|
||||
# Feedback and Continuous Improvement
|
||||
.PHONY: feedback
|
||||
feedback: ## Submit feedback (Usage: make feedback MSG="your feedback")
|
||||
@@ -358,4 +387,4 @@ capability-info: ## Show capability information
|
||||
@echo "Supported backends: Local SQLite, GitHub, GitLab, Gitea"
|
||||
@echo "Key features: Repository-aware, offline-capable, unified interface"
|
||||
@echo "Targets:"
|
||||
@$(MAKE) --no-print-directory help | grep "^ " | sed 's/^ / /'
|
||||
@$(MAKE) --no-print-directory help | grep "^ " | sed 's/^ / /'
|
||||
|
||||
Reference in New Issue
Block a user