forked from pool/python-docformatter
- Update to 1.7.5:
* Features
+ fix: not recognizing `yield` as a sphinx field name
+ feat: support epytext style
+ feat: use tomllib for Python 3.11+
+ feat: wrap Sphinx style long parameter descriptions
+ feat: add option for user to provide list of words not to capitalize
+ Support python 3.11
* Bug Fixes
+ fix: summary with back ticks and sphinx field names with periods
+ fix: removing newline between Sphinx field lists
+ fix: wrapping issues with reST directives, quoted URLs, and Sphinx
field lists
+ fix: improper wrapping of short anonymous hyperlnks
+ fix: removing blank line after import section
+ fix: IndexError when only URL in long description
+ fix: removing newline after shebang
+ fix: not capitalizing first word when summary ends in period
+ fix: adding newlines around wrapped URL
+ fix: adding blank line in summary with symbol
+ fix: remove blank lines after line beginning with 'def'
+ fix: update URL handling functions
- Switch to autosetup and pyproject macros.
- No more greedy globs in %files.
- Add patches:
* remove-mock.patch
+ Do not use external mock module
* support-python-312.patch
+ Support Python 3.12+ changes
* do-not-require-venv.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docformatter?expand=0&rev=19
This commit is contained in:
15
do-not-require-venv.patch
Normal file
15
do-not-require-venv.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
Index: docformatter-1.7.5/tests/conftest.py
|
||||
===================================================================
|
||||
--- docformatter-1.7.5.orig/tests/conftest.py
|
||||
+++ docformatter-1.7.5/tests/conftest.py
|
||||
@@ -113,8 +113,9 @@ def run_docformatter(arguments, temporar
|
||||
os.environ["VIRTUAL_ENV"] + "/bin/docformatter",
|
||||
]
|
||||
else:
|
||||
+ version = f"{sys.version_info.major}.{sys.version_info.minor}"
|
||||
DOCFORMATTER_COMMAND = [
|
||||
- os.environ["VIRTUAL_ENV"] + "/bin/docformatter",
|
||||
+ f"{os.environ['BUILDROOT']}/usr/bin/docformatter-{version}",
|
||||
] # pragma: no cover
|
||||
|
||||
if "-" not in arguments:
|
||||
Reference in New Issue
Block a user