Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions .github/workflows/deploy-docs.yml

This file was deleted.

47 changes: 37 additions & 10 deletions .github/workflows/release-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
name: Publish to PyPI
name: Release (release → PyPI)

on:
push:
branches:
- release

permissions:
contents: write
id-token: write
pull-requests: write

jobs:
deploy:
name: Build and Publish to PyPI
release:
runs-on: ubuntu-latest
environment: pypi-universalpython

permissions:
id-token: write

steps:
- uses: actions/checkout@v4

with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
with:
Expand All @@ -25,11 +28,35 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
pip install build twine python-semantic-release
pip install -r utils/requirements.txt


- name: Create stable release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
semantic-release version --commit --tag --push

- name: Build package
run: bash utils/build_package.sh
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
packages-dir: dist/

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/

- name: Create PR to sync release → main
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
base: main
head: release
title: "chore: merge release changes back into main"
body: |
This PR was created automatically after publishing a new PyPI release.
It keeps `main` in sync with version and changelog updates.
29 changes: 19 additions & 10 deletions .github/workflows/release-to-test-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
name: Publish to Test PyPI
name: Prerelease (main → TestPyPI)

on:
push:
branches:
- main

permissions:
contents: write
id-token: write

jobs:
deploy:
name: Build and Publish to Test PyPI
prerelease:
runs-on: ubuntu-latest
environment: test-pypi-universalpython

permissions:
id-token: write

steps:
- uses: actions/checkout@v4

with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
with:
Expand All @@ -25,12 +27,19 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
pip install build twine python-semantic-release
pip install -r utils/requirements.txt

- name: Determine and tag prerelease version
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
semantic-release version --prerelease --prerelease-token b --commit --tag --push

- name: Build package
run: bash utils/build_package.sh

- name: Publish to Test PyPI
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/
66 changes: 66 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# CHANGELOG

<!-- version list -->

## v0.1.8-b.8 (2025-10-25)

### Chores

- Clean unnecessary files
([`1443106`](https://github.com/UniversalPython/UniversalPython/commit/1443106c5c22ae8e9282e30be0ef220bb62c0d8f))


## v0.1.8-b.7 (2025-10-20)


## v0.1.8-b.6 (2025-10-11)

### Chores

- Clean changelog file
([`cf71125`](https://github.com/UniversalPython/UniversalPython/commit/cf71125f6b123197e7dde0a2ac8a6eaa6a674592))


## v0.1.8-b.5 (2025-10-11)

### Bug Fixes

- Revert everything
([`be83938`](https://github.com/UniversalPython/UniversalPython/commit/be83938c5f7864fc8ebef8ab33bfdd8ba5144223))


## v0.1.8-b.4 (2025-10-11)

### Bug Fixes

- Remove wrong options, reduce pushes
([`11640ae`](https://github.com/UniversalPython/UniversalPython/commit/11640ae095aeb75f73b6693a957d99f1416b8798))


## v0.1.8-b.3 (2025-10-11)

### Bug Fixes

- Also push to testpypi when release is done
([`03ba35d`](https://github.com/UniversalPython/UniversalPython/commit/03ba35d60a47182ce6bc5f4621d495e3818c0535))


## v0.1.8-b.2 (2025-10-11)

### Bug Fixes

- Wrong env variable name
([`cc508cf`](https://github.com/UniversalPython/UniversalPython/commit/cc508cf803ea230fa435de5e37dff709978b9978))


## v0.1.8-b.1 (2025-10-11)

### Chores

- Clean init file
([`20864ac`](https://github.com/UniversalPython/UniversalPython/commit/20864ac0aaa15f8839694cd617f531aae17d646b))


## v0.1.8 (2025-10-11)

- Initial Release
5 changes: 4 additions & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ authors:
- family-names: "Bazaz"
given-names: "Saad"
orcid: "https://orcid.org/0009-0000-1038-3410"
title: "UniversalPython - A Multilingual, Pythonic Programming Language"
title: "A Multilingual Python Programming Language"
version: 0.0.1
date-released: 2024-12-06
identifiers:
- type: doi
value: 10.48550/arXiv.2510.09591
url: "https://github.com/UniversalPython/UniversalPython"
32 changes: 30 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "universalpython"
version = "0.1.8"
version = "0.1.8-b.8"
authors = [
{name = "Saad Bazaz", email = "saadbazaz@hotmail.com"},
]
Expand Down Expand Up @@ -42,4 +42,32 @@ packages = ["universalpython"]
universalpython = ["languages/**/*.yaml", "modes/*.py"]

[project.scripts]
universalpython = "universalpython.universalpython:main"
universalpython = "universalpython.universalpython:main"

[tool.semantic_release]
version_toml = ["pyproject.toml:project.version"]
upload_to_pypi = false
tag_format = "{version}"
build_command = "bash ./utils/build_package.sh"
commit_parser = "conventional"
major_on_zero = true
allow_zero_version = true
prerelease_token = "b"
changelog_file = "./CHANGELOG.md"

[tool.semantic_release.commit_parser_options]
parse_squash_commits = true
ignore_merge_commits = true

[tool.semantic_release.changelog.default_templates]
changelog_file = "./CHANGELOG.md"
output_format = "md"

[tool.semantic_release.branches.release]
match = "release"
prerelease = false

[tool.semantic_release.branches.main]
match = "main"
prerelease = true
prerelease_token = "b"
Binary file modified static/paper/conference_101719.pdf
Binary file not shown.
3 changes: 1 addition & 2 deletions static/paper/conference_101719.tex
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
% \usepackage[T2A]{fontenc} % Enable Cyrillic font encoding
% \usepackage[russian]{babel} % Load babel for Russian language support


\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
Expand Down Expand Up @@ -69,7 +68,7 @@

\author{\IEEEauthorblockN{Saad Ahmed Bazaz}
\IEEEauthorblockA{\textit{Software Engineering and Product Design} \\
\textit{Grayhat}\\
\textit{Grayhat Developers PVT Ltd}\\
Islamabad, Pakistan \\
bazaz@grayhat.studio}
\and
Expand Down
2 changes: 1 addition & 1 deletion test/samples/de/hello.de.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
etwas = "hello world"
drucken(etwas)
ausgeben(etwas)
8 changes: 8 additions & 0 deletions universalpython/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
#!/usr/bin/env python

"""
UniversalPython.

Python, but in different human languages.
"""

from importlib.metadata import version as get_version, PackageNotFoundError

try:
__version__ = get_version("universalpython")
except PackageNotFoundError:
__version__ = "0.0.0"

__author__ = 'Saad Bazaz'
__credits__ = 'Grayhat'
__url__ = 'https://github.com/UniversalPython/UniversalPython'
Expand Down
Empty file.
51 changes: 51 additions & 0 deletions universalpython/languages/nl/default.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
letters:
start : "a"
end : "z"
extra : "áéíóúàèëïöüÁÉÍÓÚÀÈËÏÖÜ"

numbers:
start : "0"
end : "9"

reserved:
"." : "."
"," : ","
"1" : "1"
"2" : "2"
"3" : "3"
"4" : "4"
"5" : "5"
"6" : "6"
"7" : "7"
"8" : "8"
"9" : "9"
"0" : "0"
"uitvoer" : "print"
"andersals" : "elif"
"als" : "if"
"anders" : "else"
"zolang" : "while"
"voor" : "for"
"in" : "in"
"invoer" : "input"
"stop" : "break"
"ga_verder" : "continue"
"sla_over" : "pass"
"waar" : "True"
"onwaar" : "False"
"is" : "is"
"klasse" : "class"
"functie" : "def"
"__begin__" : "__init__"
"zelf" : "self"
"geef_terug" : "return"
"tekst" : "string"
"str" : "str"
"toevoegen" : "append"
"verwijderen" : "pop"
"en" : "and"
"of" : "or"
"alle" : "all"
"enig" : "any"
"geen_waarde" : "None"
"geheel" : "int"
2 changes: 1 addition & 1 deletion universalpython/languages/ur/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ reserved:
"اگر" : "if"
"ورنہ" : "else"
"جبتک" : "while"
"جو" : "for"
"ہر" : "for"
"اندر" : "in"
"داخلہ" : "input"
"توڑ" : "break"
Expand Down