-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
1,564 additions
and
463 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
########################################################################### | ||
# ELM327-emulator | ||
# ELM327 Emulator for testing software interfacing OBDII via ELM327 adapter | ||
# https://github.com/Ircama/ELM327-emulator | ||
# (C) Ircama 2021 - CC-BY-NC-SA-4.0 | ||
########################################################################### | ||
|
||
name: Upload ELM327-emulator Package to PyPI and TestPyPI | ||
|
||
#on: | ||
# release: | ||
# types: [created] | ||
|
||
#on: [push] | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
build-n-publish: | ||
name: Build and publish Python to PyPI and TestPyPI | ||
runs-on: ubuntu-latest | ||
|
||
# Checking out the project and building distributions | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
# This will download your repository into the CI runner and then install and activate Python | ||
|
||
- name: Install upgrade pip | ||
run: >- | ||
python -m | ||
pip install | ||
--upgrade pip | ||
- name: Install dependencies | ||
run: >- | ||
python -m | ||
pip install pyyaml python-daemon tendo python-OBD setuptools wheel twine | ||
- name: Install pypa/build | ||
run: >- | ||
python -m | ||
pip install | ||
build | ||
--user | ||
- name: Build a binary wheel and a source tarball | ||
run: >- | ||
python setup.py sdist bdist_wheel | ||
# This will create the /dist directory including the package build. | ||
|
||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
twine upload --repository pypi dist/* | ||
twine upload --repository testpypi dist/* | ||
# This will publish the /dist directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ __pycache__/ | |
|
||
# C extensions | ||
*.so | ||
*.log | ||
*.log.* | ||
|
||
# Distribution / packaging | ||
log/ | ||
|
Oops, something went wrong.