Commit Graph

16 Commits

Author SHA1 Message Date
Jonas Malaco daa7d6db7c krakenz3_response: turn black off locally instead of globally 2022-09-21 23:44:42 -03:00
Shady Nawara f455e3f446
kraken3: add LCD screen support for Kraken Z coolers (#479)
Closes: #444
2022-09-18 01:22:45 -03:00
Jonas Malaco 837612d958 udev: convert to psf/black to avoid mixed styles 2022-08-11 12:42:54 -03:00
Jonas Malaco eede79d0b4 version: fix missing version_scheme setuptools_scm parameter 2022-03-17 11:47:23 -03:00
Jonas Malaco 473fe9a581 setup: use release-branch-semver setuptools_scm scheme 2022-03-04 10:06:34 -03:00
Jonas Malaco 2fd03ec397 Revert "setup: use default guess-next-dev setuptools_scm version scheme"
This reverts commit 01a6f2b0f0.

The behavior I was actually hoping for the guess to be done by
incrementing the _minor_ segment.  Apparently that is available through
python-simplified-semver version scheme, but let's leave it for later,
when I can do more tests with it.
2022-03-03 10:00:44 -03:00
Jonas Malaco 01a6f2b0f0 setup: use default guess-next-dev setuptools_scm version scheme 2022-03-03 09:55:27 -03:00
Jonas Malaco 35d8e19a88 Merge branch 'main' into recognize-hwmon-devices 2022-02-26 06:46:21 -03:00
Jonas Malaco 18d3898171 liquidctl: re-export __version__ at the root 2022-02-26 06:35:18 -03:00
Jonas Malaco 9e313cff09 black: fix extend-exclude patterns 2022-02-26 06:35:15 -03:00
Jonas Malaco 3d05977353 build: move to PEP 517
The build backend remains setuptools (for now).

Additionally, setuptools_scm is adopted, in place of our previous ad-hoc
handling of extracting version information from git.  This plugin also
provides some interesting extra features, like automatic inclusion of
all versioned data files; now MANIFEST.in only needs to specify the very
few files to exclude from the source distribution.

On the other hand, the DIST_NAME and DIST_PACKAGE environment variables
are currently not being used.  Their main purpose is somewhat fulfilled
with platform.platform(); and by not using them the new build setup can
be completely declarative, requiring users to run no custom code or ours
when building or installing liquidctl.

As the build backend is setuptools, setup.cfg is used for metadata and
other backend configuration, per the current setuptools docs.[^1]  This
also means that we have yet not moved to PEP 621 ("Storing project
metadata in pyproject.toml").[^2]

To build the sdist and universal wheel, use python-build.[^3] Locally,
pip is still a suitable way to install, and --editable mode is still
supported. But when re-packing for Linux or other distributions,
consider python-installer.[^4][^5][^6]

[^1]: https://setuptools.pypa.io/en/latest/build_meta.html
[^2]: https://www.python.org/dev/peps/pep-0621/
[^3]: https://github.com/pypa/build
[^4]: https://github.com/pradyunsg/installer
[^5]: https://lists.archlinux.org/pipermail/arch-dev-public/2022-February/030737.html
[^6]: https://wiki.archlinux.org/title/Python_package_guidelines#Standards_based_(PEP_517)
2022-02-26 06:35:10 -03:00
Jonas Malaco 49852d8d0e base: improve the documentation of abstract driver methods
This also fixes whitespace in the module, and enables black.
2022-02-23 05:23:43 -03:00
Jonas Malaco d241dd2415 tests: smart_device: v2: clean up the module
Since this would already touch most formatting-sensitive parts of the
module, also convert to the black style.
2022-02-23 05:23:41 -03:00
Jonas Malaco 26a2dcccf2 tests: kraken3: clean up the module
Since this would already touch most formatting-sensitive parts of the
module, also convert to the black style.
2022-02-23 05:23:35 -03:00
Jonas Malaco 7fe88b7a99 pytest: move configuration to pyproject.toml 2022-02-18 19:16:15 -03:00
Jonas Malaco 9ad88574af black: start to adopt black for new files
Related: #321
2022-02-18 19:15:54 -03:00