Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Nusnus committed Oct 20, 2023
1 parent d6a8a6a commit a64798e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/build.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
export PYTHONPATH=.:$PYTHONPATH
export PYTHONPATH=..:$PYTHONPATH
python -m sphinx -T -E -b html -d _build/doctrees -D language=en . $READTHEDOCS_OUTPUT/html
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

globals().update(
conf.build_config(
"pytest-celery",
"pytest_celery",
__file__,
project="pytest-celery",
version_dev="1.0.0a1",
version_stable="0.1.0",
version_dev="2.0",
version_stable="1.0",
canonical_url="https://docs.pytest-celery.dev", # Update with your documentation URL
webdomain="pytest-celery.dev", # Update with your domain
github_project="celery/pytest-celery",
Expand Down
21 changes: 21 additions & 0 deletions src/pytest_celery/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
__version__ = "1.0.0a1"


import re
from collections import namedtuple

from pytest_celery.api.backend import *
from pytest_celery.api.base import *
from pytest_celery.api.broker import *
Expand All @@ -32,3 +35,21 @@
from pytest_celery.vendors.redis.container import *
from pytest_celery.vendors.worker.container import *
from pytest_celery.vendors.worker.fixtures import *

version_info_t = namedtuple(
"version_info_t",
(
"major",
"minor",
"micro",
"releaselevel",
"serial",
),
)

# bumpversion can only search for {current_version}
# so we have to parse the version here.
_temp = re.match(r"(\d+)\.(\d+).(\d+)(.+)?", __version__).groups()
VERSION = version_info = version_info_t(int(_temp[0]), int(_temp[1]), int(_temp[2]), _temp[3] or "", "")
del _temp
del re

0 comments on commit a64798e

Please sign in to comment.