Skip to content
Draft
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
31 changes: 31 additions & 0 deletions .github/workflows/c-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: C application

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
sudo apt-get install libncurses5-dev libncursesw5-dev libcurl4-openssl-dev
python -m pip install --upgrade pip
pip install meson ninja
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Setup meson build
run: |
meson setup build
- name: Compile with meson
run: |
meson compile -C build
36 changes: 0 additions & 36 deletions .github/workflows/python-app.yml

This file was deleted.

12 changes: 3 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
__pycache__
pyvenv.cfg
.vscode
.cache
.pytest_cache

# virtual environments for win and linux
wenv
lenv
build
.venv
*.o
29 changes: 9 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
## Textbrowser
### Prereqs
- ncurses
- curl

### Setting up
```bash
python3 -m venv venv

# linux/macoss
source ./venv/bin/activate
# windows
venv\Scripts\activate.bat

pip3 install -r ./requirements.txt
```
### Running
```bash
python3 -m textbrowser
```
### Testing
```bash
pytest .
```
### Setup
```python
python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt
```
6 changes: 6 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
project('textbrowser', 'c')

ncurses = dependency('ncurses', version: '>=5.7')
curl = dependency('libcurl', version: '>=8.5')

executable('textbrowser', 'src/main.c', dependencies: [ncurses, curl])
9 changes: 9 additions & 0 deletions old/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
__pycache__
pyvenv.cfg
.vscode
.cache
.pytest_cache

# virtual environments for win and linux
wenv
lenv
21 changes: 21 additions & 0 deletions old/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## Textbrowser

### Setting up
```bash
python3 -m venv venv

# linux/macoss
source ./venv/bin/activate
# windows
venv\Scripts\activate.bat

pip3 install -r ./requirements.txt
```
### Running
```bash
python3 -m textbrowser
```
### Testing
```bash
pytest .
```
37 changes: 37 additions & 0 deletions old/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
aiocontextvars==0.2.2
appdirs==1.4.3
astroid==2.4.1
attrs==19.3.0
beautifulsoup4==4.8.0
certifi==2024.7.4
chardet==3.0.4
colorama==0.4.1
contextvars==2.4
distlib==0.3.0
filelock==3.0.12
idna==3.7
immutables==0.12
importlib-metadata==1.6.0
importlib-resources==1.5.0
isort==4.3.21
lazy-object-proxy==1.4.3
loguru==0.6.0
mccabe==0.6.1
more-itertools==8.2.0
packaging==20.3
pluggy==0.13.1
py==1.10.0
pyfakefs==4.2.1
pylint==2.5.2
pyparsing==2.4.7
pytest==5.4.1
requests==2.32.4
six==1.14.0
soupsieve==2.0
toml==0.10.0
typed-ast==1.4.1
urllib3==2.5.0
virtualenv==20.26.6
wcwidth==0.1.9
wrapt==1.12.1
zipp==3.19.1
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
39 changes: 2 additions & 37 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,37 +1,2 @@
aiocontextvars==0.2.2
appdirs==1.4.3
astroid==2.4.1
attrs==19.3.0
beautifulsoup4==4.8.0
certifi==2024.7.4
chardet==3.0.4
colorama==0.4.1
contextvars==2.4
distlib==0.3.0
filelock==3.0.12
idna==3.7
immutables==0.12
importlib-metadata==1.6.0
importlib-resources==1.5.0
isort==4.3.21
lazy-object-proxy==1.4.3
loguru==0.6.0
mccabe==0.6.1
more-itertools==8.2.0
packaging==20.3
pluggy==0.13.1
py==1.10.0
pyfakefs==4.2.1
pylint==2.5.2
pyparsing==2.4.7
pytest==5.4.1
requests==2.32.4
six==1.14.0
soupsieve==2.0
toml==0.10.0
typed-ast==1.4.1
urllib3==2.5.0
virtualenv==20.26.6
wcwidth==0.1.9
wrapt==1.12.1
zipp==3.19.1
meson==1.9.1
ninja==1.13.0
Loading