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
37 changes: 37 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: epython

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
main:

runs-on: ubuntu-latest
timeout-minutes: 35
defaults:
run:
shell: bash -l {0}
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

steps:
- uses: actions/checkout@v2

- uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
mamba-version: "*"
environment-file: conda/dev.yaml
channels: conda-forge,nodefaults
activate-environment: epython
use-mamba: true
miniforge-variant: Mambaforge

- name: installation
run: |
pip install .
epython tests/simpleone.epy --backend=cpython
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__pycache__/
*.egg-info/
30 changes: 28 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# epython

EPython is a typed-subset of the Python language useful for extending the language with new builtin types and methods.

The goal is to be able to write things like NumPy, SciPy, Pandas, bitarray, and any other extension module of Python in this language and get equivalent or better perfomance than writing it using the C-API typically provided.
Expand All @@ -13,10 +14,35 @@ If you are interested in contributing to the design and goals, then join the Dis

# Installation

pip install epython
```bash
pip install epython
```

# Usage

epython extmodule.epy --backend=cpython
```bash
epython extmodule.epy --backend=cpython
```

Produces a compiled extension module for the given Python backend.


# Development

Create an environment for **epython**:

```bash
$ conda env create --file conda/dev.yaml
```

Activate the **epython** environment:

```bash
$ conda activate epython
```

Install it locally in development mode:

```bash
$ pip install -e .
```
6 changes: 6 additions & 0 deletions conda/dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: epython
channels:
- conda-forge
- nodefaults
dependencies:
- python 3.9.*