Skip to content

Commit 6b3c4a6

Browse files
authored
Prepare Github Actions for PyPI package creation (#49)
* Prepare Github Actions for PyPI package creation * Removed auto reference to self * Added quotes to string
1 parent d1cf9b2 commit 6b3c4a6

File tree

4 files changed

+33
-6
lines changed

4 files changed

+33
-6
lines changed

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Set up Python
14+
uses: actions/setup-python@v4
15+
with:
16+
python-version: '3.9'
17+
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install build twine
22+
23+
- name: Build package
24+
run: python -m build
25+
26+
- name: Publish package
27+
env:
28+
TWINE_USERNAME: __token__
29+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
30+
run: |
31+
python -m twine upload dist/*

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55

66
[project]
77
name = "think-lang"
8-
version = "0.1.9.rc1"
8+
version = "0.1.9.rc2"
99
description = "Think - A language for learning computational thinking"
1010
readme = "README.md"
1111
authors = [

requirements.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ ply>=3.11
44
ipython>=7.0.0
55
jupyter>=1.0.0
66

7-
# requirements-dev.txt
8-
# Additional dependencies for development
9-
-r requirements.txt # Include all production dependencies
10-
117
# Testing
128
pytest>=7.0.0
139
pytest-cov>=4.0.0

think/interpreter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def execute_statement(self, statement):
278278
task=self.current_task,
279279
step=f"enumerate loop over {statement['iterable']}",
280280
variables={
281-
iterable_name: statement['iterable'],
281+
"iterable_name": statement['iterable'],
282282
"iterable_type": self.state[statement['iterable']].__name__,
283283
"current_variables": self.state
284284
}

0 commit comments

Comments
 (0)