Skip to content

Commit 20330df

Browse files
committed
build: use pyproject.toml
1 parent dc051a9 commit 20330df

File tree

3 files changed

+90
-45
lines changed

3 files changed

+90
-45
lines changed

.github/workflows/build.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build Test
2+
on:
3+
push:
4+
pull_request:
5+
6+
jobs:
7+
build-test:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: ["3.12"]
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v3
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
23+
- name: Install build dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
python -m pip install build twine
27+
28+
- name: Build package
29+
run: |
30+
python -m build
31+
32+
- name: Check package with twine
33+
run: |
34+
twine check dist/*
35+
36+
- name: Test installation
37+
run: |
38+
python -m pip install dist/*.whl
39+
40+
- name: Verify installation
41+
run: |
42+
python -c "from flask_stupe import schema_required"

pyproject.toml

+48
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,51 @@
1+
[build-system]
2+
requires = ["setuptools>=42", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "Flask-Stupe"
7+
version = "4.4.0"
8+
description = "a.k.a. « Flask on steroids »"
9+
readme = "README.rst"
10+
authors = [
11+
{name = "Guillaume Gelin"}
12+
]
13+
license = {text = "MIT"}
14+
classifiers = [
15+
"Environment :: Web Environment",
16+
"Intended Audience :: Developers",
17+
"Operating System :: OS Independent",
18+
"Programming Language :: Python :: 3",
19+
"Programming Language :: Python :: 3.8",
20+
"Programming Language :: Python :: 3.9",
21+
"Programming Language :: Python :: 3.10",
22+
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12",
24+
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
25+
"Topic :: Software Development :: Libraries :: Python Modules"
26+
]
27+
requires-python = ">=3.8"
28+
dependencies = [
29+
"flask==2.1.3",
30+
"pymongo==4.2.0",
31+
"werkzeug==2.2.2",
32+
"marshmallow==3.17.0",
33+
"python-dateutil==2.9.0.post0",
34+
]
35+
36+
[project.urls]
37+
Homepage = "https://github.com/numberly/flask-stupe"
38+
39+
[tool.setuptools]
40+
packages = ["flask_stupe"]
41+
include-package-data = true
42+
zip-safe = false
43+
platforms = ["any"]
44+
45+
[tool.pytest.ini_options]
46+
testpaths = ["tests"]
47+
python_files = "test_*.py"
48+
149
[tool.commitizen]
250
name = "cz_conventional_commits"
351
tag_format = "$version"

setup.py

-45
This file was deleted.

0 commit comments

Comments
 (0)