Compare commits

..

3 Commits

6 changed files with 29 additions and 42 deletions

5
.gitignore vendored
View File

@ -1,6 +1,3 @@
venv
test
build
dist dist
loaih.egg-info venv
**/__pycache__ **/__pycache__

View File

@ -1,8 +1,5 @@
# vim:sts=4:sw=4 FROM python:3.9-slim
FROM python:3.9-slim-bullseye
RUN mkdir /build && \ RUN pip install loaih
pip install loaih
WORKDIR /build
ENTRYPOINT [ "/usr/local/bin/loaih" ] ENTRYPOINT [ "/usr/local/bin/loaih" ]
CMD [ "--help" ] CMD [ "--help" ]

View File

@ -11,13 +11,15 @@ if [[ ${retval} -ne 0 ]]; then
# for the sake of consistency, let's make the check_updates.sh script # for the sake of consistency, let's make the check_updates.sh script
# executable # executable
chmod +x check_updates.sh chmod +x check_updates.sh
# Updating runtime
if [[ -d venv ]]; then if [[ -d venv ]]; then
source venv/bin/activate source venv/bin/activate
fi fi
pip3 uninstall -y loaih pip3 uninstall -y loaih
# build the actual toolkit # build the actual toolkit
python3 setup.py bdist_wheel python3 -m build --sdist
pip3 install dist/*.whl; rv=$? pip3 install dist/*.tar.gz; rv=$?
if [[ -d venv ]]; then if [[ -d venv ]]; then
deactivate deactivate
fi fi

View File

@ -1,4 +1,3 @@
# vim:sts=4:sw=4
[build-system] [build-system]
requires = ["hatchling"] requires = ["hatchling"]
build-backend = "hatchling.build" build-backend = "hatchling.build"
@ -6,49 +5,46 @@ build-backend = "hatchling.build"
[project] [project]
name = "loaih" name = "loaih"
dynamic = ["version"] dynamic = ["version"]
authors = [
{ name = "Emiliano Vavassori", email = "syntaxerrormmm@gmail.com" },
]
description = "LOAIH - LibreOffice AppImage Helpers, help build a LibreOffice AppImage" description = "LOAIH - LibreOffice AppImage Helpers, help build a LibreOffice AppImage"
readme = "README.md" readme = "README.md"
license = "MIT" authors = [
requires-python = ">= 3.6" { name = "Emiliano Vavassori", email = "syntaxerrormmm@libreoffice.org" },
]
dependencies = [ dependencies = [
"click", "click",
"lxml", "lxml",
"packaging",
"pyyaml", "pyyaml",
"requests", "requests",
] ]
classifiers = [ classifiers = [
"Development Status :: 5 - Production/Stable", "Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Environment :: Console", "Environment :: Console",
"Intended Audience :: Developers", "Intended Audience :: Information Technology",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License", "License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: POSIX :: Linux", "Operating System :: POSIX :: Linux",
"Topic :: Office/Business", "Programming Language :: Python :: 3",
"Topic :: Software Development :: Build Tools", "Topic :: Office/Business :: Office Suites",
"Topic :: Software Development :: Quality Assurance", "Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing", "Topic :: System :: Software Distribution",
"Topic :: Software Development :: User Interfaces"
] ]
[tool.hatch.version]
path = "src/loaih/version.py"
[project.scripts] [project.scripts]
loaih = "loaih.script:cli" loaih = "loaih.script:cli"
[project.urls] [project.urls]
Homepage = "https://git.libreitalia.org/LibreItalia/loaih/" Homepage = "https://pypi.org/project/loaih/"
Documentation = "https://git.libreitalia.org/libreitalia/loaih/wiki"
Repository = "https://git.libreitalia.org/libreitalia/loaih/"
Issues = "https://git.libreitalia.org/libreitalia/loaih/issues/"
[tool.hatch.version] [publish.index]
path = "src/loaih/version.py"
[tool.hatch.build.targets.sdist] [publish.index.repos.pypi]
include = [ url = "https://upload.pypi.org/legacy/"
"src/loaih",
] [publish.index.repos.testpypi]
url = "https://test.pypi.org/legacy/"

View File

@ -9,12 +9,10 @@ import json
import click import click
import yaml import yaml
import loaih import loaih
import loaih.version
import loaih.build import loaih.build
@click.group() @click.group()
@click.version_option(loaih.version.version)
def cli(): def cli():
"""Helps with command line commands.""" """Helps with command line commands."""

View File

@ -1,4 +1 @@
#!/usr/bin/env python3 __version__ = "1.3.3"
# encoding: utf-8
version = "1.3.3"