cursor-boilerplate 0.2.0__tar.gz → 0.5.0__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: cursor-boilerplate
3
- Version: 0.2.0
3
+ Version: 0.5.0
4
4
  Summary: A boilerplate project for Cursor IDE
5
5
  Author-email: Your Name <your.email@example.com>
6
6
  License: MIT
@@ -1,7 +1,7 @@
1
1
  import os
2
2
  import shutil
3
3
  import click
4
- import pkg_resources
4
+ import importlib.resources
5
5
 
6
6
  @click.command()
7
7
  @click.argument('project_name')
@@ -18,17 +18,15 @@ def main(project_name, path):
18
18
  os.makedirs(cursor_dir, exist_ok=True)
19
19
 
20
20
  # 패키지의 .cursor 디렉토리 경로 가져오기
21
- package_dir = pkg_resources.resource_filename('cursor_boilerplate', '')
22
- current_cursor_dir = os.path.join(package_dir, '.cursor')
23
-
24
- # 현재 디렉토리의 .cursor 파일들을 복사
25
- for item in os.listdir(current_cursor_dir):
26
- src = os.path.join(current_cursor_dir, item)
27
- dst = os.path.join(cursor_dir, item)
28
- if os.path.isfile(src):
29
- shutil.copy2(src, dst)
30
- elif os.path.isdir(src):
31
- shutil.copytree(src, dst)
21
+ with importlib.resources.path('cursor_boilerplate', '.cursor') as current_cursor_dir:
22
+ # 현재 디렉토리의 .cursor 파일들을 복사
23
+ for item in os.listdir(current_cursor_dir):
24
+ src = os.path.join(current_cursor_dir, item)
25
+ dst = os.path.join(cursor_dir, item)
26
+ if os.path.isfile(src):
27
+ shutil.copy2(src, dst)
28
+ elif os.path.isdir(src):
29
+ shutil.copytree(src, dst)
32
30
 
33
31
  click.echo(f"프로젝트 '{project_name}'이 성공적으로 생성되었습니다.")
34
32
  click.echo(f"경로: {os.path.abspath(project_path)}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cursor-boilerplate
3
- Version: 0.2.0
3
+ Version: 0.5.0
4
4
  Summary: A boilerplate project for Cursor IDE
5
5
  Author-email: Your Name <your.email@example.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "cursor-boilerplate"
7
- version = "0.2.0"
7
+ version = "0.5.0"
8
8
  description = "A boilerplate project for Cursor IDE"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.6"