feat: drop python 3.6 support, use pyproject.toml (again)
This commit is contained in:
parent
12f8b7bdf7
commit
a86a33445e
102
pyproject.toml
Normal file
102
pyproject.toml
Normal file
|
@ -0,0 +1,102 @@
|
||||||
|
|
||||||
|
[build-system]
|
||||||
|
requires = ["hatchling"]
|
||||||
|
build-backend = "hatchling.build"
|
||||||
|
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "Tailbone"
|
||||||
|
version = "0.11.10"
|
||||||
|
description = "Backoffice Web Application for Rattail"
|
||||||
|
readme = "README.rst"
|
||||||
|
authors = [{name = "Lance Edgar", email = "lance@edbob.org"}]
|
||||||
|
license = {text = "GNU GPL v3+"}
|
||||||
|
classifiers = [
|
||||||
|
"Development Status :: 4 - Beta",
|
||||||
|
"Environment :: Web Environment",
|
||||||
|
"Framework :: Pyramid",
|
||||||
|
"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",
|
||||||
|
"Programming Language :: Python :: 3.8",
|
||||||
|
"Programming Language :: Python :: 3.9",
|
||||||
|
"Programming Language :: Python :: 3.10",
|
||||||
|
"Programming Language :: Python :: 3.11",
|
||||||
|
"Topic :: Internet :: WWW/HTTP",
|
||||||
|
"Topic :: Office/Business",
|
||||||
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||||
|
]
|
||||||
|
requires-python = ">= 3.8"
|
||||||
|
dependencies = [
|
||||||
|
"asgiref",
|
||||||
|
"colander",
|
||||||
|
"ColanderAlchemy",
|
||||||
|
"cornice",
|
||||||
|
"cornice-swagger",
|
||||||
|
"deform",
|
||||||
|
"humanize",
|
||||||
|
"Mako",
|
||||||
|
"markdown",
|
||||||
|
"openpyxl",
|
||||||
|
"paginate",
|
||||||
|
"paginate_sqlalchemy",
|
||||||
|
"passlib",
|
||||||
|
"Pillow",
|
||||||
|
"pyramid>=2",
|
||||||
|
"pyramid_beaker",
|
||||||
|
"pyramid_deform",
|
||||||
|
"pyramid_exclog",
|
||||||
|
"pyramid_fanstatic",
|
||||||
|
"pyramid_mako",
|
||||||
|
"pyramid_retry",
|
||||||
|
"pyramid_tm",
|
||||||
|
"rattail[db,bouncer]",
|
||||||
|
"sa-filters",
|
||||||
|
"simplejson",
|
||||||
|
"transaction",
|
||||||
|
"waitress",
|
||||||
|
"WebHelpers2",
|
||||||
|
"zope.sqlalchemy>=1.5",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
docs = ["Sphinx", "sphinx-rtd-theme"]
|
||||||
|
tests = ["coverage", "mock", "pytest", "pytest-cov"]
|
||||||
|
|
||||||
|
|
||||||
|
[project.entry-points."paste.app_factory"]
|
||||||
|
main = "tailbone.app:main"
|
||||||
|
webapi = "tailbone.webapi:main"
|
||||||
|
|
||||||
|
|
||||||
|
[project.entry-points."rattail.cleaners"]
|
||||||
|
beaker = "tailbone.cleanup:BeakerCleaner"
|
||||||
|
|
||||||
|
|
||||||
|
[project.entry-points."rattail.config.extensions"]
|
||||||
|
tailbone = "tailbone.config:ConfigExtension"
|
||||||
|
|
||||||
|
|
||||||
|
[project.urls]
|
||||||
|
Homepage = "https://rattailproject.org"
|
||||||
|
Repository = "https://kallithea.rattailproject.org/rattail-project/tailbone"
|
||||||
|
Issues = "https://redmine.rattailproject.org/projects/tailbone/issues"
|
||||||
|
Changelog = "https://kallithea.rattailproject.org/rattail-project/tailbone/files/master/CHANGELOG.md"
|
||||||
|
|
||||||
|
|
||||||
|
[tool.commitizen]
|
||||||
|
version_provider = "pep621"
|
||||||
|
tag_format = "v$version"
|
||||||
|
update_changelog_on_bump = true
|
||||||
|
|
||||||
|
|
||||||
|
[tool.nosetests]
|
||||||
|
nocapture = 1
|
||||||
|
cover-package = "tailbone"
|
||||||
|
cover-erase = 1
|
||||||
|
cover-html = 1
|
||||||
|
cover-html-dir = "htmlcov"
|
96
setup.cfg
96
setup.cfg
|
@ -1,96 +0,0 @@
|
||||||
|
|
||||||
[metadata]
|
|
||||||
name = Tailbone
|
|
||||||
version = 0.11.10
|
|
||||||
author = Lance Edgar
|
|
||||||
author_email = lance@edbob.org
|
|
||||||
url = http://rattailproject.org/
|
|
||||||
license = GNU GPL v3
|
|
||||||
description = Backoffice Web Application for Rattail
|
|
||||||
long_description = file: README.rst
|
|
||||||
classifiers =
|
|
||||||
Development Status :: 4 - Beta
|
|
||||||
Environment :: Web Environment
|
|
||||||
Framework :: Pyramid
|
|
||||||
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
|
|
||||||
Programming Language :: Python :: 3.6
|
|
||||||
Programming Language :: Python :: 3.7
|
|
||||||
Programming Language :: Python :: 3.8
|
|
||||||
Programming Language :: Python :: 3.9
|
|
||||||
Programming Language :: Python :: 3.10
|
|
||||||
Programming Language :: Python :: 3.11
|
|
||||||
Topic :: Internet :: WWW/HTTP
|
|
||||||
Topic :: Office/Business
|
|
||||||
Topic :: Software Development :: Libraries :: Python Modules
|
|
||||||
|
|
||||||
|
|
||||||
[options]
|
|
||||||
packages = find:
|
|
||||||
include_package_data = True
|
|
||||||
install_requires =
|
|
||||||
asgiref
|
|
||||||
colander
|
|
||||||
ColanderAlchemy
|
|
||||||
cornice
|
|
||||||
cornice-swagger
|
|
||||||
deform
|
|
||||||
humanize
|
|
||||||
Mako
|
|
||||||
markdown
|
|
||||||
openpyxl
|
|
||||||
paginate
|
|
||||||
paginate_sqlalchemy
|
|
||||||
passlib
|
|
||||||
Pillow
|
|
||||||
pyramid>=2
|
|
||||||
pyramid_beaker
|
|
||||||
pyramid_deform
|
|
||||||
pyramid_exclog
|
|
||||||
pyramid_fanstatic
|
|
||||||
pyramid_mako
|
|
||||||
pyramid_retry
|
|
||||||
pyramid_tm
|
|
||||||
rattail[db,bouncer]
|
|
||||||
sa-filters
|
|
||||||
simplejson
|
|
||||||
transaction
|
|
||||||
waitress
|
|
||||||
WebHelpers2
|
|
||||||
zope.sqlalchemy>=1.5
|
|
||||||
|
|
||||||
|
|
||||||
[options.packages.find]
|
|
||||||
exclude =
|
|
||||||
tests.*
|
|
||||||
tests
|
|
||||||
|
|
||||||
|
|
||||||
[options.extras_require]
|
|
||||||
docs = Sphinx; sphinx-rtd-theme
|
|
||||||
tests = coverage; mock; pytest; pytest-cov
|
|
||||||
|
|
||||||
|
|
||||||
[options.entry_points]
|
|
||||||
|
|
||||||
paste.app_factory =
|
|
||||||
main = tailbone.app:main
|
|
||||||
webapi = tailbone.webapi:main
|
|
||||||
|
|
||||||
rattail.cleaners =
|
|
||||||
beaker = tailbone.cleanup:BeakerCleaner
|
|
||||||
|
|
||||||
rattail.config.extensions =
|
|
||||||
tailbone = tailbone.config:ConfigExtension
|
|
||||||
|
|
||||||
|
|
||||||
[nosetests]
|
|
||||||
nocapture = 1
|
|
||||||
cover-package = tailbone
|
|
||||||
cover-erase = 1
|
|
||||||
cover-html = 1
|
|
||||||
cover-html-dir = htmlcov
|
|
14
tox.ini
14
tox.ini
|
@ -1,24 +1,12 @@
|
||||||
|
|
||||||
[tox]
|
[tox]
|
||||||
# TODO: i had to remove py36 since something (hatchling?) broke it
|
envlist = py38, py39, py310, py311
|
||||||
# somehow, and i was not able to quickly fix. as of writing only
|
|
||||||
# one app is known to run py36 and hopefully that is not for long.
|
|
||||||
envlist = py37, py38, py39, py310, py311
|
|
||||||
|
|
||||||
# TODO: can remove this when we drop py36 support
|
|
||||||
# nb. need this for testing older python versions
|
|
||||||
# https://tox.wiki/en/latest/faq.html#testing-end-of-life-python-versions
|
|
||||||
requires = virtualenv<20.22.0
|
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
deps = rattail-tempmon
|
deps = rattail-tempmon
|
||||||
extras = tests
|
extras = tests
|
||||||
commands = pytest {posargs}
|
commands = pytest {posargs}
|
||||||
|
|
||||||
[testenv:py37]
|
|
||||||
# nb. Chameleon 4.3 requires Python 3.9+
|
|
||||||
deps = Chameleon<4.3
|
|
||||||
|
|
||||||
[testenv:coverage]
|
[testenv:coverage]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
extras = tests
|
extras = tests
|
||||||
|
|
Loading…
Reference in a new issue