Skip to content

Commit

Permalink
chore: fix package definition (Merge pull request #771 from Hugovdber…
Browse files Browse the repository at this point in the history
…g/chore_fix_package_definition)

Chore fix package definition
  • Loading branch information
Hugovdberg authored Jun 24, 2024
2 parents c2460bf + 5961e5a commit 7dcec64
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 30 deletions.
55 changes: 28 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,43 @@ on:
- cron: "27 19 * * 3"

jobs:
lint_and_check_format:
name: Lint and Check Formatting
runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install ruff
- name: Lint with ruff
run: |
ruff check .
- name: Check formatting with ruff
run: |
ruff format --check
run_tests:
name: Test with Python ${{ matrix.python-version }}
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: [
'3.9'
, '3.10'
'3.10'
, '3.11'
, '3.12'
]

needs: lint_and_check_format
steps:
- uses: actions/checkout@v4

Expand All @@ -43,30 +68,6 @@ jobs:
run: |
pytest
lint_and_check_format:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install ruff
- name: Lint with ruff
run: |
ruff check .
- name: Check formatting with ruff
run: |
ruff format --check
# codacy-security-scan:
# name: Codacy Security Scan
# runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion PIconnect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

# pragma pylint: enable=unused-import

__version__ = "0.11.2"
__version__ = "0.12.0"
__sdk_version = tuple(int(x) for x in AF.PISystems().Version.split("."))

__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ convention = "numpy"


[tool.bumpversion]
current_version = "0.11.2"
current_version = "0.12.0"
tag = false
commit = true
message = "chore: Bump version: {current_version} → {new_version}"
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ project_urls =
packages =
PIconnect
PIconnect._typing
PIconnect._typing.dotnet
install_requires =
pandas
wrapt
pythonnet
python_requires = >= 3.9
python_requires = >= 3.10
include_package_data = True
zip_safe=False

Expand Down

0 comments on commit 7dcec64

Please sign in to comment.