-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
68 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: ci | ||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.11", "3.12", "3.13"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- uses: actions/checkout@v4 | ||
- name: Run lint | ||
run: | | ||
ruff check | ||
ruff format --diff --line-length 100 | ||
- name: Run tests | ||
run: pytest -v . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<p align="center"> | ||
<img src="https://github.com/kaliv0/alter-ego/blob/main/assets/alter-ego.jpg?raw=true" width="250" alt="Alter Efo"> | ||
<img src="https://github.com/kaliv0/alterpy/blob/main/assets/alter-ego.jpg?raw=true" width="250" alt="Alter Ego"> | ||
</p> | ||
|
||
--- | ||
|
||
# Alter Ego | ||
# AlterPy | ||
## My alter ego | ||
|
||
[![tests](https://img.shields.io/github/actions/workflow/status/kaliv0/alter-ego/ci.yml)](https://github.com/kaliv0/alter-ego/actions/workflows/ci.yml) | ||
[![tests](https://img.shields.io/github/actions/workflow/status/kaliv0/alterpy/ci.yml)](https://github.com/kaliv0/alterpy/actions/workflows/ci.yml) | ||
![Python 3.x](https://img.shields.io/badge/python-^3.11-blue?style=flat-square&logo=Python&logoColor=white) | ||
[![PyPI](https://img.shields.io/pypi/v/alter-ego.svg)](https://pypi.org/project/alter-ego/) | ||
[![Downloads](https://static.pepy.tech/badge/alter-ego)](https://pepy.tech/projects/alter-ego) | ||
[![License](https://img.shields.io/badge/License-MIT-yellow?style=flat-square)](https://github.com/kaliv0/alter-ego/blob/main/LICENSE) | ||
[![PyPI](https://img.shields.io/pypi/v/alterpy.svg)](https://pypi.org/project/alterpy/) | ||
[![License](https://img.shields.io/badge/License-MIT-yellow?style=flat-square)](https://github.com/kaliv0/alterpy/blob/main/LICENSE) | ||
|
||
Multi-key dictionary, supports adding and manipulating key-aliases pointing to shared values |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from .alias_dict import AliasDict as AliasDict | ||
from .exception import AliasError as AliasError | ||
from .exception import AliasValueError as AliasValueError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,27 @@ | ||
[tool.poetry] | ||
name = "alter-ago" | ||
version = "0.1.0" | ||
[build-system] | ||
requires = ["setuptools>=75.6.0", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "alterpy" | ||
version = "1.0.0" | ||
readme = "README.md" | ||
authors = ["kaliv0 <kaloyan.ivanov88@gmail.com>"] | ||
authors = [{ name = "Kaloyan Ivanov", email = "kaloyan.ivanov88@gmail.com" }] | ||
description = "Multi-key dictionary, supports adding and manipulating key-aliases pointing to shared values" | ||
keywords = ["multi-key dictionary", "multidict", "alias-dict"] | ||
repository = "https://github.com/kaliv0/alter-ego" | ||
urls = { repository = "https://github.com/kaliv0/alterpy" } | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.11" | ||
requires-python = ">= 3.11" | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"pytest>=8.3.4", | ||
"ruff>=0.8.3", | ||
"build>=1.2.2", | ||
"twine>=6.0.1", | ||
] | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
pytest = "^8.3.4" | ||
ruff = "^0.8.3" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
[tool.setuptools.packages.find] | ||
where = ["."] | ||
include = ["alterpy"] | ||
exclude = ["tests"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
pytest>=8.3.4 | ||
ruff>=0.8.3 | ||
build>=1.2.2 | ||
twine>=6.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters