Skip to content

Commit

Permalink
separate docs config
Browse files Browse the repository at this point in the history
  • Loading branch information
keotl committed Dec 21, 2023
1 parent 0246dec commit 50580bb
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 32 deletions.
22 changes: 22 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.10"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py

# We recommend specifying your dependencies to enable reproducible builds:
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- requirements: docs/requirements.txt
33 changes: 33 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
alabaster==0.7.11
anachronos==0.0.7
MarkupSafe==2.0.1
argh==0.26.2
Babel==2.9.1
certifi==2018.8.24
chardet==3.0.4
coverage==4.5.1
croniter==2.0.1
docutils==0.14
idna==2.7
imagesize==1.0.0
Jinja2==3.0.3
livereload==2.5.2
packaging==17.1
pockets==0.7.2
port-for==0.3.1
Pygments==2.7.4
pyparsing==2.2.0
python-dateutil==2.7.3
pytz==2018.5
PyYAML==6.0.1
requests==2.26.0
six==1.11.0
snowballstemmer==1.2.1
Sphinx==1.7.8
sphinx-autobuild==2021.3.14
sphinx-rtd-theme==0.4.1
sphinxcontrib-napoleon==0.7
sphinxcontrib-websupport==1.1.0
urllib3==1.26.5
Werkzeug==0.15.3
gunicorn==20.0.4
32 changes: 1 addition & 31 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,36 +1,6 @@
alabaster==0.7.11
anachronos==0.0.7
MarkupSafe==2.0.1
argh==0.26.2
Babel==2.9.1
certifi==2018.8.24
chardet==3.0.4
coverage==4.5.1
croniter==0.3.24
docutils==0.14
idna==2.7
imagesize==1.0.0
croniter==2.0.1
Jinja2==3.0.3
livereload==2.5.2
packaging==17.1
pathtools==0.1.2
pockets==0.7.2
port-for==0.3.1
Pygments==2.7.4
pyparsing==2.2.0
python-dateutil==2.7.3
pytz==2018.5
PyYAML==6.0.1
requests==2.26.0
six==1.11.0
snowballstemmer==1.2.1
Sphinx==1.7.8
sphinx-autobuild==0.7.1
sphinx-rtd-theme==0.4.1
sphinxcontrib-napoleon==0.7
sphinxcontrib-websupport==1.1.0
tornado==5.1
urllib3==1.26.5
watchdog==0.9.0
Werkzeug==0.15.3
gunicorn==20.0.4
2 changes: 1 addition & 1 deletion test/serialization/test_dto_serialization_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def test_givenUntypedDictionary_whenDeserializing_thenInstantiateBasicDict(self)
self.assertEqual(given, result)

def test_givenUnknownDeserializationStrategy_whenDeserializing_thenThrowExceptionWithHelpfulMessage(self):
with self.assertRaisesRegexp(NoMatchingDeserializationStrategyException, "UnknownType.*@Serializable"):
with self.assertRaisesRegex(NoMatchingDeserializationStrategyException, "UnknownType.*@Serializable"):
self.serialization_handler.deserialize({}, UnknownType)


Expand Down

0 comments on commit 50580bb

Please sign in to comment.