Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use scriv #61

Merged
merged 1 commit into from
Aug 28, 2024
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
3 changes: 3 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
max-line-length = 88
extend-ignore = E203
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

<!-- scriv-insert-here -->

## 1.2 - 2024-08-28

* Close instantiated sockets on connection error to prevent `ResourceWarning`s.
Expand All @@ -25,6 +27,8 @@
* local logging encodes priority levels for journald/syslog, can be handled via
journald config as seen in daemon/globus_cw_daemon_install/example-journald.conf

<!-- scriv-end-here -->

## beta-4

* raise custom Exception classes in client
Expand Down
3 changes: 3 additions & 0 deletions changelog.d/20240828_173012_kurtmckee_scriv.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Development

- Use scriv to manage the CHANGELOG.
1 change: 1 addition & 0 deletions changelog.d/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Changelog fragments are stored here but managed by scriv during development.
46 changes: 46 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# scriv
# -----

[tool.scriv]
version = "command: grep -e 'version=' client/setup.py | grep -oPe '[\\d.]+'"
categories = [
"Python support",
"Added",
"Fixed",
"Removed",
"Changed",
"Deprecated",
"Security",
"Development",
]
entry_title_template = "{{ version }} - {{ date.strftime('%Y-%m-%d') }}"
format = "md"
md_header_level = "2"
fragment_directory = "changelog.d"
insert_marker = "scriv-insert-here"
main_branches = ["main"]


# isort
# -----

[tool.isort]
profile = "black"


# mypy
# ----

[tool.mypy]
ignore_missing_imports = true
sqlite_cache = true


# pytest
# ------

[tool.pytest.ini_options]
addopts = "--color=yes"
filterwarnings = [
"error",
]
22 changes: 0 additions & 22 deletions setup.cfg

This file was deleted.