Skip to content

Commit

Permalink
Optimize some repo metastuff and prepare v1.9.0 (#364)
Browse files Browse the repository at this point in the history
* Update copyright dates

* Add build dependency to dev-requirements.txt

* Add src/*-egg-info/ to .gitignore

* Add missing Python classifiers

* Remove gitter link from README.md

Our gitter channel doesn't exist anymore anyway.

* Make CONTRIBUTORS.md relevant

* Update CHANGELOG.md with latest unreleased changes

* Release v1.9.0

* Fix review comments

* Add .readthedocs.yaml config to fix docs deployment
  • Loading branch information
nir0s authored Dec 22, 2023
1 parent 95ffcb6 commit 8d88a2d
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ __pycache__/
/*.egg-info/
.installed.cfg
*.egg
src/*.egg-info/

# Installer logs
pip-log.txt
Expand Down
14 changes: 14 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -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: .
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
15 changes: 2 additions & 13 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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."

Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/distro/distro.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -55,7 +55,7 @@
# Python 3.7
TypedDict = dict

__version__ = "1.8.0"
__version__ = "1.9.0"


class VersionDict(TypedDict):
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 8d88a2d

Please sign in to comment.