From 8b4341a9f3dd6f15f38895ff634cbb41e4526f21 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 9 Jul 2024 15:41:59 -0500 Subject: [PATCH 1/2] build: update release task per latest conventions --- tasks.py | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/tasks.py b/tasks.py index b7945f5..977854b 100644 --- a/tasks.py +++ b/tasks.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2019 Lance Edgar +# Copyright © 2010-2024 Lance Edgar # # This file is part of Rattail. # @@ -24,23 +24,22 @@ Tasks for rattail-cognitive """ -from __future__ import unicode_literals, absolute_import - import os import shutil from invoke import task -here = os.path.abspath(os.path.dirname(__file__)) -exec(open(os.path.join(here, 'rattail_cognitive', '_version.py')).read()) - - @task -def release(ctx): +def release(c): """ Release a new version of `rattail`. """ - shutil.rmtree('rattail_cognitive.egg-info') - ctx.run('python setup.py sdist --formats=gztar') - ctx.run('twine upload dist/rattail_cognitive-{}.tar.gz'.format(__version__)) + if os.path.exists('rattail_cognitive.egg-info'): + shutil.rmtree('rattail_cognitive.egg-info') + if os.path.exists('dist'): + shutil.rmtree('dist') + + c.run('python -m build --sdist') + + c.run('twine upload dist/*') From 4356d20652cc388f5f85e57b5e49034ef73f9bdf Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 13 Sep 2024 19:31:09 -0500 Subject: [PATCH 2/2] docs: use markdown for readme file --- README.md | 11 +++++++++++ README.txt | 13 ------------- pyproject.toml | 2 +- 3 files changed, 12 insertions(+), 14 deletions(-) create mode 100644 README.md delete mode 100644 README.txt diff --git a/README.md b/README.md new file mode 100644 index 0000000..5648c9d --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ + +# rattail-cognitive + +Rattail is a retail software framework, released under the GNU General Public +License. + +This package contains hardware interfaces for +[Cognitive](http://www.cognitive.com/) devices. + +Please see Rattail's [home page](https://rattailproject.org/) for more +information. diff --git a/README.txt b/README.txt deleted file mode 100644 index f675812..0000000 --- a/README.txt +++ /dev/null @@ -1,13 +0,0 @@ - -rattail-cognitive -================= - -Rattail is a retail software framework, released under the GNU General Public -License. - -This package contains hardware interfaces for `Cognitive`_ devices. - -Please see Rattail's `home page`_ for more information. - -.. _Cognitive: http://www.cognitive.com/ -.. _home page: https://rattailproject.org/ diff --git a/pyproject.toml b/pyproject.toml index cec10d3..0742c23 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ build-backend = "hatchling.build" name = "rattail_cognitive" version = "0.4.0" description = "Hardware Interfaces for Cognitive Devices" -readme = "README.txt" +readme = "README.md" authors = [{name = "Lance Edgar", email = "lance@edbob.org"}] license = {text = "GNU GPL v3+"} classifiers = [