Skip to content

Commit

Permalink
Merge pull request #91 from kraanzu/develop
Browse files Browse the repository at this point in the history
Bump Textuak
  • Loading branch information
kraanzu authored Oct 1, 2024
2 parents 80cc247 + 764f399 commit b070664
Show file tree
Hide file tree
Showing 20 changed files with 767 additions and 593 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/black.yml

This file was deleted.

9 changes: 6 additions & 3 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Ruff
name: Ruff Checks (lint/format)

on: [push, pull_request]

Expand All @@ -18,6 +18,9 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Analysing the code with ruff
- name: Lint Check
run: |
ruff check $(git ls-files '*.py')
ruff check .
- name: Format Check
run: |
ruff format --check .
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# tests folder
*map

# nix
result

# extras
backport/
main.py
Expand Down
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## 3.1.5

This release does not change any functionalities, just bumps the underlying tui and fixes all breaking changes

## 3.1.4

Expand All @@ -20,7 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
This can be viewed using this command

```bash
python -c "import appdirs; print(appdirs.user_cache_dir('smassh'))"
python -c "import platformdirs; print(platformdirs.user_cache_dir('smassh'))"
```

## 3.1.2
Expand Down
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 62 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
description = "Flake for Smassh";

inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";

outputs = {
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system: let
name = "smassh";
version = "3.1.5";

pkgs = import nixpkgs {inherit system;};
python3 = pkgs.python312Packages;

mainPkgs = with python3; [
poetry-core
textual
click
platformdirs
requests
];
in {
packages.default = python3.buildPythonPackage {
pname = name;
version = version;
src = ./.;
format = "pyproject";

nativeBuildInputs = with pkgs; [
poetry
];

propagatedBuildInputs = mainPkgs;

pythonRelaxDeps = [
"textual"
"tzlocal"
"platformdirs"
];

doCheck = false; # no tests
};

# Deps: Devshell
devShell = pkgs.mkShell {
name = "smassh";
buildInputs =
mainPkgs
++ (with python3; [
textual-dev
pre-commit-hooks
ruff
]);
};
}
);
}
Loading

0 comments on commit b070664

Please sign in to comment.