Skip to content

Commit f7f99c9

Browse files
committed
Update publish workflow
1 parent a0a3920 commit f7f99c9

File tree

6 files changed

+42
-119
lines changed

6 files changed

+42
-119
lines changed

.github/workflows/test-lib-building.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,20 @@ jobs:
2121
with:
2222
python-version: 3.11
2323

24+
- name: Clear pip and cibuildwheel caches
25+
run: |
26+
python -m pip cache purge
27+
rm -rf ~/.cache/pip
28+
rm -rf ~/.cache/cibuildwheel
29+
2430
- name: Install build tools and test dependencies
2531
run: pip install build pytest cython cibuildwheel typing_extensions
2632

2733
- name: Build wheel with cibuildwheel
2834
env:
2935
CIBW_BUILD: cp311-*
36+
PIP_NO_CACHE_DIR: "off"
37+
CIBW_CACHE_DIR: "/dev/null"
3038
run: cibuildwheel --output-dir wheelhouse
3139

3240
- name: Install built library

.github/workflows/test-publish-to-pypi.yaml

Lines changed: 0 additions & 87 deletions
This file was deleted.

flask_inputfilter/Validator/IsIntegerValidator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ def __init__(self, error_message: Optional[str] = None) -> None:
1515
def validate(self, value: Any) -> None:
1616
if not isinstance(value, int):
1717
raise ValidationError(
18-
self.error_message or f"Value '{value}' is not an integer."
18+
self.error_message or f"Value '{value}' is not an integer. "
1919
)

pyproject.toml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,39 @@
11
[build-system]
2-
requires = ["setuptools", "wheel", "Cython"]
2+
requires = ["setuptools", "wheel", "cython"]
33
build-backend = "setuptools.build_meta"
44

5+
[project]
6+
name = "flask_inputfilter"
7+
version = "0.2.0a1"
8+
authors = [
9+
{ name = "Leander Cain Slotosch", email = "[email protected]" }
10+
]
11+
description = "A library to filter and validate input data in Flask applications"
12+
readme = "README.rst"
13+
license = { file="LICENSE" }
14+
requires-python = ">=3.7"
15+
dependencies = [
16+
"flask>=2.1",
17+
"pillow>=8.0.0",
18+
"requests>=2.22.0",
19+
"typing_extensions>=3.6.2"
20+
]
21+
classifiers = [
22+
"Operating System :: OS Independent",
23+
"Programming Language :: Python :: 3.14",
24+
"Programming Language :: Python :: 3.13",
25+
"Programming Language :: Python :: 3.12",
26+
"Programming Language :: Python :: 3.11",
27+
"Programming Language :: Python :: 3.10",
28+
"Programming Language :: Python :: 3.9",
29+
"Programming Language :: Python :: 3.8",
30+
"Programming Language :: Python :: 3.7",
31+
]
32+
33+
[project.urls]
34+
Documentation = "https://leandercs.github.io/flask-inputfilter"
35+
Source = "https://github.com/LeanderCS/flask-inputfilter"
36+
537
[tool.black]
638
line-length = 79
739

setup.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,8 @@
22
from setuptools import Extension, find_packages, setup
33

44
setup(
5-
name="flask_inputfilter",
6-
version="0.2.0a1",
7-
author="Leander Cain Slotosch",
8-
author_email="[email protected]",
9-
description="A library to filter and validate input data in "
10-
"Flask applications",
115
long_description=open("README.rst").read(),
126
long_description_content_type="text/x-rst",
13-
url="https://github.com/LeanderCS/flask-inputfilter",
147
packages=find_packages(
158
include=["flask_inputfilter", "flask_inputfilter.*"]
169
),
@@ -24,26 +17,4 @@
2417
),
2518
package_data={"flask_inputfilter": ["*.pyx", "*.py"]},
2619
include_package_data=True,
27-
install_requires=[
28-
"flask>=2.1",
29-
"pillow>=8.0.0",
30-
"requests>=2.22.0",
31-
"typing_extensions>=3.6.2",
32-
],
33-
classifiers=[
34-
"Operating System :: OS Independent",
35-
"Programming Language :: Python :: 3.14",
36-
"Programming Language :: Python :: 3.13",
37-
"Programming Language :: Python :: 3.12",
38-
"Programming Language :: Python :: 3.11",
39-
"Programming Language :: Python :: 3.10",
40-
"Programming Language :: Python :: 3.9",
41-
"Programming Language :: Python :: 3.8",
42-
"Programming Language :: Python :: 3.7",
43-
],
44-
python_requires=">=3.7",
45-
project_urls={
46-
"Documentation": "https://leandercs.github.io/flask-inputfilter",
47-
"Source": "https://github.com/LeanderCS/flask-inputfilter",
48-
},
4920
)

test/test_validator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,6 @@ def test_is_integer_validator(self) -> None:
909909
"""
910910
Test that IsIntegerValidator validates integer type.
911911
"""
912-
913912
self.inputFilter.add("age", validators=[IsIntegerValidator()])
914913

915914
self.inputFilter.validateData({"age": 25})

0 commit comments

Comments
 (0)