Skip to content

Commit

Permalink
Move to src/ layout
Browse files Browse the repository at this point in the history
This ensures that tests are executed against the installed copy, rather
than the in-tree copy.
  • Loading branch information
pradyunsg committed Dec 7, 2022
1 parent f8c74ec commit 16d82cf
Show file tree
Hide file tree
Showing 16 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

ABOUT = {}
_BASE_DIR = os.path.join(os.path.dirname(__file__), os.pardir)
with open(os.path.join(_BASE_DIR, "packaging", "__init__.py")) as f:
with open(os.path.join(_BASE_DIR, "src", "packaging", "__init__.py")) as f:
exec(f.read(), ABOUT)

# -- General configuration ----------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def coverage(*args):
coverage(
"run",
"--source",
"packaging/",
"packaging",
"-m",
"pytest",
"--strict-markers",
Expand Down Expand Up @@ -95,7 +95,7 @@ def docs(session):
@nox.session
def release(session):
package_name = "packaging"
version_file = Path(f"{package_name}/__init__.py")
version_file = Path(f"src/{package_name}/__init__.py")
changelog_file = Path("CHANGELOG.rst")

try:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 16d82cf

Please sign in to comment.