Uninstall dev dependencies during packaging

This commit is contained in:
Dan Yeaw 2021-08-14 19:51:37 -04:00
parent 36e7af17c8
commit ba91cb9687
No known key found for this signature in database
GPG Key ID: 42239C515C9B9841
3 changed files with 42 additions and 37 deletions

View File

@ -191,9 +191,7 @@ jobs:
- name: Create Windows Installers
run: |
poetry run poe dist
poetry run poe gaphor-script
poetry run poe version-file
poetry run poe pyinstall
poetry run poe package
poetry run poe win-installer
- name: Sign Executables
env:
@ -212,13 +210,11 @@ jobs:
Remove-Item 'certificate.pfx'
- name: Upload gaphor-${{ steps.meta.outputs.version }}-installer.exe
uses: actions/upload-artifact@v2
if: env.SECRETS_AVAILABLE != null
with:
name: gaphor-${{ steps.meta.outputs.version }}-installer.exe
path: packaging/dist/gaphor-${{ steps.meta.outputs.version }}-installer.exe
- name: Upload gaphor-${{ steps.meta.outputs.version }}-portable.exe
uses: actions/upload-artifact@v2
if: env.SECRETS_AVAILABLE != null
with:
name: gaphor-${{ steps.meta.outputs.version }}-portable.exe
path: packaging/dist/gaphor-${{ steps.meta.outputs.version }}-portable.exe
@ -266,7 +262,7 @@ jobs:
run: poetry run poe test-all
- name: Import codesign certificate
uses: apple-actions/import-codesign-certs@v1.0.4
if: env.SECRETS_AVAILABLE != null && env.NOT_PR
if: env.CERT_AVAILABLE != null && env.NOT_PR
with:
p12-file-base64: ${{ secrets.BASE64_ENCODED_P12 }}
p12-password: ${{ secrets.CERTPASSWORD_P12 }}
@ -276,14 +272,14 @@ jobs:
poetry run poe package
- name: Notarize app
uses: devbotsxyz/xcode-notarize@v1
if: env.SECRETS_AVAILABLE != null && env.NOT_PR
if: env.CERT_AVAILABLE!= null && env.NOT_PR
with:
product-path: "packaging/dist/Gaphor.app"
appstore-connect-username: ${{ secrets.AC_USERNAME }}
appstore-connect-password: ${{ secrets.AC_PASSWORD }}
- name: Staple app
uses: devbotsxyz/xcode-staple@v1
if: env.SECRETS_AVAILABLE != null && env.NOT_PR
if: env.CERT_AVAILABLE!= null && env.NOT_PR
with:
product-path: "packaging/dist/Gaphor.app"
- name: Create dmg
@ -298,7 +294,7 @@ jobs:
"dist/Gaphor.app"
- name: Notarize dmg
uses: devbotsxyz/xcode-notarize@v1
if: env.SECRETS_AVAILABLE != null && env.NOT_PR
if: env.CERT_AVAILABLE!= null && env.NOT_PR
with:
product-path: "packaging/dist/Gaphor-${{ steps.meta.outputs.version }}.dmg"
appstore-connect-username: ${{ secrets.AC_USERNAME }}

53
poetry.lock generated
View File

@ -10,8 +10,8 @@ python-versions = "*"
name = "altgraph"
version = "0.17"
description = "Python graph (network) package"
category = "dev"
optional = false
category = "main"
optional = true
python-versions = "*"
[[package]]
@ -209,8 +209,8 @@ pyflakes = ">=2.3.0,<2.4.0"
name = "future"
version = "0.18.2"
description = "Clean single-source support for Python 3 and 2"
category = "dev"
optional = false
category = "main"
optional = true
python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
[[package]]
@ -303,7 +303,7 @@ plugins = ["setuptools"]
name = "jinja2"
version = "3.0.1"
description = "A very fast and expressive template engine."
category = "dev"
category = "main"
optional = false
python-versions = ">=3.6"
@ -317,8 +317,8 @@ i18n = ["Babel (>=2.7)"]
name = "macholib"
version = "1.14"
description = "Mach-O header analysis and editing"
category = "dev"
optional = false
category = "main"
optional = true
python-versions = "*"
[package.dependencies]
@ -328,7 +328,7 @@ altgraph = ">=0.15"
name = "markupsafe"
version = "2.0.1"
description = "Safely add untrusted strings to HTML/XML markup."
category = "dev"
category = "main"
optional = false
python-versions = ">=3.6"
@ -377,7 +377,7 @@ python-versions = "*"
name = "packaging"
version = "21.0"
description = "Core utilities for Python packages"
category = "dev"
category = "main"
optional = false
python-versions = ">=3.6"
@ -388,7 +388,7 @@ pyparsing = ">=2.0.2"
name = "pastel"
version = "0.2.1"
description = "Bring colors to your terminal."
category = "dev"
category = "main"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
@ -404,8 +404,8 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7"
name = "pefile"
version = "2021.5.24"
description = "Python PE parsing module"
category = "dev"
optional = false
category = "main"
optional = true
python-versions = ">=3.6.0"
[package.dependencies]
@ -438,7 +438,7 @@ dev = ["pre-commit", "tox"]
name = "poethepoet"
version = "0.10.0"
description = "A task runner that works well with poetry."
category = "dev"
category = "main"
optional = false
python-versions = ">=3.6,<4.0"
@ -517,8 +517,8 @@ pycairo = ">=1.16.0"
name = "pyinstaller"
version = "4.5.1"
description = "PyInstaller bundles a Python application and all its dependencies into a single package."
category = "dev"
optional = false
category = "main"
optional = true
python-versions = ">=3.6"
[package.dependencies]
@ -536,16 +536,16 @@ hook_testing = ["pytest (>=2.7.3)", "execnet (>=1.5.0)", "psutil"]
name = "pyinstaller-hooks-contrib"
version = "2021.2"
description = "Community maintained hooks for PyInstaller"
category = "dev"
optional = false
category = "main"
optional = true
python-versions = "*"
[[package]]
name = "pyinstaller-versionfile"
version = "2.0.0"
description = "Create a version file from a simple YAML config file"
category = "dev"
optional = false
category = "main"
optional = true
python-versions = ">=3.6"
[package.dependencies]
@ -557,7 +557,7 @@ PyYAML = "*"
name = "pyparsing"
version = "2.4.7"
description = "Python parsing module"
category = "dev"
category = "main"
optional = false
python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
@ -636,15 +636,15 @@ python-versions = "*"
name = "pywin32-ctypes"
version = "0.2.0"
description = ""
category = "dev"
optional = false
category = "main"
optional = true
python-versions = "*"
[[package]]
name = "pyyaml"
version = "5.4.1"
description = "YAML parser and emitter for Python"
category = "dev"
category = "main"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*"
@ -867,7 +867,7 @@ python-versions = ">=3.6"
name = "tomlkit"
version = "0.7.2"
description = "Style preserving TOML library"
category = "dev"
category = "main"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
@ -931,10 +931,13 @@ python-versions = ">=3.6"
docs = ["sphinx", "jaraco.packaging (>=8.2)", "rst.linker (>=1.9)"]
testing = ["pytest (>=4.6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.0.1)", "jaraco.itertools", "func-timeout", "pytest-black (>=0.3.7)", "pytest-mypy"]
[extras]
pyinstall = ["poethepoet", "pyinstaller", "pyinstaller-versionfile"]
[metadata]
lock-version = "1.1"
python-versions = "^3.9"
content-hash = "b28de8f63ad62e884c019f90041d7e7f32f46dfdf1453bbde9a7c0b5493afe56"
content-hash = "7710d52bd7729467ea6cb8f1d47dcf6f9d6985a25f758f11653488a880f19bb3"
[metadata.files]
alabaster = [

View File

@ -42,6 +42,9 @@ importlib_metadata = ">=1.4,<5.0"
typing_extensions = "^3.7.4"
generic = "^1.0.0"
tinycss2 = "^1.0.2"
pyinstaller = { version = "^4.3", optional = true }
pyinstaller-versionfile = { version = "^2.0.0", optional = true }
poethepoet = { version = "^0.10.0", optional = true }
[tool.poetry.dev-dependencies]
tomlkit = "^0.7"
@ -60,10 +63,11 @@ babel = "^2.9.1"
babelgladeextractor = "^0.7"
flake8 = "^3.9"
isort = "^5.9"
pyinstaller = "^4.3"
pyinstaller-versionfile = "^2.0.0"
poethepoet = "^0.10.0"
[tool.poetry.extras]
pyinstall = ["poethepoet", "pyinstaller", "pyinstaller-versionfile"]
[tool.poetry.scripts]
gaphor = "gaphor.ui:main"
gaphorconvert = "gaphor.plugins.diagramexport.gaphorconvert:main"
@ -73,6 +77,8 @@ test = "pytest -m 'not slow'"
test-all = "pytest --cov=gaphor/"
dist = "poetry build"
install = "poetry install"
install-nodev = "poetry install --no-dev"
install-pyinstall = "poetry install --no-dev --extras pyinstall"
coremodel = [
{ "cmd" = "gaphor/codegen/codegen.py models/Core.gaphor gaphor/core/modeling/coremodel.py models/Core.override" },
{ "cmd" = "black gaphor/core/modeling/coremodel.py" },
@ -109,7 +115,7 @@ clean = { "shell" = "rm -rf dist build packaging/dist packaging/build packaging/
gaphor-script = { "script" = "packaging.make-script:make_gaphor_script" }
version-file = { "script" = "packaging.make-script:make_file_version_info" }
pyinstall = { "script" = "packaging.make-script:make_pyinstaller" }
package = ["gaphor-script", "version-file", "pyinstall"]
package = ["install-pyinstall", "gaphor-script", "version-file", "pyinstall"]
win-installer = { "script" = "packaging.windows.build-win-installer:main" }
gettext-pot = "pybabel extract -o po/gaphor.pot -F po/babel.ini gaphor"
gettext-po = { "script" = "po.build-babel:update_po_files" }