Commit Graph

12 Commits

Author SHA1 Message Date
Shady Nawara 7bda2f32fa
kraken3: use updated winusbcdc (#535) 2022-11-24 09:08:16 -03:00
Jonas Malaco 5116c4290c setup: add Python 3.11 metadata 2022-10-26 08:13:23 -03:00
Jonas Malaco 99ef3e0851 metadata: remove dead funding url 2022-09-24 03:32:54 -03:00
Jonas Malaco f7236c691d metadata: add more keywords 2022-09-23 23:54:49 -03:00
Aleksa Savić a81c9b53e6
aquacomputer: add support for setting fan speed for D5 Next (#499) 2022-09-21 13:53:41 -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 1ff340fdce setup: link to funding document from PyPI
Closes: #409
2022-03-25 08:26:41 -03:00
Jonas Malaco 7f490aa7b7 tree: fix libusb-package package name
The package name differs from the corresponding module name: the former
uses a hyphen, while the latter a underscore.  Use the correct name in
each context, even if the tools appear to tolerate and automatically fix
some mistakes.
2022-03-12 17:32:46 -03:00
Jonas Malaco 1f9ff1cf03 setup: add long_description metadata for PyPI 2022-03-12 03:43:24 -03:00
Jonas Malaco 28c8be5177 usb: use libusb_package on win32 and cygwin
libusb_package provides the LibUSB 1.0.x DLL for Windows/Cygwin in a
convenient way, avoiding having the user manually extract and copy the
DLL from a LibUSB release archive.
2022-03-08 05:13:38 -03:00
Jonas Malaco cc0050f1b5 setup: add URL for source in the metadata for PyPI
Related: pyusb/pyusb#412
2022-03-02 14:10:02 -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