Skip to content

Commit 407c966

Browse files
committed
Update for new blurb repo
1 parent b1d7b54 commit 407c966

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

pyproject.toml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[build-system]
2-
build-backend = "flit_core.buildapi"
2+
build-backend = "hatchling.build"
33
requires = [
4-
"flit_core<4,>=2",
4+
"hatch-vcs",
5+
"hatchling",
56
]
67

78
[project]
@@ -30,4 +31,10 @@ Changelog = "https://github.com/python/core-workflow/tree/main/blurb#changelog"
3031
Homepage = "https://github.com/python/core-workflow/tree/main/blurb"
3132
Source = "https://github.com/python/core-workflow/tree/main/blurb"
3233
[project.scripts]
33-
blurb = "blurb:main"
34+
blurb = "blurb.blurb:main"
35+
36+
[tool.hatch]
37+
version.source = "vcs"
38+
39+
[tool.hatch.version.raw-options]
40+
local_scheme = "no-local-version"

src/blurb/__init__.py

Whitespace-only changes.
File renamed without changes.

blurb.py renamed to src/blurb/blurb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ def test(*args):
829829
# unittest.main doesn't work because this isn't a module
830830
# so we'll do it ourselves
831831

832-
while not (os.path.isdir(".git") and os.path.isdir("blurb")):
832+
while not os.path.isdir("blurb"):
833833
old_dir = os.getcwd()
834834
os.chdir("..")
835835
if old_dir == os.getcwd():

tests/test_blurb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import pytest
22
from pyfakefs.fake_filesystem import FakeFilesystem
33

4-
import blurb
4+
from blurb import blurb
55

66

77
UNCHANGED_SECTIONS = (

0 commit comments

Comments
 (0)