diff --git a/.gitignore b/.gitignore index e9b50a3..f2330dd 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,7 @@ __pycache__/ /*.egg-info/ .installed.cfg *.egg +src/*.egg-info/ # Installer logs pip-log.txt diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 0000000..32cbfd2 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,14 @@ +version: 2 + +build: + os: ubuntu-22.04 + tools: + python: "3.12" + +sphinx: + configuration: docs/conf.py + +python: + install: + - method: pip + path: . \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 75588d2..aafc850 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ +## 1.9.0 (2023.12.19) + +ENHANCEMENTS: +* Refactor distro.info() method to return an InfoDict [[#360](https://github.com/python-distro/distro/pull/360)] +* Ignore the file '/etc/board-release' [[#353](https://github.com/python-distro/distro/pull/353)] +* Ignore the file '/etc/ec2_version' [[#359](https://github.com/python-distro/distro/pull/353)] + +RELEASE: +* Run Python 3.6 on Ubuntu 20.04 for CI and bump isort [[#355](https://github.com/python-distro/distro/pull/355)] + +TESTS: +* Test on modern versions of CPython and PyPy and macOS [[#362](https://github.com/python-distro/distro/pull/362)] +* Add support for ALT Linux Server 10.1 distribution [[#354](https://github.com/python-distro/distro/pull/354)] +* Add Debian Testing to the tests [[#356](https://github.com/python-distro/distro/pull/356)] +* Update archlinux resource for tests [[#352](https://github.com/python-distro/distro/pull/352)] + ## 1.8.0 (2022.10.10) BACKWARD COMPATIBILITY: diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index a62fe6f..3568c8f 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -1,14 +1,3 @@ -Thanks! +We thank anyone who has contributed to this project, and welcome anyone to contribute further. -* https://github.com/andy-maier -* https://github.com/SethMichaelLarson -* https://github.com/asottile -* https://github.com/MartijnBraam -* https://github.com/funkyfuture -* https://github.com/adamjstewart -* https://github.com/xavfernandez -* https://github.com/xsuchy -* https://github.com/marcoceppi -* https://github.com/tgamblin -* https://github.com/sebix -* https://github.com/jdufresne +For a list of contributors, please see https://github.com/python-distro/distro/graphs/contributors \ No newline at end of file diff --git a/Makefile b/Makefile index ad3ec56..7f43596 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# Copyright 2015,2016 Nir Cohen +# Copyright 2015-2021 Nir Cohen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -43,7 +43,7 @@ release: test clean build publish .PHONY: test test: - pip install 'tox>=1.7.2' + pip install 'tox>=1.9.0' tox @echo "$@ done." diff --git a/README.md b/README.md index de6f3c7..27c3aee 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@ Distro - an OS platform information API [![Code Coverage](https://codecov.io/github/python-distro/distro/coverage.svg?branch=master)](https://codecov.io/github/python-distro/distro?branch=master) [![Is Wheel](https://img.shields.io/pypi/wheel/distro.svg?style=flat)](https://pypi.python.org/pypi/distro) [![Latest Github Release](https://readthedocs.org/projects/distro/badge/?version=stable)](http://distro.readthedocs.io/en/latest/) -[![Join the chat at https://gitter.im/python-distro/distro](https://badges.gitter.im/python-distro/distro.svg)](https://gitter.im/python-distro/distro?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) `distro` provides information about the OS distribution it runs on, such as a reliable machine-readable ID, or diff --git a/dev-requirements.txt b/dev-requirements.txt index 0645a66..0335cd4 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -4,3 +4,4 @@ sphinx>=1.1 pre-commit==2.13.0; python_version > '3.5' black; python_version > '3.5' and platform_python_implementation != 'PyPy' mypy; python_version > '3.5' and platform_python_implementation != 'PyPy' +build \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index c163a94..6f694f0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -26,6 +26,8 @@ classifiers = Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 + Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 Topic :: Software Development :: Libraries :: Python Modules Topic :: System :: Operating System diff --git a/src/distro/distro.py b/src/distro/distro.py index a54bafc..78ccdfa 100755 --- a/src/distro/distro.py +++ b/src/distro/distro.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# Copyright 2015,2016,2017 Nir Cohen +# Copyright 2015-2021 Nir Cohen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -55,7 +55,7 @@ # Python 3.7 TypedDict = dict -__version__ = "1.8.0" +__version__ = "1.9.0" class VersionDict(TypedDict): diff --git a/tox.ini b/tox.ini index f080b5c..bc1e8d6 100644 --- a/tox.ini +++ b/tox.ini @@ -1,4 +1,4 @@ -# Copyright 2015,2016 Nir Cohen +# Copyright 2015-2021 Nir Cohen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License.