Skip to content

Commit 524c4ba

Browse files
committed
fix: Ensure urls appear in pypi.
1 parent 207c3d8 commit 524c4ba

File tree

2 files changed

+3
-37
lines changed

2 files changed

+3
-37
lines changed

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ authors = [
66
{name = "Daniel Edgecombe", email = "[email protected]"},
77
]
88
license = "Apache-2.0"
9-
repository="https://github.com/NRWLDev/fastapi-problem/"
10-
homepage="https://github.com/NRWLDev/fastapi-problem/"
119
readme = "README.md"
1210
requires-python = ">=3.9"
1311
keywords = ["exception", "handler", "webdev", "starlette"]
@@ -22,14 +20,16 @@ classifiers = [
2220
"Framework :: FastAPI",
2321
"Programming Language :: Python",
2422
"Programming Language :: Python :: 3 :: Only",
25-
"Programming Language :: Python :: 3.8",
2623
"Programming Language :: Python :: 3.9",
2724
"Programming Language :: Python :: 3.10",
2825
"Programming Language :: Python :: 3.11",
2926
"Programming Language :: Python :: 3.12",
3027
"Programming Language :: Python :: 3",
3128
]
3229

30+
[project.urls]
31+
homepage="https://github.com/NRWLDev/fastapi-problem/"
32+
3333
dependencies = [
3434
"rfc9457 >= 0.1.1",
3535
"starlette_problem >=0.12.0",

tasks.py

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,43 +5,9 @@
55
$ invoke --list
66
"""
77

8-
import subprocess
9-
108
import invoke
119

1210

13-
def current_branch():
14-
"""Get the current branch from git cli using subprocess."""
15-
try:
16-
rev_parse_out = (
17-
subprocess.check_output(
18-
[
19-
"git",
20-
"rev-parse",
21-
"--tags",
22-
"--abbrev-ref",
23-
"HEAD",
24-
],
25-
stderr=subprocess.STDOUT,
26-
)
27-
.decode()
28-
.strip()
29-
.split("\n")
30-
)
31-
except subprocess.CalledProcessError as e:
32-
msg = "Could not get current branch name."
33-
raise invoke.exceptions.Exit(msg) from e
34-
35-
return rev_parse_out[-1]
36-
37-
38-
def enforce_branch(branch_name):
39-
"""Enforce that the current branch matches the supplied branch_name."""
40-
if current_branch() != branch_name:
41-
msg = f"Command can not be run outside of {branch_name}."
42-
raise invoke.exceptions.Exit(msg)
43-
44-
4511
@invoke.task
4612
def install(context):
4713
"""Install production requirements."""

0 commit comments

Comments
 (0)