feat: switch from setup.cfg to pyproject.toml + hatchling

This commit is contained in:
Lance Edgar 2024-06-10 20:54:22 -05:00
parent c65cfe5144
commit 5176acaf9e
5 changed files with 65 additions and 56 deletions

3
.gitignore vendored
View file

@ -1 +1,4 @@
*~
*.pyc
dist/
rattail_demo.egg-info/

57
pyproject.toml Normal file
View file

@ -0,0 +1,57 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "rattail-demo"
version = "0.1.0"
description = "Rattail Software Demo"
readme = "README.rst"
authors = [{name = "Lance Edgar", email = "lance@edbob.org"}]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Office/Business",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"invoke",
"psycopg2",
"rattail-tempmon",
"Tailbone",
"tailbone-corepos",
"tailbone-woocommerce",
"typer",
"xlrd",
]
[project.scripts]
rattail-demo = "rattail_demo.commands:rattail_demo_typer"
[project.entry-points."paste.app_factory"]
main = "rattail_demo.web.app:main"
webapi = "rattail_demo.web.webapi:main"
[project.entry-points."rattail.config.extensions"]
rattail-demo = "rattail_demo.config:DemoConfigExtension"
[project.urls]
Homepage = "https://demo.rattailproject.org"
Repository = "https://kallithea.rattailproject.org/rattail-project/rattail-demo"
Changelog = "https://kallithea.rattailproject.org/rattail-project/rattail-demo/files/master/CHANGES.rst"
[tool.commitizen]
version_provider = "pep621"
tag_format = "v$version"
update_changelog_on_bump = true

View file

@ -1,3 +1,6 @@
# -*- coding: utf-8 -*-
# -*- coding: utf-8; -*-
__version__ = u'0.1.0'
from importlib.metadata import version
__version__ = version('rattail-demo')

View file

@ -1,46 +0,0 @@
# -*- coding: utf-8; -*-
[metadata]
name = rattail-demo
version = attr: rattail_demo.__version__
author = Lance Edgar
author_email = lance@edbob.org
url = https://rattailproject.org/
description = Rattail Software Demo
long_description = file: README.rst
classifiers =
Development Status :: 3 - Alpha
Intended Audience :: Developers
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 =
invoke
psycopg2
rattail-tempmon
Tailbone
tailbone-corepos
tailbone-woocommerce
typer
xlrd
packages = find:
[options.entry_points]
console_scripts =
rattail-demo = rattail_demo.commands:rattail_demo_typer
paste.app_factory =
main = rattail_demo.web.app:main
webapi = rattail_demo.web.webapi:main
rattail.config.extensions =
rattail-demo = rattail_demo.config:DemoConfigExtension

View file

@ -1,8 +0,0 @@
# -*- coding: utf-8; -*-
"""
Setup script for Rattail Demo
"""
from setuptools import setup
setup()