diff --git a/HISTORY.rst b/HISTORY.rst index 150866b..16ad82e 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,6 +1,12 @@ Changelog ========= +2024-05-11b : v0.13.1 'Setup me down !' +--------------------------------------- + +* see https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details + + 2024-05-11a : v0.13.0 'PEP 667 me up !' --------------------------------------- diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..0267558 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,36 @@ +[build-system] # flit_core seems the step after 'setuptools','wheel','build','twine' (see https://github.com/pypa/build/issues/394) +requires = ["flit_core"] +build-backend = "flit_core.buildapi" + +[project] +name = "sqlite_bro" +authors = [ + {name = "stonebig"}, +] +dependencies = [] +requires-python = ">=3.3" +readme = "README.rst" +license = {file = "LICENSE"} +classifiers=[ + 'Intended Audience :: Education', + 'License :: OSI Approved :: MIT License', + 'Operating System :: MacOS', + 'Operating System :: Microsoft :: Windows', + 'Operating System :: OS Independent', + 'Operating System :: POSIX', + 'Operating System :: Unix', + 'Programming Language :: Python :: 3', + 'Development Status :: 5 - Production/Stable', + 'Topic :: Scientific/Engineering', + 'Topic :: Software Development :: Widget Sets', +] +dynamic = ["version",] +description="a graphic SQLite Client in 1 Python file" +keywords = ["sqlite", "gui", "ttk", "sql"] + +[project.urls] +Documentation = "https://github.com/stonebig/sqlite_bro/README.rst" +Source = "https://github.com/stonebig/sqlite_bro" + +[project.scripts] +sqlite_bro = "sqlite_bro.sqlite_bro:_main" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 7469488..0000000 --- a/setup.cfg +++ /dev/null @@ -1,5 +0,0 @@ -[metadata] -description-file = README.rst - -[bdist_wheel] -universal = 1 diff --git a/setup.py b/setup.py deleted file mode 100644 index 9ba895e..0000000 --- a/setup.py +++ /dev/null @@ -1,54 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import with_statement -import os -from setuptools import setup - - -def get_version(): - with open(os.path.join('sqlite_bro', 'sqlite_bro.py')) as f: - for line in f: - if line.strip().startswith('self.__version__'): - return eval(line.split('=')[-1]) - - -def read(*paths): - """Build a file path from *paths* and return the contents.""" - with open(os.path.join(*paths), 'r') as f: - return f.read() - - -setup( - name='sqlite_bro', - version=get_version(), - description="a graphic SQLite Client in 1 Python file", - - long_description=(read('README.rst')), - keywords=['sqlite', 'gui', 'ttk', 'sql'], - author='stonebig', - author_email='write_pull_requests_to_stonebig@github.com', - url='https://github.com/stonebig/sqlite_bro', - license='MIT license', - # py_modules=['sqlite_bro'], - packages=['sqlite_bro', 'sqlite_bro.tests'], - # package_dir={"sqlite_bro": "sqlite_bro"}, - # namespace_packages=[], - include_package_data=True, - # zip_safe=False, - # install_requires=[], - entry_points={ - 'console_scripts': [ - 'sqlite_bro = sqlite_bro.sqlite_bro:_main', - ], - }, - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Intended Audience :: Education', - 'License :: OSI Approved :: MIT License', - 'Operating System :: OS Independent', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Topic :: Scientific/Engineering :: Information Analysis', - ] -) diff --git a/sqlite_bro/__init__.py b/sqlite_bro/__init__.py index e69de29..80a9c66 100644 --- a/sqlite_bro/__init__.py +++ b/sqlite_bro/__init__.py @@ -0,0 +1 @@ +__version__ = '0.13.1' \ No newline at end of file diff --git a/sqlite_bro/sqlite_bro.py b/sqlite_bro/sqlite_bro.py index b6a4d06..131083f 100644 --- a/sqlite_bro/sqlite_bro.py +++ b/sqlite_bro/sqlite_bro.py @@ -42,8 +42,8 @@ class App: def __init__(self, use_gui=True): """create a tkk graphic interface with a main window tk_win""" - self.__version__ = "0.13.0" - self._title = "of 2024-05-11a : 'PEP 667 me up !'" + self.__version__ = "0.13.1" + self._title = "of 2024-05-11b : 'Setup me down !'" self.conn = None # Baresql database object self.database_file = "" self.initialdir = "."