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
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build Test
on:
push:
pull_request:

jobs:
build-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Install build dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build twine
- name: Build package
run: |
python -m build
- name: Check package with twine
run: |
twine check dist/*
- name: Test installation
run: |
python -m pip install dist/*.whl
- name: Verify installation
run: |
python -c "from flask_stupe import schema_required"
47 changes: 47 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,50 @@
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "Flask-Stupe"
version = "4.4.0"
description = "a.k.a. « Flask on steroids »"
readme = "README.rst"
authors = [
{name = "Guillaume Gelin"}
]
license = {text = "MIT"}
classifiers = [
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules"
]
dependencies = [
"flask==2.1.3",
"pymongo==4.2.0",
"werkzeug==2.2.2",
"marshmallow==3.17.0",
"python-dateutil==2.9.0.post0",
]

[project.urls]
Homepage = "https://github.com/numberly/flask-stupe"

[tool.setuptools]
packages = ["flask_stupe"]
include-package-data = true
zip-safe = false
platforms = ["any"]

[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"

[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "$version"
Expand Down
18 changes: 0 additions & 18 deletions setup.cfg

This file was deleted.

45 changes: 0 additions & 45 deletions setup.py

This file was deleted.

Loading