Skip to content

Commit 29a0e97

Browse files
authored
Update python version (#285)
1 parent c21047b commit 29a0e97

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

semantic-conventions/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Please update the changelog as part of any significant pull request.
44

55
## Unreleased
66

7+
- Change minimum support python version to 3.10 in setup.cfg and Dockerfile
8+
([#285](https://github.com/open-telemetry/build-tools/pull/285))
79
- BREAKING: Make stability required (also: fix ref and extends, render badges on metrics).
810
([#272](https://github.com/open-telemetry/build-tools/pull/272))
911
- BREAKING: Make stability and deprecation independent properties.

semantic-conventions/CONTRIBUTING.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,11 @@ _Note:_ `venv` integrations exist for IDEs such as [PyCharm](https://www.jetbrai
4848

4949
See the offical documents for creating and [using](https://docs.python.org/3/tutorial/venv.html) a [venv environment](https://docs.python.org/3/library/venv.html). All "python" commands listed in this document should be run in an activated `venv`.
5050

51+
**Note**, ensure the venv you create is using the earliest supported version of python as defined in `setup.cfg`
5152

5253
```bash
5354
# note that it's convention to not store your venv in your working directory, lest build tooling "pick up" venv configuration.
54-
python3 -m venv ../semconvgen
55+
python3.10 -m venv ../semconvgen
5556
source ../semconvgen/bin/activate
5657
# Run your pip/wheel commands as described elsewhere in this documentation here.
5758
# reset your environment by typing 'deactivate' or by exiting your TTY

semantic-conventions/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9.5-alpine3.12
1+
FROM python:3.10-alpine
22
LABEL maintainer="The OpenTelemetry Authors"
33
ADD *.whl /semconvgen/
44
WORKDIR /semconvgen

semantic-conventions/setup.cfg

+6-5
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@ classifiers =
2626
License :: OSI Approved :: Apache Software License
2727
Programming Language :: Python
2828
Programming Language :: Python :: 3
29-
Programming Language :: Python :: 3.6
30-
Programming Language :: Python :: 3.7
31-
Programming Language :: Python :: 3.8
32-
Programming Language :: Python :: 3.9
29+
Programming Language :: Python :: 3.10
30+
Programming Language :: Python :: 3.11
31+
Programming Language :: Python :: 3.12
32+
Programming Language :: Python :: 3.13
3333
[options]
34-
python_requires = >=3.6
34+
# Ensure this remains synced with our Dockerfile
35+
python_requires = >=3.10
3536
package_dir=
3637
=src
3738
packages=find_namespace:

0 commit comments

Comments
 (0)