Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[run]
branch = True
source =
distro.py

[paths]
source =
distro.py
.tox/*/lib/python*/site-packages/distro.py
.tox/pypy/site-packages/distro.py

[report]
exclude_lines =
if __name__ == .__main__.:
raise ImportError
raise subprocess.CalledProcessError
60 changes: 60 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

# C extensions
*.so

# Distribution / packaging
.Python
/env/
/bin/
/build/
/develop-eggs/
/dist/
/eggs/
/lib/
/lib64/
/parts/
/sdist/
/var/
/*.egg-info/
.installed.cfg
*.egg

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
/htmlcov/
/.tox/
.coverage
.cache
nosetests.xml
coverage.xml

# Translations
*.mo

# Mr Developer
.mr.developer.cfg
.project
.pydevproject

# Rope
.ropeproject

# Django stuff:
*.log
*.pot

# Sphinx documentation
/docs/_build/

*.iml

*COMMIT_MSG

# QuickBuild
.qbcache/
43 changes: 41 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,43 @@
## 1.8.0 (2022.10.10)

BACKWARD COMPATIBILITY:
* Replace `setup.py` with `build` [[#342](https://github.com/python-distro/distro/pull/342)]

ENHANCEMENTS:
* Lowered `LinuxDistribution._distro_release_info` method complexity [[#327](https://github.com/python-distro/distro/pull/327)]
* Added official support for Buildroot distribution [[#329](https://github.com/python-distro/distro/pull/329)]
* Added official support for Guix distribution [[#330](https://github.com/python-distro/distro/pull/330)]
* Added support for `/etc/debian_version` [[#333](https://github.com/python-distro/distro/pull/333)] & [[#349](https://github.com/python-distro/distro/pull/349)]
* Fixed a typography in CONTRIBUTING.md [[#340](https://github.com/python-distro/distro/pull/340)]
* Improved README.md "Usage" code block [[#343](https://github.com/python-distro/distro/pull/343)]

RELEASE:
* Bumped black to v22.3.0 in pre-commit.ci configuration [[#331](https://github.com/python-distro/distro/pull/331)]
* Enabled GitHub Dependabot to keep GitHub Actions up to date [[#335](https://github.com/python-distro/distro/pull/335)]

## 1.7.0 (2022.02.15)

BACKWARD COMPATIBILITY:
* Dropped support for EOL Pythons 2.7, 3.4 and 3.5 [[#281](https://github.com/python-distro/distro/pull/281)]
* Dropped support for LSB and `uname` back-ends when `--root-dir` is specified [[#311](https://github.com/python-distro/distro/pull/311)]
* Moved `distro.py` to `src/distro/distro.py` [[#315](https://github.com/python-distro/distro/pull/315)]

ENHANCEMENTS:
* Documented that `distro.version()` can return an empty string on rolling releases [[#312](https://github.com/python-distro/distro/pull/312)]
* Documented support for Python 3.10 [[#316](https://github.com/python-distro/distro/pull/316)]
* Added official support for Rocky Linux distribution [[#318](https://github.com/python-distro/distro/pull/318)]
* Added a shebang to `distro.py` to allow standalone execution [[#313](https://github.com/python-distro/distro/pull/313)]
* Added support for AIX platforms [[#311](https://github.com/python-distro/distro/pull/311)]
* Added compliance for PEP-561 [[#315](https://github.com/python-distro/distro/pull/315)]

BUG FIXES:
* Fixed `include_uname` parameter oversight [[#305](https://github.com/python-distro/distro/pull/305)]
* Fixed crash when `uname -rs` output is empty [[#304](https://github.com/python-distro/distro/pull/304)]
* Fixed Amazon Linux identifier in `distro.id()` documentation [[#318](https://github.com/python-distro/distro/pull/318)]
* Fixed OpenSuse >= 15 support [[#319](https://github.com/python-distro/distro/pull/319)]
* Fixed encoding issues when opening distro release files [[#324](https://github.com/python-distro/distro/pull/324)]
* Fixed `linux_distribution` regression introduced in [[#230](https://github.com/python-distro/distro/pull/230)] [[#325](https://github.com/python-distro/distro/pull/325)]

## 1.6.0 (2021.7.30)

BACKWARDS COMPATIBILITY:
Expand Down Expand Up @@ -107,7 +147,7 @@ RELEASE:
## 1.0.4 (2017.04.01)

BUG FIXES:
* Guess common *-release files if /etc not readable [[#175](https://github.com/python-distro/distro/issues/175)]
* Guess common \*-release files if /etc not readable [[#175](https://github.com/python-distro/distro/issues/175)]

## 1.0.3 (2017.03.19)

Expand Down Expand Up @@ -190,4 +230,3 @@ TESTS:

DOCS:
* Documentation fixes

4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ def test_centos5_dist_release(self):
self._test_outcome(desired_outcome, 'centos', '5')
```

Where the name of the method is not indicative of the lookup folder but rather tha two last arguments in `_test_outcome`.
Where the name of the method is not indicative of the lookup folder but rather the two last arguments in `_test_outcome`.

A test case is mandatory under `TestOverall` for a PR to be complete.
A test case is mandatory under `TestOverall` for a PR to be complete.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ PACKAGENAME = distro

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?= -v
SPHINXOPTS ?= -n -v
SPHINXBUILD ?= sphinx-build
SPHINXSOURCEDIR = docs
SPHINXBUILDDIR = docs/_build
Expand Down Expand Up @@ -54,7 +54,7 @@ clean:

.PHONY: build
build:
python setup.py sdist bdist_wheel
python -m build

.PHONY: publish
publish:
Expand All @@ -72,12 +72,12 @@ dev: instdev test
.PHONY: instdev
instdev:
pip install -r dev-requirements.txt
python setup.py develop
pip install -e .
@echo "$@ done."

.PHONY: install
install:
python setup.py install
pip install .
@echo "$@ done."

.PHONY: clobber
Expand Down
169 changes: 0 additions & 169 deletions PKG-INFO

This file was deleted.

Loading
Loading