Skip to content

Commit

Permalink
fix doc build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
thebjorn committed Nov 30, 2023
1 parent 5fde4df commit c61a3cb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
10 changes: 5 additions & 5 deletions dkfileutils/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def glob(self, pat: str) -> list[Path]:
else:
r += pat[i]
i += 1
r += r'\Z(?ms)'
r = r'(?ms)' + r + r'\Z'
rx = re.compile(r)

def match(d):
Expand Down Expand Up @@ -307,11 +307,11 @@ def switchext(self, ext):
def splitunc(self):
return os.path.splitunc(self)

@doc(os.access)
# @doc(os.access)
def access(self, *args, **kw):
return os.access(self, *args, **kw)

@doc(os.chdir)
# @doc(os.chdir)
def chdir(self):
return os.chdir(self)

Expand All @@ -334,7 +334,7 @@ def list(self, filterfn=lambda x: True):
"""
return [self / p for p in self.listdir() if filterfn(self / p)]

@doc(os.listdir)
# @doc(os.listdir)
def listdir(self):
return [Path(p) for p in os.listdir(self)]

Expand Down Expand Up @@ -414,7 +414,7 @@ def startfile(self, *args, **kw):
def stat(self, *args, **kw):
return os.stat(self, *args, **kw)

@doc(os.utime)
# @doc(os.utime)
def utime(self, time=None):
os.utime(self, time)
return self.stat()
Expand Down
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,5 @@


# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {'https://docs.python.org/2': None}
intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}
# intersphinx_mapping = {'https://docs.python.org/': None}
12 changes: 6 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
pytest>=4.6
pytest-cov>=2.12.1
coverage==5.5
sphinxcontrib-websupport==1.1.2 # latest version with py 2.7 support
Sphinx==1.8.5
PyYAML==5.1.2
pytest>=7.2.1
pytest-cov>=4.0.0
coverage>=5.5
# sphinxcontrib-websupport==1.1.2 # latest version with py 2.7 support
Sphinx>=5.2.3
PyYAML>=5.4.1
yamldirs>=1.0.9
typing==3.6.4

0 comments on commit c61a3cb

Please sign in to comment.