portulong 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- portulong-1.0.0/.github/workflows/publish.yml +38 -0
- portulong-1.0.0/.gitignore +23 -0
- portulong-1.0.0/.idx/dev.nix +58 -0
- portulong-1.0.0/PKG-INFO +1170 -0
- portulong-1.0.0/README.md +1145 -0
- portulong-1.0.0/extensao-ptg/extension.js +34 -0
- portulong-1.0.0/extensao-ptg/language-configuration.json +30 -0
- portulong-1.0.0/extensao-ptg/package-lock.json +15 -0
- portulong-1.0.0/extensao-ptg/package.json +55 -0
- portulong-1.0.0/extensao-ptg/portulang-0.0.1.vsix +0 -0
- portulong-1.0.0/extensao-ptg/pt.png +0 -0
- portulong-1.0.0/extensao-ptg/syntaxes/ptg.tmLanguage.json +199 -0
- portulong-1.0.0/main.ptg +101 -0
- portulong-1.0.0/publicar.sh +45 -0
- portulong-1.0.0/pyproject.toml +42 -0
- portulong-1.0.0/src/portulong/__init__.py +6 -0
- portulong-1.0.0/src/portulong/cli.py +16 -0
- portulong-1.0.0/src/portulong/core_keywords.py +126 -0
- portulong-1.0.0/src/portulong/discord_pt.py +1192 -0
- portulong-1.0.0/src/portulong/transpilador.py +521 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
name: Publicar Portulong no PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch: # Permite-te clicar num botão no GitHub para publicar quando quiseres
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
pypi-publish:
|
|
8
|
+
name: Fazer upload para o PyPI
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
|
|
11
|
+
# O nome do environment tem de ser igual ao que meteste no site do PyPI
|
|
12
|
+
environment:
|
|
13
|
+
name: pypi
|
|
14
|
+
url: https://pypi.org/p/portulong
|
|
15
|
+
|
|
16
|
+
permissions:
|
|
17
|
+
id-token: write # Obrigatório para a autenticação sem password funcionar
|
|
18
|
+
contents: read
|
|
19
|
+
|
|
20
|
+
steps:
|
|
21
|
+
- name: Checkout do código
|
|
22
|
+
uses: actions/checkout@v4
|
|
23
|
+
|
|
24
|
+
- name: Configurar Python
|
|
25
|
+
uses: actions/setup-python@v5
|
|
26
|
+
with:
|
|
27
|
+
python-version: "3.10"
|
|
28
|
+
|
|
29
|
+
- name: Instalar ferramentas de build (Hatchling)
|
|
30
|
+
run: |
|
|
31
|
+
python -m pip install --upgrade pip
|
|
32
|
+
pip install build
|
|
33
|
+
|
|
34
|
+
- name: Compilar o pacote
|
|
35
|
+
run: python -m build
|
|
36
|
+
|
|
37
|
+
- name: Publicar no PyPI
|
|
38
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# Virtual environment
|
|
7
|
+
.venv/
|
|
8
|
+
|
|
9
|
+
# IDE
|
|
10
|
+
.vscode/
|
|
11
|
+
.idea/
|
|
12
|
+
|
|
13
|
+
# OS
|
|
14
|
+
.DS_Store
|
|
15
|
+
Thumbs.db
|
|
16
|
+
|
|
17
|
+
# Build
|
|
18
|
+
*.egg-info/
|
|
19
|
+
dist/
|
|
20
|
+
build/
|
|
21
|
+
|
|
22
|
+
# Generated files
|
|
23
|
+
main.py
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# To learn more about how to use Nix to configure your environment
|
|
2
|
+
# see: https://developers.google.com/idx/guides/customize-idx-env
|
|
3
|
+
{ pkgs, ... }: {
|
|
4
|
+
# Which nixpkgs channel to use.
|
|
5
|
+
channel = "stable-25.05"; # or "unstable"
|
|
6
|
+
# Use https://search.nixos.org/packages to find packages
|
|
7
|
+
packages = [
|
|
8
|
+
# pkgs.go
|
|
9
|
+
pkgs.python314
|
|
10
|
+
pkgs.uv
|
|
11
|
+
# pkgs.python311Packages.pip
|
|
12
|
+
# pkgs.nodejs_22
|
|
13
|
+
# pkgs.nodePackages.nodemon
|
|
14
|
+
];
|
|
15
|
+
# Sets environment variables in the workspace
|
|
16
|
+
env = {};
|
|
17
|
+
idx = {
|
|
18
|
+
# Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
|
|
19
|
+
extensions = [
|
|
20
|
+
# "vscodevim.vim"
|
|
21
|
+
"google.gemini-cli-vscode-ide-companion"
|
|
22
|
+
"ms-python.python"
|
|
23
|
+
# Local extension for Portulang (.ptg)
|
|
24
|
+
"./extensao-ptg"
|
|
25
|
+
];
|
|
26
|
+
# Enable previews
|
|
27
|
+
previews = {
|
|
28
|
+
enable = true;
|
|
29
|
+
previews = {
|
|
30
|
+
# web = {
|
|
31
|
+
# # Example: run "npm run dev" with PORT set to IDX's defined port for previews,
|
|
32
|
+
# # and show it in IDX's web preview panel
|
|
33
|
+
# command = ["npm" "run" "dev"];
|
|
34
|
+
# manager = "web";
|
|
35
|
+
# env = {
|
|
36
|
+
# # Environment variables to set for your server
|
|
37
|
+
# PORT = "$PORT";
|
|
38
|
+
# };
|
|
39
|
+
# };
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
# Workspace lifecycle hooks
|
|
43
|
+
workspace = {
|
|
44
|
+
# Runs when a workspace is first created
|
|
45
|
+
onCreate = {
|
|
46
|
+
# Example: install JS dependencies from NPM
|
|
47
|
+
# npm-install = "npm install";
|
|
48
|
+
# Open editors for the following files by default, if they exist:
|
|
49
|
+
default.openFiles = [ "README.md" ];
|
|
50
|
+
};
|
|
51
|
+
# Runs when the workspace is (re)started
|
|
52
|
+
onStart = {
|
|
53
|
+
# Example: start a background task to watch and re-build backend code
|
|
54
|
+
# watch-backend = "npm run watch-backend";
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
}
|