Compare commits

..

3 Commits

Author SHA1 Message Date
emiliano.vavassori ad1ef60947 Some adjustments to Docker image. 2024-08-22 20:59:07 +02:00
emiliano.vavassori 8a9541c4f6 Changed packaging tooling to hatch.
Fixing issues with python build.
2024-08-22 20:32:35 +02:00
gabriele.ponzo 2f31897cd9 Update README.md
Corretta forma inglese
2024-03-01 08:45:05 +00:00
6 changed files with 44 additions and 31 deletions

5
.gitignore vendored
View File

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

View File

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

View File

@ -11,15 +11,13 @@ 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 -m build --sdist python3 setup.py bdist_wheel
pip3 install dist/*.tar.gz; rv=$? pip3 install dist/*.whl; rv=$?
if [[ -d venv ]]; then if [[ -d venv ]]; then
deactivate deactivate
fi fi

View File

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

View File

@ -9,10 +9,12 @@ 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 +1,4 @@
__version__ = "1.3.3" #!/usr/bin/env python3
# encoding: utf-8
version = "1.3.3"