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

Hyphens vs underscores: the bug reported in #127. #128

Merged
merged 7 commits into from
Oct 24, 2023

Conversation

samcunliffe
Copy link
Member

Cheers @matt-graham. Good spot.

@samcunliffe samcunliffe marked this pull request as ready for review July 31, 2023 11:10
@samcunliffe samcunliffe force-pushed the sc/127-underscores-and-hyphens branch from fb0c914 to f246172 Compare July 31, 2023 11:10
@samcunliffe samcunliffe changed the title Tweak the test to reproduce the bug reported in #127. Hyphens vs underscores: the bug reported in #127. Jul 31, 2023
cookiecutter.json Outdated Show resolved Hide resolved
tests/conftest.py Outdated Show resolved Hide resolved
cookiecutter.json Outdated Show resolved Hide resolved
tests/test_package_gen.py Outdated Show resolved Hide resolved
samcunliffe and others added 3 commits August 4, 2023 13:39
Or at least, solves the bug part of #127.
@samcunliffe samcunliffe force-pushed the sc/127-underscores-and-hyphens branch from 609ce66 to 9565d46 Compare August 4, 2023 12:39
@paddyroddy
Copy link
Member

@samcunliffe what's happening with this?

@samcunliffe
Copy link
Member Author

samcunliffe commented Sep 29, 2023

@paddyroddy sorry... my bad. I let it go a bit stale.

There are some action items for me from the comments above:

  • slug module → package in variable names and everywhere
  • (consensus seems to be) add an __init__.py

samcunliffe added a commit that referenced this pull request Oct 24, 2023
Decided to put __init__.py and rename 'module_name' to 'package_name'
because it's a package. If advanced users want to make a namespace
package then they can just remove __init__.py. Keep project_slug as the
pip/pypi/repo name.
Decided to put __init__.py and rename 'module_name' to 'package_name'
because it's a package. If advanced users want to make a namespace
package then they can just remove __init__.py. Keep project_slug as the
pip/pypi/repo name.
@samcunliffe
Copy link
Member Author

Sorry for being slow.

@samcunliffe samcunliffe linked an issue Oct 24, 2023 that may be closed by this pull request
@paddyroddy
Copy link
Member

Can you resolve conflicts before review @samcunliffe?

@paddyroddy paddyroddy marked this pull request as draft October 24, 2023 13:29
@samcunliffe
Copy link
Member Author

Can you resolve conflicts before review @samcunliffe?

I did at the time of requesting. But there's too much development velocity here.

@paddyroddy
Copy link
Member

I did at the time of requesting. But there's too much development velocity here.

Don't hate the player, hate the game

@samcunliffe samcunliffe marked this pull request as ready for review October 24, 2023 13:52
Copy link
Member

@paddyroddy paddyroddy left a comment

Choose a reason for hiding this comment

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

Looks good @samcunliffe

@samcunliffe samcunliffe merged commit ffb394c into main Oct 24, 2023
8 checks passed
@samcunliffe samcunliffe deleted the sc/127-underscores-and-hyphens branch October 24, 2023 15:42
@samcunliffe
Copy link
Member Author

Merging before I get overtaken by development velocity. @p-j-smith @matt-graham please shout if you want to revisit anything here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improving default for project_slug
4 participants