Skip to content

Commit

Permalink
build(pip): implement PEP 621 (#29)
Browse files Browse the repository at this point in the history
update tox config
update ci; remove restore-keys

BREAKING CHANGE: drop support for Python 3.6
  • Loading branch information
cesarcoatl authored Feb 2, 2023
1 parent 25d2ce2 commit 400f01d
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 59 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10"]

steps:
- name: Checkout repo
Expand All @@ -32,8 +32,6 @@ jobs:
with:
path: ${{ env.pythonLocation }}
key: py${{ matrix.python-version }}-${{ hashFiles('tox.ini', 'requirements/ci.txt') }}
restore-keys: |
py${{ matrix.python-version }}-

- name: Install dependencies
run: |
Expand All @@ -55,8 +53,6 @@ jobs:
with:
path: .tox
key: ${{ runner.os }}-tox-${{ hashFiles('tox.ini', 'requirements.txt') }}
restore-keys: |
${{ runner.os }}-tox-

- name: Run tests
run: |
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## v2023.1.0.post1 (2023-02-02)

## v2023.1.0 (2023-01-11)

### Feat
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This package contains a collection of [stubs](https://www.python.org/dev/peps/pe

## Installation and usage

To use `incendium-stubs`, you may install it with `pip`. It requires Python 3.6 through 3.10.
To use `incendium-stubs`, you may install it with `pip`. It requires Python 3.7 through 3.10.

```sh
python -m pip install incendium-stubs
Expand Down
52 changes: 51 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,55 @@
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=59",
"setuptools>=61.2",
]

[project]
name = "incendium_stubs"
version = "2023.1.0.post1"
description = "incendium stubs package"
readme = "README.md"
keywords = [
"hmi",
"ignition",
"inductive automation",
"scada",
]
license = {file = "LICENSE"}
authors = [{name = "César Román", email = "[email protected]"}]
requires-python = "<3.11, >=3.7"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Manufacturing",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Typing :: Stubs Only",
"Typing :: Typed",
]
dependencies = [
"ignition-api-stubs",
]
[project.urls]
Funding = "https://github.com/sponsors/thecesrom"
Homepage = "https://thecesrom.dev/incendium-stubs"
Source = "https://github.com/thecesrom/incendium-stubs"
Tracker = "https://github.com/thecesrom/incendium-stubs/issues"


[tool.setuptools]
include-package-data = true
package-dir = {"" = "stubs"}

[tool.setuptools.package-data]
"*" = ["*.pyi", "py.typed"]
50 changes: 0 additions & 50 deletions setup.cfg

This file was deleted.

5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[tox]
isolated_build = true
skip_missing_interpreters = true
env_list =
py3{10, 9, 8, 7, 6}
py3{10, 9, 8, 7}
requires =
tox>=4

[testenv:py310]
description = install and run type check on code base
Expand Down

0 comments on commit 400f01d

Please sign in to comment.