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
test
build
dist
loaih.egg-info
**/__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" ]
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
# executable
chmod +x check_updates.sh
# Updating runtime
if [[ -d venv ]]; then
source venv/bin/activate
fi
pip3 uninstall -y loaih
# build the actual toolkit
python3 -m build --sdist
pip3 install dist/*.tar.gz; rv=$?
python3 setup.py bdist_wheel
pip3 install dist/*.whl; rv=$?
if [[ -d venv ]]; then
deactivate
fi

View File

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

View File

@ -9,10 +9,12 @@ import json
import click
import yaml
import loaih
import loaih.version
import loaih.build
@click.group()
@click.version_option(loaih.version.version)
def cli():
"""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"