Skip to content

Commit a4ea754

Browse files
authored
fix: making pyproject formatting optional and updating the uv installation (#97)
* fix: only running pyproject formatter when the tool is enabled * build: running edgetest * chore: bumping version to 2025.8.0
1 parent d4fdc2d commit a4ea754

File tree

6 files changed

+30
-49
lines changed

6 files changed

+30
-49
lines changed

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
author = "Akshay Gupta"
2525

2626
# The short X.Y version
27-
version = "2025.1.0"
27+
version = "2025.8.0"
2828
# The full version, including alpha/beta/rc tags
2929
release = ""
3030

edgetest/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Package initialization."""
22

3-
__version__ = "2025.1.0"
3+
__version__ = "2025.8.0"
44

55
__title__ = "edgetest"
66
__description__ = "Bleeding edge dependency testing"

edgetest/interface.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ def cli(
209209
with open(requirements, "w") as outfile:
210210
outfile.write(upgraded)
211211
# Run the formatter
212-
pyproject_fmt.run([config])
212+
if "pyproject-fmt" in parser.get("tool", {}):
213+
pyproject_fmt.run([config])
213214
else:
214215
click.echo(f"Overwriting the requirements file {requirements}...")
215216
upgraded = upgrade_requirements(

pyproject.toml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ dynamic = [
3434

3535
dependencies = [
3636
"cerberus>=1.3.0,<=1.3.7",
37-
"click>=7.0,<=8.2.0",
37+
"click>=7.0,<=8.2.1",
3838
"packaging>20.6,<=25.0",
3939
"pluggy>=1.3.0,<=1.6.0",
40-
"pyproject-fmt>=2.0.0,<=2.5.1",
40+
"pyproject-fmt>=2.0.0,<=2.6.0",
4141
"tabulate>=0.8.9,<=0.9.0",
4242
"tomlkit<=0.11.4,>=0.11.4",
43-
"uv>=0.2.0,<=0.7.4",
43+
"uv>=0.2.0,<=0.8.13",
4444
]
4545
optional-dependencies.build = [ "build", "bumpver", "twine", "wheel" ]
4646
optional-dependencies.dev = [
@@ -82,10 +82,6 @@ readme = { file = [
8282
"README.md",
8383
], content-type = "text/markdown" }
8484

85-
##############################################################################
86-
# Tooling
87-
##############################################################################
88-
8985
[tool.ruff]
9086
target-version = "py39"
9187
extend-include = [
@@ -182,7 +178,7 @@ lower = [
182178
]
183179

184180
[bumpver]
185-
current_version = "2025.1.0"
181+
current_version = "2025.8.0"
186182
version_pattern = "YYYY.MM.INC0"
187183

188184
[bumpver.file_patterns]

tests/test_integration_toml.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
2323
[edgetest]
2424
extras = ["tests"]
25+
26+
[tool.pyproject-fmt]
27+
column_width = 88
28+
indent = 4
29+
keep_full_version = true
30+
max_supported_python = "3.12"
2531
"""
2632

2733
SETUP_TOML_LOWER = """
@@ -40,6 +46,12 @@
4046
4147
[edgetest.envs.lower_env]
4248
lower = ["polars"]
49+
50+
[tool.pyproject-fmt]
51+
column_width = 88
52+
indent = 4
53+
keep_full_version = true
54+
max_supported_python = "3.12"
4355
"""
4456

4557
SETUP_TOML_EXTRAS = """
@@ -60,6 +72,12 @@
6072
[edgetest.envs.lower_env]
6173
extras = ["tests"]
6274
lower = ["scikit-learn", "polars[pyarrow]"]
75+
76+
[tool.pyproject-fmt]
77+
column_width = 88
78+
indent = 4
79+
keep_full_version = true
80+
max_supported_python = "3.12"
6381
"""
6482

6583

tests/test_interface_toml.py

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,7 @@
2020
command = "pytest tests -m 'not integration'"
2121
"""
2222

23-
SETUP_TOML_LOWER = """
24-
[project]
25-
classifiers = [
26-
"Programming Language :: Python :: 3 :: Only",
27-
"Programming Language :: Python :: 3.9",
28-
"Programming Language :: Python :: 3.10",
29-
"Programming Language :: Python :: 3.11",
30-
"Programming Language :: Python :: 3.12",
31-
"Programming Language :: Python :: 3.13",
32-
]
23+
SETUP_TOML_LOWER = """[project]
3324
dependencies = [
3425
"myupgrade<=0.1.5",
3526
"mylower<=0.1,>=0.0.1"
@@ -40,32 +31,15 @@
4031
command = "pytest tests -m 'not integration'"
4132
"""
4233

43-
SETUP_TOML_REQS = """
44-
[project]
34+
SETUP_TOML_REQS = """[project]
4535
dependencies = ["myupgrade<=0.1.5"]
4636
"""
4737

4838
SETUP_TOML_REQS_UPGRADE = """[project]
49-
classifiers = [
50-
"Programming Language :: Python :: 3 :: Only",
51-
"Programming Language :: Python :: 3.9",
52-
"Programming Language :: Python :: 3.10",
53-
"Programming Language :: Python :: 3.11",
54-
"Programming Language :: Python :: 3.12",
55-
"Programming Language :: Python :: 3.13",
56-
]
57-
dependencies = [ "myupgrade<=0.2" ]
39+
dependencies = ["myupgrade<=0.2.0"]
5840
"""
5941

6042
SETUP_TOML_EXTRAS = """[project]
61-
classifiers = [
62-
"Programming Language :: Python :: 3 :: Only",
63-
"Programming Language :: Python :: 3.9",
64-
"Programming Language :: Python :: 3.10",
65-
"Programming Language :: Python :: 3.11",
66-
"Programming Language :: Python :: 3.12",
67-
"Programming Language :: Python :: 3.13",
68-
]
6943
optional-dependencies.myextra = [ "myupgrade<=0.1.5" ]
7044
7145
[edgetest.envs.myenv]
@@ -76,15 +50,7 @@
7650

7751

7852
SETUP_TOML_EXTRAS_UPGRADE = """[project]
79-
classifiers = [
80-
"Programming Language :: Python :: 3 :: Only",
81-
"Programming Language :: Python :: 3.9",
82-
"Programming Language :: Python :: 3.10",
83-
"Programming Language :: Python :: 3.11",
84-
"Programming Language :: Python :: 3.12",
85-
"Programming Language :: Python :: 3.13",
86-
]
87-
optional-dependencies.myextra = [ "myupgrade<=0.2" ]
53+
optional-dependencies.myextra = ["myupgrade<=0.2.0"]
8854
8955
[edgetest.envs.myenv]
9056
upgrade = [ "myupgrade" ]

0 commit comments

Comments
 (0)