apdev 0.1.2__tar.gz → 0.1.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apdev
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: Shared development tools for Python projects - character validation, circular import detection, and more
5
5
  Author-email: aipartnerup <tercel.yi@gmail.com>
6
6
  License: Apache-2.0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "apdev"
7
- version = "0.1.2"
7
+ version = "0.1.4"
8
8
  description = "Shared development tools for Python projects - character validation, circular import detection, and more"
9
9
  readme = "README.md"
10
10
  license = {text = "Apache-2.0"}
@@ -1,3 +1,3 @@
1
1
  """apdev - Shared development tools for Python projects."""
2
2
 
3
- __version__ = "0.1.2"
3
+ __version__ = "0.1.4"
@@ -4,7 +4,7 @@
4
4
  # Example: ./release.sh 0.2.0
5
5
  #
6
6
  # Auto-detects project name from pyproject.toml and GitHub repo from git remote.
7
- # Override with environment variables: PROJECT_NAME, GITHUB_REPO
7
+ # Override with environment variables: PROJECT_NAME, PACKAGE_NAME, GITHUB_REPO
8
8
 
9
9
  # Note: set -e is disabled to allow step-by-step execution
10
10
  # Individual steps will handle their own error handling
@@ -27,6 +27,11 @@ if [ -z "$PROJECT_NAME" ]; then
27
27
  fi
28
28
  fi
29
29
 
30
+ # Determine Python package (import) name
31
+ if [ -z "$PACKAGE_NAME" ]; then
32
+ PACKAGE_NAME="${PROJECT_NAME//-/_}"
33
+ fi
34
+
30
35
  # Auto-detect GitHub repo from git remote (unless set via env)
31
36
  if [ -z "$GITHUB_REPO" ]; then
32
37
  REMOTE_URL=$(git remote get-url origin 2>/dev/null)
@@ -166,7 +171,7 @@ step1_version_verification() {
166
171
  echo -e "${BLUE}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
167
172
 
168
173
  PYPROJECT_VERSION=$(grep -E '^version = ' pyproject.toml | sed 's/version = "\(.*\)"/\1/')
169
- INIT_VERSION=$(grep -E '^__version__ = ' src/${PROJECT_NAME}/__init__.py | sed 's/__version__ = "\(.*\)"/\1/')
174
+ INIT_VERSION=$(grep -E '^__version__ = ' src/${PACKAGE_NAME}/__init__.py | sed 's/__version__ = "\(.*\)"/\1/')
170
175
 
171
176
  echo -e " pyproject.toml: ${CYAN}${PYPROJECT_VERSION}${NC}"
172
177
  echo -e " __init__.py: ${CYAN}${INIT_VERSION}${NC}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apdev
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: Shared development tools for Python projects - character validation, circular import detection, and more
5
5
  Author-email: aipartnerup <tercel.yi@gmail.com>
6
6
  License: Apache-2.0
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes