Compare commits
No commits in common. "master" and "v0.1.7" have entirely different histories.
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,4 +1 @@
|
||||||
*~
|
|
||||||
*.pyc
|
|
||||||
dist/
|
|
||||||
tailbone_quickbooks.egg-info/
|
tailbone_quickbooks.egg-info/
|
||||||
|
|
|
@ -5,12 +5,6 @@ All notable changes to tailbone-quickbooks will be documented in this file.
|
||||||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
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).
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## v0.2.0 (2024-06-11)
|
|
||||||
|
|
||||||
### Feat
|
|
||||||
|
|
||||||
- switch from setup.cfg to pyproject.toml + hatchling
|
|
||||||
|
|
||||||
## [0.1.7] - 2024-06-03
|
## [0.1.7] - 2024-06-03
|
||||||
### Changed
|
### Changed
|
||||||
- Add support for Vendor -> Quickbooks Bank Accounts field.
|
- Add support for Vendor -> Quickbooks Bank Accounts field.
|
||||||
|
|
11
README.md
11
README.md
|
@ -1,11 +0,0 @@
|
||||||
|
|
||||||
# tailbone-quickbooks
|
|
||||||
|
|
||||||
Rattail is a retail software framework, released under the GNU General
|
|
||||||
Public License.
|
|
||||||
|
|
||||||
This package contains software interfaces for
|
|
||||||
[Quickbooks](https://quickbooks.intuit.com/).
|
|
||||||
|
|
||||||
Please see the [Rattail Project](https://rattailproject.org/) for more
|
|
||||||
information.
|
|
14
README.rst
Normal file
14
README.rst
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
|
||||||
|
tailbone-quickbooks
|
||||||
|
===================
|
||||||
|
|
||||||
|
Rattail is a retail software framework, released under the GNU General
|
||||||
|
Public License.
|
||||||
|
|
||||||
|
This package contains software interfaces for `Quickbooks`_.
|
||||||
|
|
||||||
|
.. _`Quickbooks`: https://quickbooks.intuit.com/
|
||||||
|
|
||||||
|
Please see the `Rattail Project`_ for more information.
|
||||||
|
|
||||||
|
.. _`Rattail Project`: https://rattailproject.org/
|
|
@ -1,41 +0,0 @@
|
||||||
|
|
||||||
[build-system]
|
|
||||||
requires = ["hatchling"]
|
|
||||||
build-backend = "hatchling.build"
|
|
||||||
|
|
||||||
|
|
||||||
[project]
|
|
||||||
name = "tailbone-quickbooks"
|
|
||||||
version = "0.2.0"
|
|
||||||
description = "Tailbone integration package for Quickbooks"
|
|
||||||
readme = "README.md"
|
|
||||||
authors = [{name = "Lance Edgar", email = "lance@edbob.org"}]
|
|
||||||
license = {text = "GNU GPL v3+"}
|
|
||||||
classifiers = [
|
|
||||||
"Development Status :: 3 - Alpha",
|
|
||||||
"Environment :: Web Environment",
|
|
||||||
"Intended Audience :: Developers",
|
|
||||||
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
|
|
||||||
"Natural Language :: English",
|
|
||||||
"Operating System :: OS Independent",
|
|
||||||
"Programming Language :: Python",
|
|
||||||
"Programming Language :: Python :: 3",
|
|
||||||
"Topic :: Office/Business",
|
|
||||||
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
||||||
]
|
|
||||||
dependencies = [
|
|
||||||
"rattail-quickbooks",
|
|
||||||
"Tailbone",
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
[project.urls]
|
|
||||||
Homepage = "https://rattailproject.org"
|
|
||||||
Repository = "https://kallithea.rattailproject.org/rattail-project/tailbone-quickbooks"
|
|
||||||
Changelog = "https://kallithea.rattailproject.org/rattail-project/tailbone-quickbooks/files/master/CHANGELOG.md"
|
|
||||||
|
|
||||||
|
|
||||||
[tool.commitizen]
|
|
||||||
version_provider = "pep621"
|
|
||||||
tag_format = "v$version"
|
|
||||||
update_changelog_on_bump = true
|
|
30
setup.cfg
Normal file
30
setup.cfg
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
# -*- coding: utf-8; -*-
|
||||||
|
|
||||||
|
[metadata]
|
||||||
|
name = tailbone-quickbooks
|
||||||
|
version = attr: tailbone_quickbooks.__version__
|
||||||
|
author = Lance Edgar
|
||||||
|
author_email = lance@edbob.org
|
||||||
|
url = https://rattailproject.org/
|
||||||
|
description = Tailbone integration package for Quickbooks
|
||||||
|
long_description = file: README.rst
|
||||||
|
classifiers =
|
||||||
|
Development Status :: 3 - Alpha
|
||||||
|
Environment :: Web Environment
|
||||||
|
Intended Audience :: Developers
|
||||||
|
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
||||||
|
Natural Language :: English
|
||||||
|
Operating System :: OS Independent
|
||||||
|
Programming Language :: Python
|
||||||
|
Programming Language :: Python :: 3
|
||||||
|
Topic :: Office/Business
|
||||||
|
Topic :: Software Development :: Libraries :: Python Modules
|
||||||
|
|
||||||
|
|
||||||
|
[options]
|
||||||
|
install_requires =
|
||||||
|
rattail-quickbooks
|
||||||
|
Tailbone
|
||||||
|
|
||||||
|
packages = find:
|
||||||
|
include_package_data = True
|
29
setup.py
Normal file
29
setup.py
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
# -*- coding: utf-8; -*-
|
||||||
|
################################################################################
|
||||||
|
#
|
||||||
|
# Rattail -- Retail Software Framework
|
||||||
|
# Copyright © 2010-2023 Lance Edgar
|
||||||
|
#
|
||||||
|
# This file is part of Rattail.
|
||||||
|
#
|
||||||
|
# Rattail is free software: you can redistribute it and/or modify it under the
|
||||||
|
# terms of the GNU General Public License as published by the Free Software
|
||||||
|
# Foundation, either version 3 of the License, or (at your option) any later
|
||||||
|
# version.
|
||||||
|
#
|
||||||
|
# Rattail is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
|
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
# details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License along with
|
||||||
|
# Rattail. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
################################################################################
|
||||||
|
"""
|
||||||
|
tailbone-quickbooks setup script
|
||||||
|
"""
|
||||||
|
|
||||||
|
from setuptools import setup
|
||||||
|
|
||||||
|
setup()
|
|
@ -1,9 +1,3 @@
|
||||||
# -*- coding: utf-8; -*-
|
# -*- coding: utf-8; -*-
|
||||||
|
|
||||||
try:
|
__version__ = '0.1.7'
|
||||||
from importlib.metadata import version
|
|
||||||
except ImportError:
|
|
||||||
from importlib_metadata import version
|
|
||||||
|
|
||||||
|
|
||||||
__version__ = version('tailbone-quickbooks')
|
|
||||||
|
|
|
@ -97,7 +97,7 @@
|
||||||
this.toggleRows(uuids, checked)
|
this.toggleRows(uuids, checked)
|
||||||
}
|
}
|
||||||
|
|
||||||
${grid.vue_component}.methods.allChecked = function(checkedList) {
|
TailboneGrid.methods.allChecked = function(checkedList) {
|
||||||
// (de-)select all visible invoices when header checkbox is clicked
|
// (de-)select all visible invoices when header checkbox is clicked
|
||||||
let checked = !!checkedList.length
|
let checked = !!checkedList.length
|
||||||
this.toggleRows(this.allRowUUIDs(), checked)
|
this.toggleRows(this.allRowUUIDs(), checked)
|
||||||
|
|
|
@ -138,8 +138,8 @@ class VendorViewSupplement(ViewSupplement):
|
||||||
|
|
||||||
|
|
||||||
def make_accounts_grid(request):
|
def make_accounts_grid(request):
|
||||||
g = grids.Grid(request,
|
g = grids.Grid('quickbooks_bank_accounts',
|
||||||
key='quickbooks_bank_accounts',
|
request=request,
|
||||||
data=[], # empty data
|
data=[], # empty data
|
||||||
columns=[
|
columns=[
|
||||||
'store',
|
'store',
|
||||||
|
@ -165,12 +165,12 @@ class BankAccountsWidget(dfwidget.Widget):
|
||||||
def serialize(self, field, cstruct, **kw):
|
def serialize(self, field, cstruct, **kw):
|
||||||
g = make_accounts_grid(self.request)
|
g = make_accounts_grid(self.request)
|
||||||
|
|
||||||
g.actions.append(
|
g.main_actions.append(
|
||||||
grids.GridAction(self.request, 'edit', icon='edit',
|
grids.GridAction('edit', icon='edit',
|
||||||
click_handler='quickbooksBankAccountEdit(props.row)'))
|
click_handler='quickbooksBankAccountEdit(props.row)'))
|
||||||
|
|
||||||
g.actions.append(
|
g.main_actions.append(
|
||||||
grids.GridAction(self.request, 'delete', icon='trash',
|
grids.GridAction('delete', icon='trash',
|
||||||
click_handler='quickbooksBankAccountDelete(props.row)'))
|
click_handler='quickbooksBankAccountDelete(props.row)'))
|
||||||
|
|
||||||
widget = render('/vendors/quickbooks_bank_accounts_widget.mako', {
|
widget = render('/vendors/quickbooks_bank_accounts_widget.mako', {
|
||||||
|
|
16
tasks.py
16
tasks.py
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# Rattail -- Retail Software Framework
|
# Rattail -- Retail Software Framework
|
||||||
# Copyright © 2010-2024 Lance Edgar
|
# Copyright © 2010-2022 Lance Edgar
|
||||||
#
|
#
|
||||||
# This file is part of Rattail.
|
# This file is part of Rattail.
|
||||||
#
|
#
|
||||||
|
@ -24,18 +24,24 @@
|
||||||
Tasks for tailbone-quickbooks
|
Tasks for tailbone-quickbooks
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
from invoke import task
|
from invoke import task
|
||||||
|
|
||||||
|
|
||||||
|
here = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
exec(open(os.path.join(here, 'tailbone_quickbooks', '_version.py')).read())
|
||||||
|
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def release(c):
|
def release(c):
|
||||||
"""
|
"""
|
||||||
Release a new version of tailbone-quickbooks
|
Release a new version of tailbone-quickbooks
|
||||||
"""
|
"""
|
||||||
# rebuild package
|
# rebuild local tar.gz file for distribution
|
||||||
c.run('rm -rf dist')
|
|
||||||
c.run('rm -rf tailbone_quickbooks.egg-info')
|
c.run('rm -rf tailbone_quickbooks.egg-info')
|
||||||
c.run('python -m build --sdist')
|
c.run('python setup.py sdist --formats=gztar')
|
||||||
|
|
||||||
# upload to PyPI
|
# upload to PyPI
|
||||||
c.run('twine upload dist/*')
|
filename = 'tailbone-quickbooks-{}.tar.gz'.format(__version__)
|
||||||
|
c.run('twine upload dist/{}'.format(filename))
|
||||||
|
|
Loading…
Reference in a new issue