From 0ebecde1cf50d67b24ba46f477d6a0b426b3ce8f Mon Sep 17 00:00:00 2001 From: Dmitry S Date: Fri, 29 Nov 2024 23:09:44 -0500 Subject: [PATCH] Update setup.cfg to use newer licence_files key; update commands and notes in Makefile for the newer build process --- Makefile | 10 ++++++---- setup.cfg | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index fd361e7..c0666be 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,14 @@ dist: @echo Build python distribution - python setup.py sdist bdist_wheel + @echo "(If no 'build' module, install with 'python -m pip install build setuptools_scm')" + python -m build publish: @echo "Publish to PyPI at https://pypi.python.org/pypi/asttokens/" - @echo "Version in setup.py is `python setup.py --version`" - @echo "Git tag is `git describe --tags`" - @echo "Run this manually: twine upload dist/asttokens-`python setup.py --version`*" + @VER=`python -c 'import setuptools_scm; print(setuptools_scm.get_version())'`; \ + echo "Version in setup.py is $$VER"; \ + echo "Git tag is `git describe --tags`"; \ + echo "Run this manually: twine upload dist/asttokens-$$VER*" docs: @echo Build documentation in docs/_build/html diff --git a/setup.cfg b/setup.cfg index c39bf49..182b8d2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [metadata] -license_file = LICENSE +license_files = LICENSE name = asttokens author = Dmitry Sagalovskiy, Grist Labs author_email = dmitry@getgrist.com