Skip to content

Commit

Permalink
правки
Browse files Browse the repository at this point in the history
  • Loading branch information
HamletSargsyan committed Oct 31, 2024
1 parent 3b3b081 commit 8b0014d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 19 deletions.
4 changes: 0 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [3.1.0] - 2024-10-31

## [3.1.0] - 2024-10-31

### Added

- Новые атрибуты для класса `Record`: `filename`, `line`, `basename`, `relpath`, `function`
Expand Down
25 changes: 16 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
[build-system]
requires = [ "poetry-core",]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "tinylogging"
version = "3.1.0"
version = "3.0.0"
description = ""
authors = [ "Hamlet <[email protected]>",]
authors = ["Hamlet <[email protected]>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/HamletSargsyan/tinylogging"
homepage = "https://github.com/HamletSargsyan/tinylogging"
keywords = [ "logging",]
classifiers = [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Operating System :: OS Independent", "Intended Audience :: Developers",]
keywords = ["logging"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Intended Audience :: Developers"
]

[tool.poetry.dependencies]
python = "^3.8"
Expand All @@ -22,4 +26,7 @@ anyio = "4.6.2.post1"
[tool.poetry.group.dev.dependencies]
ruff = "^0.7.1"
pre-commit = "^4.0.1"
try.core.masonry.api"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
9 changes: 4 additions & 5 deletions tools/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def usage():

def run_command(command: str):
if os.system(command):
os.system("git reset --hard")
print(f'\n\nКоманда "{command}" завершилась с ошибкой.')
os.system("git reset --hard")
sys.exit(1)


Expand Down Expand Up @@ -63,12 +63,11 @@ def run_command(command: str):
with open("version", "w") as f:
f.write(str(version))

with open("pyproject.toml", "r+") as f:
with open("pyproject.toml", "r") as f:
pyproject = toml.load(f)
pyproject["tool"]["poetry"]["version"] = str(version)

f.seek(0)
pyproject["tool"]["poetry"]["version"] = str(version)

with open("pyproject.toml", "w") as f:
toml.dump(pyproject, f)

with open("CHANGELOG.md", "r") as f:
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.0
3.0.0

0 comments on commit 8b0014d

Please sign in to comment.