Skip to content

Commit a83c804

Browse files
fix(pipeline): fixed compilation
1 parent bb32746 commit a83c804

8 files changed

Lines changed: 34 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
run: |
2626
sudo apt-get update
2727
sudo apt-get install -y dpkg-dev
28+
pip install click rich
2829
2930
- name: Build DEB package
3031
run: |

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [1.1.1-alpha.0] - 2026-03-12
6+
7+
### Fixed
8+
- **Pipeline**: Fixed compilation on github actions.
9+
510
## [1.1.0] - 2026-03-12
611

712
### Added

MANIFEST.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
include README.md
22
include LICENSE
3-
recursive-include backends *.py
3+
recursive-include backends *.py
4+
include VERSION

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.0
1+
1.1.1

build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ print_success "Source files copied and wrapper script created"
7070
# Create bash completion
7171
print_status "Creating bash completion script..."
7272
mkdir -p "$TEMP_DIR/usr/share/bash-completion/completions"
73+
74+
# Check if required dependencies are available for completion generation
75+
if ! python3 -c "import click, rich" &>/dev/null; then
76+
print_warning "Missing Python dependencies (click, rich) required for bash completion generation."
77+
print_status "Attempting to install them..."
78+
pip3 install click rich || { print_error "Failed to install dependencies. Please install 'click' and 'rich' manually."; exit 1; }
79+
fi
80+
7381
# Set PYTHONPATH to current directory to ensure backends can be imported
7482
export PYTHONPATH=$PYTHONPATH:.
7583
_UPK_COMPLETE=bash_source python3 upk.py > "$TEMP_DIR/usr/share/bash-completion/completions/upk"

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[project]
22
name = "upk"
3-
version = "0.1.0"
3+
dynamic = ["version"]
44
description = "Ubuntu Package Kit - Universal package manager wrapper"
5-
authors = [{name = "undefinederror"}]
5+
authors = [{name = "undefinederror (Lorenzo Paci)"}]
66
requires-python = ">=3.10"
77
dependencies = [
88
"click>=8.1.0",
@@ -15,3 +15,6 @@ upk = "upk:cli"
1515
[build-system]
1616
requires = ["setuptools>=61.0"]
1717
build-backend = "setuptools.build_meta"
18+
19+
[tool.setuptools.dynamic]
20+
version = {file = "VERSION"}

setup.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,22 @@ def get_requirements():
1919
return pyproject_data.get("project", {}).get("dependencies", [])
2020
return []
2121

22+
def get_version():
23+
"""Read version from VERSION file."""
24+
version_path = this_directory / "VERSION"
25+
if version_path.exists():
26+
return version_path.read_text().strip()
27+
return "1.1.0"
28+
2229
setup(
2330
name="upk",
24-
version="0.1.0",
31+
version=get_version(),
2532
description="Ubuntu Package Kit - Universal package manager wrapper",
2633
long_description=long_description,
2734
long_description_content_type="text/markdown",
28-
author="Your Name",
29-
author_email="your.email@example.com",
30-
url="https://github.com/yourusername/upk",
35+
author="undefinederror (Lorenzo Paci)",
36+
author_email="github@object.ninja",
37+
url="https://github.com/undefinederror/upk",
3138
packages=find_packages(),
3239
include_package_data=True,
3340
install_requires=get_requirements(),

upk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def get_version():
1919
return f.read().strip()
2020
except Exception:
2121
pass
22-
return "0.1.0"
22+
return "1.1.0"
2323

2424
@click.group(context_settings=dict(help_option_names=['-h', '--help']), name="upk")
2525
@click.version_option(get_version(), '-v', '--version', message="upk version %(version)s")

0 commit comments

Comments
 (0)