Skip to content

Commit 271ef40

Browse files
authored
Merge pull request #34 from toyama0919/feature/drop-python37
drop python3.7
2 parents 1ebe45f + ffdd902 commit 271ef40

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
18+
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1919

2020
steps:
2121
- uses: actions/checkout@v4

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Command Line utility for Provides aws cost very easy to see.
77

8-
Supports python 3.7 or later.
8+
Supports python 3.8 or later.
99

1010
## Install
1111

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
[project]
22
name = "awscost"
3-
version = "0.3.2"
3+
version = "0.4.0"
44
description = "Command Line utility for cost of aws."
55
authors = [{ name="Hiroshi Toyama", email="toyama0919@gmail.com" }]
66
readme = "README.md"
77
classifiers = [
8-
"Programming Language :: Python :: 3.7",
98
"Programming Language :: Python :: 3.8",
109
"Programming Language :: Python :: 3.9",
1110
"Programming Language :: Python :: 3.10",
1211
"Programming Language :: Python :: 3.11",
12+
"Programming Language :: Python :: 3.12",
1313
]
1414
keywords = [
1515
"awscost",
1616
"tool",
1717
"aws",
1818
]
19-
requires-python = ">=3.7"
19+
requires-python = ">=3.8"
2020
dependencies = [
2121
"tabulate",
2222
"boto3",
@@ -32,6 +32,7 @@ test = [
3232
"tox",
3333
"pytest",
3434
"mock",
35+
"build",
3536
]
3637

3738
[project.scripts]

scripts/ci.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ release() {
1414
# upload pypi
1515
tox -e release
1616
# git tag
17-
git tag v$(python setup.py --version)
17+
VERSION=$(grep -m 1 version pyproject.toml | tr -s ' ' | tr -d '"' | tr -d "'" | cut -d' ' -f3)
18+
git tag v${VERSION}
1819
git push origin --tags
1920
}
2021

src/awscost/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import pkg_resources
1+
from importlib.metadata import version
22

3-
VERSION = pkg_resources.get_distribution("awscost").version
3+
VERSION = version("awscost")

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ commands =
2828
allowlist_externals =
2929
rm
3030
deps =
31+
build
3132
twine
3233
commands =
3334
rm -rf dist
34-
python -m build
35+
python -m build -s
3536
twine upload --verbose dist/*.tar.gz

0 commit comments

Comments
 (0)