From 0dd3169247f00cb2d48064f8bbb1bc72266d19af Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 24 Nov 2024 20:55:12 -0600 Subject: [PATCH 1/2] update changelog --- CHANGELOG.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f4000e..5bc87fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ All notable changes to Wutta Demo will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). -## [0.1.0] - ?? -### Added -- Initial version. +## v0.1.0 (2024-11-24) + +### Feat + +- initial version From a82d7292467f11a911275d6a92e07d6a5aba7ce3 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 24 Nov 2024 20:55:51 -0600 Subject: [PATCH 2/2] build: cleanup release task --- .gitignore | 1 + tasks.py | 20 ++++---------------- 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index 942cd73..050c223 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.pyc +dist/ Wutta_Demo.egg-info/ diff --git a/tasks.py b/tasks.py index 984f9c9..0fe3bbe 100644 --- a/tasks.py +++ b/tasks.py @@ -9,25 +9,13 @@ import shutil from invoke import task -here = os.path.abspath(os.path.dirname(__file__)) -exec(open(os.path.join(here, 'wuttademo', '_version.py')).read()) - - @task def release(c): """ Release a new version of Wutta Demo """ - # rebuild local tar.gz file for distribution - if os.path.exists('Wutta_Demo.egg-info'): - shutil.rmtree('Wutta_Demo.egg-info') + if os.path.exists('dist'): + shutil.rmtree('dist') + c.run('python -m build --sdist') - - # filename of built package - filename = 'Wutta-Demo-{}.tar.gz'.format(__version__) - - # TODO: uncomment and update these details, to upload to private PyPI - #c.run('scp dist/{} rattail@pypi.example.com:/srv/pypi/wuttademo/'.format(filename)) - - # TODO: or, uncomment this to upload to *public* PyPI - #c.run('twine upload dist/{}'.format(filename)) + c.run('twine upload dist/*')