Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create package in-place if cwd equals package name #1089

Closed
wants to merge 1 commit into from

Conversation

Wizard1209
Copy link
Member

No description provided.

@@ -54,6 +54,8 @@ def get_package_path(package: str) -> Path:
return Path.cwd()

# NOTE: Detect existing package in current environment
if Path.cwd().name == package:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's perform this check after regular importing failed. Also, please add an entry to the changelog and run make docs.

@droserasprout droserasprout changed the title Fixed: new command init project in current package Create package in-place if cwd equals package name Aug 20, 2024
@droserasprout droserasprout added the bug Something isn't working label Aug 20, 2024
@droserasprout droserasprout added this to the 8.0.0 milestone Aug 20, 2024
@Wizard1209 Wizard1209 closed this Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants