gc-server3 1 year ago
parent
commit
52470ae074
8 changed files with 57 additions and 4 deletions
  1. 1 0
      .gitignore
  2. 1 3
      .vscode/settings.json
  3. 1 0
      c11.bat
  4. 1 0
      db.bat
  5. BIN
      favicon.ico
  6. 4 0
      gctools.bat
  7. 45 0
      gctools.spec
  8. 4 1
      requirements.txt

+ 1 - 0
.gitignore

@@ -3,3 +3,4 @@ build/
 venv/
 .venv/
 cognos7/data/mdl/F_Belege_SKR_SKR_Boettche.mdl
+dist/gctools.7z

+ 1 - 3
.vscode/settings.json

@@ -3,11 +3,9 @@
         "editor.defaultFormatter": "ms-python.black-formatter",
         "editor.formatOnSave": true
     },
+    "black-formatter.args": ["--line-length", "120"],
     "python.testing.pytestEnabled": false,
     "python.testing.unittestEnabled": true,
-    "python.linting.pylintEnabled": false,
-    "python.linting.flake8Enabled": true,
-    "python.linting.enabled": true,
     "files.associations": {
         "*.mac": "vbs"
     }

+ 1 - 0
c11.bat

@@ -1,3 +1,4 @@
 cd /d %~dp0
+call venv\Scripts\activate.bat
 pyinstaller -F --path %~dp0 c11.py
 pause

+ 1 - 0
db.bat

@@ -1,3 +1,4 @@
 cd /d %~dp0
+call venv\Scripts\activate.bat
 pyinstaller -F --path %~dp0 db.py
 pause

BIN
favicon.ico


+ 4 - 0
gctools.bat

@@ -0,0 +1,4 @@
+cd /d %~dp0
+call venv\Scripts\activate.bat
+pyinstaller -F --path %~dp0 --icon favicon.ico gctools.py
+pause

+ 45 - 0
gctools.spec

@@ -0,0 +1,45 @@
+# -*- mode: python ; coding: utf-8 -*-
+
+
+block_cipher = None
+
+
+a = Analysis(
+    ['gctools.py'],
+    pathex=['C:\\Projekte\\tools\\'],
+    binaries=[],
+    datas=[],
+    hiddenimports=[],
+    hookspath=[],
+    hooksconfig={},
+    runtime_hooks=[],
+    excludes=[],
+    win_no_prefer_redirects=False,
+    win_private_assemblies=False,
+    cipher=block_cipher,
+    noarchive=False,
+)
+pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
+
+exe = EXE(
+    pyz,
+    a.scripts,
+    a.binaries,
+    a.zipfiles,
+    a.datas,
+    [],
+    name='gctools',
+    debug=False,
+    bootloader_ignore_signals=False,
+    strip=False,
+    upx=True,
+    upx_exclude=[],
+    runtime_tmpdir=None,
+    console=True,
+    disable_windowed_traceback=False,
+    argv_emulation=False,
+    target_arch=None,
+    codesign_identity=None,
+    entitlements_file=None,
+    icon=['favicon.ico'],
+)

+ 4 - 1
requirements.txt

@@ -3,12 +3,15 @@ beautifulsoup4
 jinja2
 lxml
 numpy
+openpyxl
 pandas
 pdfplumber
 plac
 pyinstaller
 pyodbc
 pypdf2
+pywin32
 requests
 requests_toolbelt
-sqlalchemy
+sqlalchemy
+xlrd