Skip to content

Commit

Permalink
Version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ircama committed Jan 9, 2021
1 parent 2bd69e8 commit 96cb824
Show file tree
Hide file tree
Showing 14 changed files with 1,564 additions and 463 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/python-publish.yml
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.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ __pycache__/

# C extensions
*.so
*.log
*.log.*

# Distribution / packaging
log/
Expand Down
Loading

0 comments on commit 96cb824

Please sign in to comment.