Compare commits

...

4 Commits
v1.3 ... master

Author SHA1 Message Date
Envy_PC d060e38c32 1.41 2024-05-16 16:34:37 +09:00
R5600U_PC 5069a0ba05 del 2024-05-16 16:05:09 +09:00
R5600U_PC 306fb77e7c zip ignore 2024-05-16 16:04:47 +09:00
R5600U_PC 65a1c85faa 1.4버전 수정 2024-05-16 15:56:56 +09:00
9 changed files with 32 additions and 15 deletions

1
.gitignore vendored
View File

@ -6,6 +6,7 @@ dist/
Include/
__pycache__/
*.log
*.zip
*.log.*
pyvenv.cfg
Output/

View File

@ -1,6 +1,9 @@
import shutil
import os
from subprocess import call
import subprocess
# 가상 환경 경로 (필요에 따라 변경)
venv_path = os.path.join(os.getcwd(), 'venv')
# 삭제할 디렉토리 목록
folders_to_delete = ['build', 'dist']
@ -11,7 +14,18 @@ for folder in folders_to_delete:
shutil.rmtree(folder)
print(f"{folder} 폴더를 삭제했습니다.")
# PyInstaller 명령 실행
# 여기에서 'your_script.py'를 실제 빌드하고자 하는 스크립트의 이름으로 바꿔주세요.
# 추가 PyInstaller 옵션이 필요한 경우 이 부분에 추가합니다.
call(['pyinstaller', 'taomanXLS.spec'])
# 가상 환경 활성화 및 cx_Freeze 빌드 실행
try:
if os.name == 'nt': # Windows
activate_script = os.path.join(venv_path, 'Scripts', 'activate.bat')
# cmd 명령어를 통해 가상 환경 활성화 후 setup.py 빌드 실행
command = f'cmd /c "{activate_script} && python setup.py build"'
result = subprocess.run(command, shell=True, check=True)
print(result)
else: # Linux/Mac
activate_script = os.path.join(venv_path, 'bin', 'activate')
command = f'/bin/bash -c "source {activate_script} && python setup.py build"'
subprocess.run(command, shell=True, check=True)
except subprocess.CalledProcessError as e:
print(f"Error: {e}")

BIN
innosetup-6.2.2.exe Normal file

Binary file not shown.

View File

@ -17,7 +17,7 @@ if sys.platform == "win32":
setup(
name="taomanXLS",
version="1.2",
version="1.3",
description="Taoman_to_PercentyXLS",
options={"build_exe": build_exe_options},
executables=[Executable("taomanXLS.py", base=base, icon="taomanXLS.ico")]

View File

@ -1,7 +1,7 @@
[Setup]
; 기본 설정
; 기본 ?¤ì •
AppName=TaomanXLS
AppVersion=1.1
AppVersion=1.4
DefaultDirName={pf}\TaomanXLS
DefaultGroupName=TaomanXLS
OutputBaseFilename=TaomanXLSInstaller
@ -15,8 +15,8 @@ Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
; cx_Freeze로 생성한 파일을 모두 포함
Source: "build\exe.win-amd64-3.11\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; cx_Freezeë¡??<3F>성???Œì<C592>¼??모ë<C3AB> ?¬í•¨
Source: "build\exe.win-amd64-3.7\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
[Icons]
Name: "{group}\TaomanXLS"; Filename: "{app}\taomanXLS.exe"; WorkingDir: "{app}"

View File

@ -1,5 +1,4 @@
import sys
import os
import os, sys
import pandas as pd
import random
import configparser
@ -9,6 +8,8 @@ from PyQt5.QtWidgets import (
QSpinBox
)
from PyQt5.QtCore import Qt, QThread, pyqtSignal
import xlwings as xw # xlwings 모듈 임포트
import traceback # traceback 모듈 임포트
class CommaSpinBox(QSpinBox):
@ -62,7 +63,8 @@ class ExportThread(QThread):
if self.shuffle_title:
chunk['상품명'] = chunk['상품명'].apply(self.shuffle_title_words)
output_file = os.path.join(self.output_folder, f"percenty-{i//chunk_size + 1:02d}_{self.original_file_name}")
# output_file = os.path.join(self.output_folder, f"{self.original_file_name}_percenty-{i//chunk_size + 1:02d}")
output_file = os.path.join(self.output_folder, f"{os.path.splitext(self.original_file_name)[0]}_percenty-{i//chunk_size + 1:02d}.xlsx")
# Create a DataFrame with exactly 50 rows, filling with empty values if necessary
if len(chunk) < chunk_size:
@ -147,7 +149,7 @@ class ExcelProcessorApp(QWidget):
self.source_file_path = None
def initUI(self):
self.setWindowTitle('Excel Processor')
self.setWindowTitle('WRMC TaomanXLS')
self.setGeometry(100, 100, 300, 650)
self.setFixedSize(300, 650)
@ -240,7 +242,7 @@ class ExcelProcessorApp(QWidget):
main_layout.addLayout(log_layout)
# Footer layout with developer label
self.developer_label = QLabel('제작자: Your Name')
self.developer_label = QLabel('by 내차는 언제타냐')
main_layout.addWidget(self.developer_label, alignment=Qt.AlignCenter)
self.setLayout(main_layout)

BIN
xlwings32-0.30.9.dll Normal file

Binary file not shown.

BIN
xlwings64-0.30.9.dll Normal file

Binary file not shown.

Binary file not shown.