Skip to content

Commit

Permalink
Update for new blurb repo
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Mar 20, 2024
1 parent dcfef04 commit e33dab4
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ exclude_also =

[run]
omit =
**/blurb/__main__.py
**/src/blurb/__main__.py
13 changes: 10 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[build-system]
build-backend = "flit_core.buildapi"
build-backend = "hatchling.build"
requires = [
"flit_core<4,>=2",
"hatch-vcs",
"hatchling",
]

[project]
Expand Down Expand Up @@ -30,4 +31,10 @@ Changelog = "https://github.com/python/core-workflow/tree/main/blurb#changelog"
Homepage = "https://github.com/python/core-workflow/tree/main/blurb"
Source = "https://github.com/python/core-workflow/tree/main/blurb"
[project.scripts]
blurb = "blurb:main"
blurb = "blurb.blurb:main"

[tool.hatch]
version.source = "vcs"

[tool.hatch.version.raw-options]
local_scheme = "no-local-version"
Empty file added src/blurb/__init__.py
Empty file.
File renamed without changes.
2 changes: 1 addition & 1 deletion blurb.py → src/blurb/blurb.py
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ def test(*args):
# unittest.main doesn't work because this isn't a module
# so we'll do it ourselves

while not (os.path.isdir(".git") and os.path.isdir("blurb")):
while not os.path.isdir("blurb"):
old_dir = os.getcwd()
os.chdir("..")
if old_dir == os.getcwd():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_blurb.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
from pyfakefs.fake_filesystem import FakeFilesystem

import blurb
from blurb import blurb


UNCHANGED_SECTIONS = (
Expand Down

0 comments on commit e33dab4

Please sign in to comment.