Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
strategy:
matrix:
py:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "pypy-3.8"
os:
- "ubuntu-20.04"
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12
architecture: x64
- run: pip install tox
- run: tox -e docs
Expand All @@ -88,7 +88,8 @@ jobs:
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9
architecture: x64
- run: pip install tox
- run: tox -e lint

5 changes: 2 additions & 3 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ formats:
- pdf
- epub
python:

install:
- method: pip
path: .
extra_requirements:
- docs
path: .[doc]
115 changes: 115 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,101 @@
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[tool.setuptools.packages.find]
where = ["src"]

[project]
name = "pyramid"
version = "2.1.dev0"
description = "The Pyramid Web Framework, a Pylons project"

authors = [
{name = "Chris McDonough, Agendaless Consulting", email = "[email protected]"},
]

# license = "BSD-derived (Repoze)"
license-files = ["LICENSE.txt"]

readme = {file = "README.rst", content-type = "text/x-rst"}

requires-python = ">=3.9"
dependencies = [
"hupper",
"plaster",
"plaster_pastedeploy",
"setuptools",
"translationstring",
"venusian",
"webob >= 1.8.3", # Accept.parse_offer
"zope.deprecation",
"zope.interface",
]

keywords = ["web", "wsgi", "pylons", "pyramid"]
classifiers = [
"Development Status :: 6 - Mature",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI",
"License :: Repoze Public License",
]

[tool.setuptools.package-data]
mypkg = ["*.txt", "*.rst"]

[project.scripts]
pserve = "pyramid.scripts.pserve:main"
pshell = "pyramid.scripts.pshell:main"
proutes = "pyramid.scripts.proutes:main"
pviews = "pyramid.scripts.pviews:main"
ptweens = "pyramid.scripts.ptweens:main"
prequest = "pyramid.scripts.prequest:main"
pdistreport = "pyramid.scripts.pdistreport:main"

[project.entry-points."paste.server_runner"]
wsgiref = "pyramid.scripts.pserve:wsgiref_server_runner"
cherrypy = "pyramid.scripts.pserve:cherrypy_server_runner"

[project.entry-points."pyramid.pshell_runner"]
python = "pyramid.scripts.pshell:python_shell_runner"


[project.urls]
Homepage = "https://trypyramid.com"
Documentation = "https://docs.pylonsproject.org/projects/pyramid/en/latest/"
Repository = "https://github.com/Pylons/pyramid"
Issues = "https://github.com/Pylons/pyramid/issues"
# add to readme somehow?
Changelog = "https://github.com/Pylons/pyramid/blob/main/CHANGES.rst"

[project.optional-dependencies]
doc = [
"sphinx >= 8",
"docutils",
"pylons-sphinx-themes >= 1.0.8", # Ethical Ads
"pylons_sphinx_latesturl",
"repoze.sphinx.autointerface",
"sphinx-copybutton",
"sphinxcontrib-autoprogram",
]
test = [
"webtest",
"zope.component",
"coverage",
"pytest",
"pytest-cov",
]


[tool.black]
line-length = 79
skip-string-normalization = true
Expand Down Expand Up @@ -35,3 +130,23 @@ no_lines_before = "THIRDPARTY"
sections = "FUTURE,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
default_section = "THIRDPARTY"
known_first_party = "pyramid"

[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-W always"
testpaths = [
"tests",
]


[tool.check-manifest]
ignore = [".gitignore",
".gitattributes",
"PKG-INFO",
"*.egg-info",
"*.egg-info/*",
]
ignore-default-rules = true
ignore-bad-ideas = "tests/pkgs/localeapp/**/*.mo"


19 changes: 0 additions & 19 deletions setup.cfg

This file was deleted.

126 changes: 0 additions & 126 deletions setup.py

This file was deleted.

10 changes: 8 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
[tox]
envlist =
lint,
py38,py39,py310,py311,py312,pypy3,
py39,py310,py311,py312,py313,pypy3,
py312-cover,coverage,
docs

isolated_build = true

[testenv]
deps =
pytest
pytest-cov
webtest
zope.component
coverage
commands =
python --version
pytest {posargs:}
Expand All @@ -16,7 +22,7 @@ extras =
setenv =
COVERAGE_FILE=.coverage.{envname}

[testenv:py312-cover]
[testenv:py313-cover]
commands =
python --version
pytest --cov {posargs:}
Expand Down