Skip to content

Commit

Permalink
Packaging metadata update.
Browse files Browse the repository at this point in the history
  • Loading branch information
amcgregor committed May 3, 2023
1 parent 822a9eb commit 2fc6ea7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ clean: ## Remove executable caches and ephemeral collections.
find . -name __pycache__ -exec rm -rfv {} +
find . -iname \*.pyc -exec rm -fv {} +
find . -iname \*.pyo -exec rm -fv {} +
rm -rvf build htmlcov
rm -rvf .packaging/* htmlcov

veryclean: clean ## Remove all project metadata, executable caches, and sensitive collections.
rm -rvf *.egg-info .packaging/{build,dist,release}/*
rm -rvf *.egg-info .packaging/*

lint: ## Execute pylint across the project.
pylint --rcfile=setup.cfg marrow
Expand All @@ -29,9 +29,11 @@ test: develop
testloop: ## Automatically execute the test suite limited to one failure.
find marrow test -name \*.py | entr -c pytest --ff --maxfail=1 -q

release: ## Package up and utilize Twine to issue a release.
./setup.py sdist bdist_wheel ${RELEASE_OPTIONS}
python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
release: test ## Package up and utilize Twine to issue a release.
pip3 install -U build twine
python3 -m build
#python3 -m twine upload --repository-url https://test.pypi.org/legacy/ .packaging/release/*
#python3 -m twine upload .packaging/release/*

${PROJECT}.egg-info/PKG-INFO: setup.py setup.cfg
@mkdir -p ${VIRTUAL_ENV}/lib/pip-cache
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

0 comments on commit 2fc6ea7

Please sign in to comment.