Skip to content

Commit

Permalink
Update build process (#53)
Browse files Browse the repository at this point in the history
* replace config files with pyproject.toml

* update actions

* change fail threshold for pylint

* reformat file for test

* reformat all files with new black config

* address some pylint concerns

* transition scripts to pyproject.toml file

- drops some scripts for the moment

* add demos folder to package list

* rename demos to scripts

- rename folder with scripts
- rename entry points to be more consistent

* fix error in scope demo

* add licens info and optional dependencies
  • Loading branch information
drunsinn authored Oct 8, 2023
1 parent dde1ecd commit 9504246
Show file tree
Hide file tree
Showing 32 changed files with 569 additions and 1,502 deletions.
5 changes: 0 additions & 5 deletions .codespellrc

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
with:
options: "--verbose"
18 changes: 11 additions & 7 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,27 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: msgfmt
uses: whtsky/msgfmt-action@6b2181f051b002182d01a1e1f1aff216230c5a4d
pip install setuptools wheel twine tox
- name: Create Translation Files
uses: docker://textadi/build-language-i18n-action@v2
env:
WORKDIR: "pyLSV2/locales"
DIR: pyLSV2/locales

- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
pip wheel -w dist .
twine upload dist/*
Loading

0 comments on commit 9504246

Please sign in to comment.