cursor-boilerplate 0.1.2__py3-none-any.whl → 0.3.0__py3-none-any.whl

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.
cursor_boilerplate/cli.py CHANGED
@@ -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)}")
@@ -0,0 +1,91 @@
1
+ Metadata-Version: 2.4
2
+ Name: cursor-boilerplate
3
+ Version: 0.3.0
4
+ Summary: A boilerplate project for Cursor IDE
5
+ Author-email: Your Name <your.email@example.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/yourusername/cursor-boilerplate
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.6
11
+ Description-Content-Type: text/markdown
12
+ Requires-Dist: click
13
+ Requires-Dist: build
14
+ Requires-Dist: twine
15
+
16
+ # Cursor Boilerplate
17
+
18
+ Cursor IDE를 위한 보일러플레이트 프로젝트 생성기입니다. 이 패키지는 새로운 Cursor IDE 프로젝트를 쉽게 생성할 수 있도록 도와줍니다.
19
+
20
+ ## 설치하기
21
+
22
+ ```bash
23
+ uv pip install cursor-boilerplate
24
+ ```
25
+
26
+ ## 사용하기
27
+
28
+ ### 기본 사용법
29
+
30
+ 새로운 프로젝트를 생성하려면:
31
+
32
+ ```bash
33
+ cursor-boilerplate my-project-name
34
+ ```
35
+
36
+ 이 명령어는 현재 디렉토리에 `my-project-name` 폴더를 생성하고, 필요한 `.cursor` 설정 파일들을 자동으로 복사합니다.
37
+
38
+ ### 특정 경로에 프로젝트 생성하기
39
+
40
+ 원하는 경로에 프로젝트를 생성하려면:
41
+
42
+ ```bash
43
+ cursor-boilerplate my-project-name --path /원하는/경로
44
+ ```
45
+
46
+ 예시:
47
+ ```bash
48
+ cursor-boilerplate my-project --path ~/projects/
49
+ ```
50
+
51
+ ## 기능
52
+
53
+ - 새로운 프로젝트 디렉토리 자동 생성
54
+ - Cursor IDE 설정 파일 자동 복사
55
+ - 원하는 경로에 프로젝트 생성 가능
56
+ - 간단한 CLI 인터페이스
57
+
58
+ ## 라이센스
59
+
60
+ MIT License
61
+
62
+ ## 개발자 가이드
63
+
64
+ ### 개발 환경 설정
65
+
66
+ ```bash
67
+ uv pip install -e .
68
+ ```
69
+
70
+ ### 패키지 빌드 및 배포
71
+
72
+ 1. 기존 빌드 파일 삭제:
73
+ ```bash
74
+ rm -rf dist/ build/ cursor_boilerplate.egg-info/
75
+ ```
76
+
77
+ 2. 패키지 빌드 및 PyPI 업로드:
78
+ ```bash
79
+ python -m build
80
+ twine upload dist/*
81
+ ```
82
+
83
+ ## 의존성
84
+
85
+ - click: CLI 인터페이스 구현
86
+ - build: 패키지 빌드
87
+ - twine: PyPI 업로드
88
+
89
+ ## 라이센스
90
+
91
+ MIT
@@ -0,0 +1,7 @@
1
+ cursor_boilerplate/__init__.py,sha256=fNOyX5PWOth_NRK0jMtT8zTeiViIztHHz0FylQfqRzQ,22
2
+ cursor_boilerplate/cli.py,sha256=9i1IEZcaIpFr3tFX3lereiYMjW2F2J7N4CyJcjMNjg8,1506
3
+ cursor_boilerplate-0.3.0.dist-info/METADATA,sha256=YNE4NaOM5sDgzuN5dOFgcSYzjZUxT1wuJ0WUiEJ7zB0,1898
4
+ cursor_boilerplate-0.3.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
5
+ cursor_boilerplate-0.3.0.dist-info/entry_points.txt,sha256=gD8ysizP4178GaTgjq9pSphgrTkKaZxOAvMEovAmB7E,67
6
+ cursor_boilerplate-0.3.0.dist-info/top_level.txt,sha256=y8dzxEXg0CC4ruHYL8vncncXIsOpqUqGV-8kqErgMHU,19
7
+ cursor_boilerplate-0.3.0.dist-info/RECORD,,
@@ -1,72 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: cursor-boilerplate
3
- Version: 0.1.2
4
- Summary: A boilerplate project for Cursor IDE
5
- Author-email: Your Name <your.email@example.com>
6
- License: MIT
7
- Project-URL: Homepage, https://github.com/yourusername/cursor-boilerplate
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: Operating System :: OS Independent
10
- Requires-Python: >=3.6
11
- Description-Content-Type: text/markdown
12
- Requires-Dist: click
13
- Requires-Dist: build
14
- Requires-Dist: twine
15
-
16
- # Cursor Boilerplate
17
-
18
- Cursor IDE를 위한 보일러플레이트 프로젝트 생성기입니다.
19
-
20
- ## 설치 방법
21
-
22
- ```bash
23
- pip install cursor-boilerplate
24
- ```
25
-
26
- ## 사용 방법
27
-
28
- ```bash
29
- cursor-boilerplate my-project-name
30
- ```
31
-
32
- 또는 특정 경로에 프로젝트를 생성하려면:
33
-
34
- ```bash
35
- cursor-boilerplate my-project-name --path /path/to/directory
36
- ```
37
-
38
- ## 개발자 가이드
39
-
40
- ### 개발 환경 설정
41
-
42
- ```bash
43
- uv pip install -e .
44
- ```
45
-
46
- ### 패키지 빌드 및 배포
47
-
48
- 1. 패키지 빌드:
49
- ```bash
50
- python -m build
51
- ```
52
-
53
- 2. PyPI에 업로드:
54
- ```bash
55
- twine upload dist/*
56
- ```
57
-
58
- ## 기능
59
-
60
- - 새로운 프로젝트 디렉토리 생성
61
- - .cursor 디렉토리 및 파일 자동 복사
62
- - 사용자 지정 경로 지원
63
-
64
- ## 의존성
65
-
66
- - click: CLI 인터페이스 구현
67
- - build: 패키지 빌드
68
- - twine: PyPI 업로드
69
-
70
- ## 라이센스
71
-
72
- MIT
@@ -1,7 +0,0 @@
1
- cursor_boilerplate/__init__.py,sha256=fNOyX5PWOth_NRK0jMtT8zTeiViIztHHz0FylQfqRzQ,22
2
- cursor_boilerplate/cli.py,sha256=96l8Z0pp8eZ8pHCSJo1tnBkKAKHUGbKdwiJ60APNDDA,1529
3
- cursor_boilerplate-0.1.2.dist-info/METADATA,sha256=X6wfIHifB3shvCNGR5TuDuNiQNWtqAzw9X1w-E9_CM4,1307
4
- cursor_boilerplate-0.1.2.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
5
- cursor_boilerplate-0.1.2.dist-info/entry_points.txt,sha256=gD8ysizP4178GaTgjq9pSphgrTkKaZxOAvMEovAmB7E,67
6
- cursor_boilerplate-0.1.2.dist-info/top_level.txt,sha256=y8dzxEXg0CC4ruHYL8vncncXIsOpqUqGV-8kqErgMHU,19
7
- cursor_boilerplate-0.1.2.dist-info/RECORD,,