Compare commits

..

No commits in common. "master" and "v0.4.0" have entirely different histories.

4 changed files with 25 additions and 22 deletions

View file

@ -1,11 +0,0 @@
# 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.

13
README.txt Normal file
View file

@ -0,0 +1,13 @@
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/

View file

@ -8,7 +8,7 @@ build-backend = "hatchling.build"
name = "rattail_cognitive" name = "rattail_cognitive"
version = "0.4.0" version = "0.4.0"
description = "Hardware Interfaces for Cognitive Devices" description = "Hardware Interfaces for Cognitive Devices"
readme = "README.md" readme = "README.txt"
authors = [{name = "Lance Edgar", email = "lance@edbob.org"}] authors = [{name = "Lance Edgar", email = "lance@edbob.org"}]
license = {text = "GNU GPL v3+"} license = {text = "GNU GPL v3+"}
classifiers = [ classifiers = [

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2024 Lance Edgar # Copyright © 2010-2019 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -24,22 +24,23 @@
Tasks for rattail-cognitive Tasks for rattail-cognitive
""" """
from __future__ import unicode_literals, absolute_import
import os import os
import shutil import shutil
from invoke import task from invoke import task
here = os.path.abspath(os.path.dirname(__file__))
exec(open(os.path.join(here, 'rattail_cognitive', '_version.py')).read())
@task @task
def release(c): def release(ctx):
""" """
Release a new version of `rattail`. Release a new version of `rattail`.
""" """
if os.path.exists('rattail_cognitive.egg-info'): shutil.rmtree('rattail_cognitive.egg-info')
shutil.rmtree('rattail_cognitive.egg-info') ctx.run('python setup.py sdist --formats=gztar')
if os.path.exists('dist'): ctx.run('twine upload dist/rattail_cognitive-{}.tar.gz'.format(__version__))
shutil.rmtree('dist')
c.run('python -m build --sdist')
c.run('twine upload dist/*')