Skip to content

Commit

Permalink
Import rmtree
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwinvis committed Feb 21, 2024
1 parent 6409676 commit f5c7924
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import shlex
from functools import partial
from pathlib import Path
from shutil import rmdir
from shutil import rmtree

import nox
from nox_pdm import session
Expand Down Expand Up @@ -242,8 +242,8 @@ def release_tests(session, dist_type):
def release_clean(session):
"""Remove build and dist directories"""
session.log("Removing build and dist")
rmdir("./build/")
rmdir("./dist/")
rmtree("./build/")
rmtree("./dist/")


@session(name="release-build")
Expand Down

0 comments on commit f5c7924

Please sign in to comment.