Skip to content

Commit

Permalink
Revert "Added packaging (pip install https://github.com/pyinstaller/p…
Browse files Browse the repository at this point in the history
…yinstaller/archive/develop.tar.gz for workaround)"

This reverts commit 8cc56ea.

Also, don't revert what should have been done anyway
  • Loading branch information
ojomio committed Dec 5, 2020
1 parent adf8812 commit 39f14c4
Show file tree
Hide file tree
Showing 32 changed files with 7 additions and 127 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea
print/target
__pycache__
build
dist
*.bak
File renamed without changes.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

PHONY: gui

gui: print/src/main/python/qt/*.py
gui: qt/*.py

%.py: %.ui
pyuic5 $< > $@
Expand All @@ -16,6 +16,3 @@ lint:
pretty:
black --target-version py38 --skip-string-normalization --line-length=100 $(CODE)
isort $(CODE)

build-installer:
cd print && fbs freeze && fbs installer
89 changes: 1 addition & 88 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 3 additions & 7 deletions print/src/main/python/main.py → print.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from typing import Optional

import openpyxl
from fbs_runtime.application_context.PyQt5 import ApplicationContext
from openpyxl.styles import Alignment, Font, PatternFill
from openpyxl.utils import coordinate_to_tuple, get_column_letter
from openpyxl.utils.units import cm_to_dxa, points_to_pixels, cm_to_EMU, EMU_to_inch
Expand All @@ -15,7 +14,7 @@
from PyQt5.QtGui import QColor, QDesktopServices
from PyQt5.QtWidgets import QFileDialog, QTableWidgetItem

from print.src.main.python.qt import mainwindow # Это наш конвертированный файл дизайна
from qt import mainwindow # Это наш конвертированный файл дизайна

WIDTH_CM_LIST = [2.11, 1.21, 1.08, 0.94, 1.19, 0.94, 6.06, 10.35]
HEIGHT_CM_LIST = [0.51] * 8 + [0.35, 4.71]
Expand Down Expand Up @@ -168,13 +167,10 @@ def to_widget_coords(row, col):


def main():
appctxt = ApplicationContext() # 1. Instantiate ApplicationContext

app = QtWidgets.QApplication(sys.argv) # Новый экземпляр QApplication
window = ExampleApp() # Создаём объект класса ExampleApp
window.show() # Показываем окно

exit_code = appctxt.app.exec_() # 2. Invoke appctxt.app.exec_()
sys.exit(exit_code)
app.exec_() # и запускаем приложение


if __name__ == '__main__': # Если мы запускаем файл напрямую, а не импортируем
Expand Down
Empty file removed print/__init__.py
Empty file.
Empty file removed print/src/__init__.py
Empty file.
6 changes: 0 additions & 6 deletions print/src/build/settings/base.json

This file was deleted.

6 changes: 0 additions & 6 deletions print/src/build/settings/linux.json

This file was deleted.

3 changes: 0 additions & 3 deletions print/src/build/settings/mac.json

This file was deleted.

Empty file removed print/src/main/__init__.py
Empty file.
11 changes: 0 additions & 11 deletions print/src/main/icons/README.md

This file was deleted.

Binary file removed print/src/main/icons/base/16.png
Binary file not shown.
Binary file removed print/src/main/icons/base/24.png
Binary file not shown.
Binary file removed print/src/main/icons/base/32.png
Binary file not shown.
Binary file removed print/src/main/icons/base/48.png
Binary file not shown.
Binary file removed print/src/main/icons/base/64.png
Binary file not shown.
Binary file removed print/src/main/icons/linux/1024.png
Binary file not shown.
Binary file removed print/src/main/icons/linux/128.png
Binary file not shown.
Binary file removed print/src/main/icons/linux/256.png
Binary file not shown.
Binary file removed print/src/main/icons/linux/512.png
Binary file not shown.
Binary file removed print/src/main/icons/mac/1024.png
Binary file not shown.
Binary file removed print/src/main/icons/mac/128.png
Binary file not shown.
Binary file removed print/src/main/icons/mac/256.png
Binary file not shown.
Binary file removed print/src/main/icons/mac/512.png
Binary file not shown.
Empty file removed print/src/main/python/__init__.py
Empty file.
Empty file.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ python = "~3.8"
"Qt5.py" = "^0.1.0"
PyQt5 = "^5.15.1"
openpyxl = "^3.0.5"
fbs = "^0.9.0"

[tool.poetry.dev-dependencies]
black = "^20.8b1"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 39f14c4

Please sign in to comment.