Skip to content

Commit

Permalink
Fix text_console versions in requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Ircama committed Nov 18, 2024
2 parents 02fd8f1 + 2ed931b commit 908f790
Show file tree
Hide file tree
Showing 7 changed files with 384 additions and 136 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,24 @@ jobs:
steps:
- name: Git Checkout
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0 # Fetch all history for accurate commits and tags

- name: Update VERSION in python file ui.py; commit and push updates
run: |
$filePath = "ui.py"
$VERSION = "${{ github.ref_name }}"
if ($VERSION.StartsWith('v')) {
$VERSION = $VERSION.Substring(1)
}
(Get-Content $filePath) -replace '^VERSION = ".*"$', "VERSION = `"$VERSION`"" | Set-Content $filePath
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git add $filePath
git commit -m "Update VERSION to ${{ github.ref_name }}"
git remote set-url origin https://${GITHUB_USER}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git push origin main
- name: Install Python
uses: actions/setup-python@v5
Expand All @@ -27,9 +45,7 @@ jobs:
pip install -r requirements.txt
- name: Run PyInstaller to create epson_print_conf.exe
run: >
python -m PyInstaller epson_print_conf.spec -- --default
--version ${{ github.ref_name }}
run: python -m PyInstaller epson_print_conf.spec -- --default

- name: Zip the epson_print_conf.exe asset to epson_print_conf.zip
run: |
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,5 @@ devices.xml
*.toml
*.srs
*.pickle

.console_history
17 changes: 0 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,6 @@ cd epson_print_conf
pip install -r requirements.txt
```

Alternatively, install requirements via command line:

```
git clone https://github.com/Ircama/epson_print_conf
pip3 install pyyaml
pip3 install pyasn1==0.4.8
pip3 install git+https://github.com/etingof/pysnmp.git
pip3 install tkcalendar
pip3 install pyperclip
pip3 install black
pip3 install tomli
cd epson_print_conf
```

With Python 12, also: `pip3 install pyasyncore`.

Notes (at the time of writing):

- [before pysnmp, install pyasn1 with version 0.4.8 and not 0.5](https://github.com/etingof/pysnmp/issues/440#issuecomment-1544341598)
Expand Down
14 changes: 14 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# ELM327-emulator Security Policy

*ELM327-emulator* is a testing software which is not expected to run in production environments. Considering that the dictionary allows executing user-defined commands,
it is important to revise any third-party customization to avoid that security flaws are introduced.

Security bugs will be taken seriously and,
if confirmed upon investigation, a new patch will be released within a reasonable amount of time, including a security bulletin and the credit to the discoverer.

Warning: when using the TCP/IP networking, the INET socket is bound to all interfaces.

## Reporting a Security Bug

The way to report a security bug is to open an [issue](https://github.com/Ircama/ELM327-emulator/issues) including related information
(e.g., reproduction steps, version).
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
remote_theme: ircama/just-the-docs
remote_theme: Ircama/just-the-docs

# Enable or disable the site search
# Supports true (default) or false
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ tkcalendar
pyperclip
black
tomli
text-console>=1.0.0
Loading

0 comments on commit 908f790

Please sign in to comment.