From d58de74e1d446e3e9e504baf31892414d8c13ddd Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 24 Feb 2018 12:44:56 -0600 Subject: [PATCH 01/11] Use invoke instead of fabric, for release task --- fabfile.py => tasks.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) rename fabfile.py => tasks.py (81%) diff --git a/fabfile.py b/tasks.py similarity index 81% rename from fabfile.py rename to tasks.py index 3894324..918e51d 100644 --- a/fabfile.py +++ b/tasks.py @@ -1,9 +1,8 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- +# -*- coding: utf-8; -*- ################################################################################ # # sqlalchemy-pervasive -- SQLAlchemy Dialect for Pervasive PSQL -# Copyright © 2013 Sacramento Natural Foods Co-op, Inc +# Copyright © 2013-2018 Sacramento Natural Foods Co-op, Inc # # This file is part of sqlalchemy-pervasive. # @@ -22,16 +21,16 @@ # ################################################################################ +from __future__ import unicode_literals, absolute_import import shutil -from fabric.api import task, local +from invoke import task @task -def release(): +def release(ctx): """ Release a new version of 'sqlalchemy-pervasive'. """ - shutil.rmtree('sqlalchemy_pervasive.egg-info') - local('python setup.py sdist --formats=gztar register upload') + ctx.run('python setup.py sdist --formats=gztar upload') From 33d3f301a3d646ce5c8a0dd547eab21f995a6391 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 3 Mar 2021 11:48:15 -0600 Subject: [PATCH 02/11] Officially declare "Python 3 only" --- setup.py | 11 ++++------- sqlalchemy_pervasive/__init__.py | 5 ++--- sqlalchemy_pervasive/base.py | 6 ++---- sqlalchemy_pervasive/pyodbc.py | 6 ++---- tasks.py | 13 +++++++++---- 5 files changed, 19 insertions(+), 22 deletions(-) diff --git a/setup.py b/setup.py index c013306..1882210 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ ################################################################################ # # sqlalchemy-pervasive -- SQLAlchemy Dialect for Pervasive PSQL -# Copyright © 2013-2018 Sacramento Natural Foods Co-op, Inc +# Copyright © 2013-2021 Sacramento Natural Foods Co-op, Inc # # This file is part of sqlalchemy-pervasive. # @@ -21,8 +21,6 @@ # ################################################################################ -from __future__ import unicode_literals, absolute_import - import os.path from setuptools import setup, find_packages @@ -79,16 +77,15 @@ setup( long_description = README + '\n\n' + CHANGES, classifiers = [ - 'Development Status :: 3 - Alpha', + 'Development Status :: 5 - Production/Stable', '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 :: 2.6', - 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', 'Topic :: Software Development :: Libraries :: Python Modules', - ], + ], install_requires = requires, packages = find_packages(exclude=['tests']), diff --git a/sqlalchemy_pervasive/__init__.py b/sqlalchemy_pervasive/__init__.py index dd6cf45..7d73f57 100644 --- a/sqlalchemy_pervasive/__init__.py +++ b/sqlalchemy_pervasive/__init__.py @@ -1,9 +1,8 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- +# -*- coding: utf-8; -*- ################################################################################ # # sqlalchemy-pervasive -- SQLAlchemy Dialect for Pervasive PSQL -# Copyright © 2013 Sacramento Natural Foods Co-op, Inc +# Copyright © 2013-2021 Sacramento Natural Foods Co-op, Inc # # This file is part of sqlalchemy-pervasive. # diff --git a/sqlalchemy_pervasive/base.py b/sqlalchemy_pervasive/base.py index 5a7ae7f..d0e63ce 100644 --- a/sqlalchemy_pervasive/base.py +++ b/sqlalchemy_pervasive/base.py @@ -1,9 +1,8 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- +# -*- coding: utf-8; -*- ################################################################################ # # sqlalchemy-pervasive -- SQLAlchemy Dialect for Pervasive PSQL -# Copyright © 2013 Sacramento Natural Foods Co-op, Inc +# Copyright © 2013-2021 Sacramento Natural Foods Co-op, Inc # # This file is part of sqlalchemy-pervasive. # @@ -21,7 +20,6 @@ # sqlalchemy-pervasive. If not, see . # ################################################################################ - """ Support for the Pervasive PSQL database engine. """ diff --git a/sqlalchemy_pervasive/pyodbc.py b/sqlalchemy_pervasive/pyodbc.py index 824330e..54890a1 100644 --- a/sqlalchemy_pervasive/pyodbc.py +++ b/sqlalchemy_pervasive/pyodbc.py @@ -1,9 +1,8 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- +# -*- coding: utf-8; -*- ################################################################################ # # sqlalchemy-pervasive -- SQLAlchemy Dialect for Pervasive PSQL -# Copyright © 2013 Sacramento Natural Foods Co-op, Inc +# Copyright © 2013-2021 Sacramento Natural Foods Co-op, Inc # # This file is part of sqlalchemy-pervasive. # @@ -21,7 +20,6 @@ # sqlalchemy-pervasive. If not, see . # ################################################################################ - """ Support for Pervasive PSQL via ``pyodbc``. """ diff --git a/tasks.py b/tasks.py index 918e51d..fd0d710 100644 --- a/tasks.py +++ b/tasks.py @@ -2,7 +2,7 @@ ################################################################################ # # sqlalchemy-pervasive -- SQLAlchemy Dialect for Pervasive PSQL -# Copyright © 2013-2018 Sacramento Natural Foods Co-op, Inc +# Copyright © 2013-2021 Sacramento Natural Foods Co-op, Inc # # This file is part of sqlalchemy-pervasive. # @@ -21,16 +21,21 @@ # ################################################################################ -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, 'sqlalchemy_pervasive', '_version.py')).read()) + + @task def release(ctx): """ Release a new version of 'sqlalchemy-pervasive'. """ shutil.rmtree('sqlalchemy_pervasive.egg-info') - ctx.run('python setup.py sdist --formats=gztar upload') + ctx.run('python setup.py sdist --formats=gztar') + ctx.run('twine upload dist/sqlalchemy-pervasive-{}.tar.gz'.format(__version__)) From 47bd7ae2c4cefaf40c3e07fe399798f226002878 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 3 Mar 2021 11:50:08 -0600 Subject: [PATCH 03/11] Update changelog --- CHANGES.rst | 6 ++++++ sqlalchemy_pervasive/_version.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index b458c23..48ff3f7 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,4 +1,10 @@ +0.2.0 (2021-03-03) +------------------ + +* Officially declare "Python 3 only". + + 0.1.3 (2018-02-24) ------------------ diff --git a/sqlalchemy_pervasive/_version.py b/sqlalchemy_pervasive/_version.py index 8ce9b36..7fd229a 100644 --- a/sqlalchemy_pervasive/_version.py +++ b/sqlalchemy_pervasive/_version.py @@ -1 +1 @@ -__version__ = '0.1.3' +__version__ = '0.2.0' From 0c89047497940277f3c5ec5d99e47c4dbdf5e9eb Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 3 Mar 2021 11:53:53 -0600 Subject: [PATCH 04/11] Update author / homepage metadata --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 1882210..4f3769b 100644 --- a/setup.py +++ b/setup.py @@ -69,9 +69,9 @@ requires = [ setup( name = "sqlalchemy-pervasive", version = __version__, - author = "Sacramento Natural Foods Co-op, Inc", - author_email = "developer@sacfoodcoop.com", - url = 'https://github.com/SacNaturalFoods/sqlalchemy-pervasive', + author = "Lance Edgar", + author_email = "lance@edbob.org", + url = 'https://kallithea.rattailproject.org/rattail-project-contrib/sqlalchemy-pervasive', license = "GNU GPL v3", description = "SQLAlchemy Dialect for Pervasive PSQL", long_description = README + '\n\n' + CHANGES, From 3c1928b5b5693898f30e8b6e0ae4e6f57a5bf941 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 3 Mar 2021 11:54:26 -0600 Subject: [PATCH 05/11] Update changelog --- CHANGES.rst | 6 ++++++ sqlalchemy_pervasive/_version.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 48ff3f7..1f5a4ee 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,4 +1,10 @@ +0.2.1 (2021-03-03) +------------------ + +* Update author / homepage metadata. + + 0.2.0 (2021-03-03) ------------------ diff --git a/sqlalchemy_pervasive/_version.py b/sqlalchemy_pervasive/_version.py index 7fd229a..fc79d63 100644 --- a/sqlalchemy_pervasive/_version.py +++ b/sqlalchemy_pervasive/_version.py @@ -1 +1 @@ -__version__ = '0.2.0' +__version__ = '0.2.1' From 7efe4fb7ffa8ee9f97e2fe4794e62210cfaa06ec Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 16 May 2023 14:33:16 -0500 Subject: [PATCH 06/11] Replace `setup.py` contents with `setup.cfg` --- setup.cfg | 41 ++++++++++++++++++++++++++++ setup.py | 80 +++---------------------------------------------------- 2 files changed, 44 insertions(+), 77 deletions(-) diff --git a/setup.cfg b/setup.cfg index c07ec39..5cbbd7c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,5 @@ +# -*- coding: utf-8; -*- + [nosetests] nocapture = 1 cover-package = sqlalchemy_pervasive @@ -5,3 +7,42 @@ cover-erase = 1 cover-inclusive = 1 cover-html = 1 cover-html-dir = htmlcov + + +[metadata] +name = sqlalchemy-pervasive +version = attr: sqlalchemy_pervasive.__version__ +author = Lance Edgar +author_email = lance@edbob.org +url = https://kallithea.rattailproject.org/rattail-project-contrib/sqlalchemy-pervasive +license = GNU GPL v3 +description = SQLAlchemy Dialect for Pervasive PSQL +long_description = file: README.rst +classifiers = + Development Status :: 5 - Production/Stable + 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 :: Software Development :: Libraries :: Python Modules + + +[options] +install_requires = + pyodbc + SQLAlchemy + +packages = find: +include_package_data = True + + +[options.packages.find] +exclude = tests + + +[options.entry_points] + +sqlalchemy.dialects = + pervasive = sqlalchemy_pervasive.pyodbc:PervasiveDialect_pyodbc diff --git a/setup.py b/setup.py index 4f3769b..3bb7de3 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ ################################################################################ # # sqlalchemy-pervasive -- SQLAlchemy Dialect for Pervasive PSQL -# Copyright © 2013-2021 Sacramento Natural Foods Co-op, Inc +# Copyright © 2013-2023 Sacramento Natural Foods Co-op, Inc # # This file is part of sqlalchemy-pervasive. # @@ -21,80 +21,6 @@ # ################################################################################ -import os.path -from setuptools import setup, find_packages +from setuptools import setup - -here = os.path.abspath(os.path.dirname(__file__)) -exec(open(os.path.join(here, 'sqlalchemy_pervasive', '_version.py')).read()) - -README = open(os.path.join(here, 'README.rst')).read() -CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() - - -requires = [ - # - # Version numbers within comments below have specific meanings. - # Basically the 'low' value is a "soft low," and 'high' a "soft high." - # In other words: - # - # If either a 'low' or 'high' value exists, the primary point to be - # made about the value is that it represents the most current (stable) - # version available for the package (assuming typical public access - # methods) whenever this project was started and/or documented. - # Therefore: - # - # If a 'low' version is present, you should know that attempts to use - # versions of the package significantly older than the 'low' version - # may not yield happy results. (A "hard" high limit may or may not be - # indicated by a true version requirement.) - # - # Similarly, if a 'high' version is present, and especially if this - # project has laid dormant for a while, you may need to refactor a bit - # when attempting to support a more recent version of the package. (A - # "hard" low limit should be indicated by a true version requirement - # when a 'high' version is present.) - # - # In any case, developers and other users are encouraged to play - # outside the lines with regard to these soft limits. If bugs are - # encountered then they should be filed as such. - # - # package # low high - - 'pyodbc', # 2.1.11 - 'SQLAlchemy', # 0.8.2 - ] - - -setup( - name = "sqlalchemy-pervasive", - version = __version__, - author = "Lance Edgar", - author_email = "lance@edbob.org", - url = 'https://kallithea.rattailproject.org/rattail-project-contrib/sqlalchemy-pervasive', - license = "GNU GPL v3", - description = "SQLAlchemy Dialect for Pervasive PSQL", - long_description = README + '\n\n' + CHANGES, - - classifiers = [ - 'Development Status :: 5 - Production/Stable', - '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 :: Software Development :: Libraries :: Python Modules', - ], - - install_requires = requires, - packages = find_packages(exclude=['tests']), - include_package_data = True, - - entry_points = """ - -[sqlalchemy.dialects] -pervasive = sqlalchemy_pervasive.pyodbc:PervasiveDialect_pyodbc - -""", - ) +setup() From 6acada7c03ba841799b081cf224d76a70336c1a0 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 1 Jun 2023 14:26:45 -0500 Subject: [PATCH 07/11] Update changelog --- CHANGES.rst | 6 ++++++ sqlalchemy_pervasive/_version.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 1f5a4ee..77d212e 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,4 +1,10 @@ +0.2.2 (2023-06-01) +------------------ + +* Replace ``setup.py`` contents with ``setup.cfg``. + + 0.2.1 (2021-03-03) ------------------ diff --git a/sqlalchemy_pervasive/_version.py b/sqlalchemy_pervasive/_version.py index fc79d63..020ed73 100644 --- a/sqlalchemy_pervasive/_version.py +++ b/sqlalchemy_pervasive/_version.py @@ -1 +1 @@ -__version__ = '0.2.1' +__version__ = '0.2.2' From 2740db831ffb785a77c2922e9224889689820aed Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 9 Jul 2024 15:59:06 -0500 Subject: [PATCH 08/11] feat: switch from setup.cfg to pyproject.toml + hatchling --- .gitignore | 3 ++ CHANGELOG.md | 40 ++++++++++++++++++++++++ CHANGES.rst | 41 ------------------------- pyproject.toml | 52 ++++++++++++++++++++++++++++++++ setup.cfg | 48 ----------------------------- setup.py | 26 ---------------- sqlalchemy_pervasive/_version.py | 7 ++++- 7 files changed, 101 insertions(+), 116 deletions(-) create mode 100644 CHANGELOG.md delete mode 100644 CHANGES.rst create mode 100644 pyproject.toml delete mode 100644 setup.cfg delete mode 100644 setup.py diff --git a/.gitignore b/.gitignore index fe42cd9..0d18b0f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ +*~ +*.pyc +dist/ sqlalchemy_pervasive.egg-info diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..917dfe1 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,40 @@ + +# Changelog +All notable changes to sqlalchemy-pervasive 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.2.2 (2023-06-01) + +* Replace ``setup.py`` contents with ``setup.cfg``. + + +## 0.2.1 (2021-03-03) + +* Update author / homepage metadata. + + +## 0.2.0 (2021-03-03) + +* Officially declare "Python 3 only". + + +## 0.1.3 (2018-02-24) + +* Replace ``execfile()`` usage per python 3. + + +## 0.1.2 + +* Misc. housekeeping. Added manifest, transferred copyright, etc. + + +## 0.1.1 + +* Fixed boolean conditions in rendered SQL. + + +## 0.1.0 + +* Initial version. diff --git a/CHANGES.rst b/CHANGES.rst deleted file mode 100644 index 77d212e..0000000 --- a/CHANGES.rst +++ /dev/null @@ -1,41 +0,0 @@ - -0.2.2 (2023-06-01) ------------------- - -* Replace ``setup.py`` contents with ``setup.cfg``. - - -0.2.1 (2021-03-03) ------------------- - -* Update author / homepage metadata. - - -0.2.0 (2021-03-03) ------------------- - -* Officially declare "Python 3 only". - - -0.1.3 (2018-02-24) ------------------- - -* Replace ``execfile()`` usage per python 3. - - -0.1.2 ------ - -* Misc. housekeeping. Added manifest, transferred copyright, etc. - - -0.1.1 ------ - -* Fixed boolean conditions in rendered SQL. - - -0.1.0 ------ - -* Initial version. diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..043637b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,52 @@ + +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + + +[project] +name = "sqlalchemy-pervasive" +version = "0.2.2" +description = "SQLAlchemy Dialect for Pervasive PSQL" +readme = "README.rst" +authors = [{name = "Lance Edgar", email = "lance@edbob.org"}] +license = {text = "GNU GPL v3+"} +classifiers = [ + "Development Status :: 5 - Production/Stable", + "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 :: Software Development :: Libraries :: Python Modules", +] +dependencies = [ + "pyodbc", + "SQLAlchemy", +] + + +[project.entry-points."sqlalchemy.dialects"] +pervasive = "sqlalchemy_pervasive.pyodbc:PervasiveDialect_pyodbc" + + +[project.urls] +Homepage = "https://kallithea.rattailproject.org/rattail-project-contrib/sqlalchemy-pervasive" +Repository = "https://kallithea.rattailproject.org/rattail-project-contrib/sqlalchemy-pervasive" +Changelog = "https://kallithea.rattailproject.org/rattail-project-contrib/sqlalchemy-pervasive/files/master/CHANGELOG.md" + + +[tool.commitizen] +version_provider = "pep621" +tag_format = "v$version" +update_changelog_on_bump = true + + +[tool.nosetests] +nocapture = 1 +cover-package = "sqlalchemy_pervasive" +cover-erase = 1 +cover-inclusive = 1 +cover-html = 1 +cover-html-dir = "htmlcov" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 5cbbd7c..0000000 --- a/setup.cfg +++ /dev/null @@ -1,48 +0,0 @@ -# -*- coding: utf-8; -*- - -[nosetests] -nocapture = 1 -cover-package = sqlalchemy_pervasive -cover-erase = 1 -cover-inclusive = 1 -cover-html = 1 -cover-html-dir = htmlcov - - -[metadata] -name = sqlalchemy-pervasive -version = attr: sqlalchemy_pervasive.__version__ -author = Lance Edgar -author_email = lance@edbob.org -url = https://kallithea.rattailproject.org/rattail-project-contrib/sqlalchemy-pervasive -license = GNU GPL v3 -description = SQLAlchemy Dialect for Pervasive PSQL -long_description = file: README.rst -classifiers = - Development Status :: 5 - Production/Stable - 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 :: Software Development :: Libraries :: Python Modules - - -[options] -install_requires = - pyodbc - SQLAlchemy - -packages = find: -include_package_data = True - - -[options.packages.find] -exclude = tests - - -[options.entry_points] - -sqlalchemy.dialects = - pervasive = sqlalchemy_pervasive.pyodbc:PervasiveDialect_pyodbc diff --git a/setup.py b/setup.py deleted file mode 100644 index 3bb7de3..0000000 --- a/setup.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8; -*- -################################################################################ -# -# sqlalchemy-pervasive -- SQLAlchemy Dialect for Pervasive PSQL -# Copyright © 2013-2023 Sacramento Natural Foods Co-op, Inc -# -# This file is part of sqlalchemy-pervasive. -# -# sqlalchemy-pervasive 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. -# -# sqlalchemy-pervasive 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 -# sqlalchemy-pervasive. If not, see . -# -################################################################################ - -from setuptools import setup - -setup() diff --git a/sqlalchemy_pervasive/_version.py b/sqlalchemy_pervasive/_version.py index 020ed73..3d8fab5 100644 --- a/sqlalchemy_pervasive/_version.py +++ b/sqlalchemy_pervasive/_version.py @@ -1 +1,6 @@ -__version__ = '0.2.2' +# -*- coding: utf-8; -*- + +from importlib.metadata import version + + +__version__ = version('sqlalchemy-pervasive') From 63e7de907eb651f4b92a986a01c59c96d41a3dad Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 9 Jul 2024 15:59:18 -0500 Subject: [PATCH 09/11] =?UTF-8?q?bump:=20version=200.2.2=20=E2=86=92=200.3?= =?UTF-8?q?.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 6 ++++++ pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 917dfe1..c899989 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to sqlalchemy-pervasive 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). +## v0.3.0 (2024-07-09) + +### Feat + +- switch from setup.cfg to pyproject.toml + hatchling + ## 0.2.2 (2023-06-01) * Replace ``setup.py`` contents with ``setup.cfg``. diff --git a/pyproject.toml b/pyproject.toml index 043637b..398a91a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" [project] name = "sqlalchemy-pervasive" -version = "0.2.2" +version = "0.3.0" description = "SQLAlchemy Dialect for Pervasive PSQL" readme = "README.rst" authors = [{name = "Lance Edgar", email = "lance@edbob.org"}] From 609e99003fed6b0ff2204dca0e29e1f8b868f3b3 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 9 Jul 2024 16:00:39 -0500 Subject: [PATCH 10/11] build: update release task per latest conventions --- tasks.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/tasks.py b/tasks.py index fd0d710..707e130 100644 --- a/tasks.py +++ b/tasks.py @@ -2,7 +2,7 @@ ################################################################################ # # sqlalchemy-pervasive -- SQLAlchemy Dialect for Pervasive PSQL -# Copyright © 2013-2021 Sacramento Natural Foods Co-op, Inc +# Copyright © 2013-2024 Sacramento Natural Foods Co-op, Inc # # This file is part of sqlalchemy-pervasive. # @@ -27,15 +27,16 @@ import shutil from invoke import task -here = os.path.abspath(os.path.dirname(__file__)) -exec(open(os.path.join(here, 'sqlalchemy_pervasive', '_version.py')).read()) - - @task -def release(ctx): +def release(c): """ Release a new version of 'sqlalchemy-pervasive'. """ - shutil.rmtree('sqlalchemy_pervasive.egg-info') - ctx.run('python setup.py sdist --formats=gztar') - ctx.run('twine upload dist/sqlalchemy-pervasive-{}.tar.gz'.format(__version__)) + if os.path.exists('dist'): + shutil.rmtree('dist') + if os.path.exists('sqlalchemy_pervasive.egg-info'): + shutil.rmtree('sqlalchemy_pervasive.egg-info') + + c.run('python -m build --sdist') + + c.run('twine upload dist/*') From b55f7ead048e57fe170c2a3f992b0bd29e0f05ab Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 13 Sep 2024 19:16:28 -0500 Subject: [PATCH 11/11] docs: use markdown for readme file --- README.md | 5 +++++ README.rst | 7 ------- pyproject.toml | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) create mode 100644 README.md delete mode 100644 README.rst diff --git a/README.md b/README.md new file mode 100644 index 0000000..83698bf --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ + +# sqlalchemy-pervasive + +A SQLAlchemy dialect for the [Pervasive +PSQL](http://www.pervasive.com/database/) database engine. diff --git a/README.rst b/README.rst deleted file mode 100644 index 84479aa..0000000 --- a/README.rst +++ /dev/null @@ -1,7 +0,0 @@ - -sqlalchemy-pervasive -==================== - -A SQLAlchemy dialect for the `Pervasive PSQL`_ database engine. - -.. _Pervasive PSQL: http://www.pervasive.com/database/ diff --git a/pyproject.toml b/pyproject.toml index 398a91a..4291bc3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ build-backend = "hatchling.build" name = "sqlalchemy-pervasive" version = "0.3.0" description = "SQLAlchemy Dialect for Pervasive PSQL" -readme = "README.rst" +readme = "README.md" authors = [{name = "Lance Edgar", email = "lance@edbob.org"}] license = {text = "GNU GPL v3+"} classifiers = [