Skip to content

Commit a8cdb9f

Browse files
committed
PEP 621: Migrate from setup.cfg to pyproject.toml
1 parent a94aa1f commit a8cdb9f

File tree

5 files changed

+63
-54
lines changed

5 files changed

+63
-54
lines changed

pyproject.toml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
[build-system]
2+
build-backend = "setuptools.build_meta"
3+
4+
requires = [ "setuptools>=61.2" ]
5+
6+
[project]
7+
name = "readthedocs"
8+
version = "11.11.0"
9+
description = "Read the Docs builds and hosts documentation"
10+
license = { text = "MIT" }
11+
authors = [ { name = "Read the Docs, Inc", email = "[email protected]" } ]
12+
classifiers = [
13+
"Development Status :: 5 - Production/Stable",
14+
"Environment :: Web Environment",
15+
"Framework :: Django",
16+
"Intended Audience :: Developers",
17+
"License :: OSI Approved :: MIT License",
18+
"Operating System :: OS Independent",
19+
"Programming Language :: Python",
20+
"Programming Language :: Python :: 2.7",
21+
"Programming Language :: Python :: 3.9",
22+
"Programming Language :: Python :: 3.10",
23+
"Programming Language :: Python :: 3.11",
24+
"Programming Language :: Python :: 3.12",
25+
"Programming Language :: Python :: 3.13",
26+
]
27+
urls = { Homepage = "http://readthedocs.org" }
28+
29+
[tool.setuptools]
30+
include-package-data = true
31+
zip-safe = false
32+
33+
[tool.setuptools.packages]
34+
find = { namespaces = false }
35+
36+
[tool.release]
37+
github_owner = "readthedocs"
38+
github_repo = "readthedocs.org"
39+
40+
[tool.bumpver]
41+
current_version = "11.11.0"
42+
version_pattern = "MAJOR.MINOR.PATCH[TAGNUM]"
43+
commit_message = "Bump version {old_version} -> {new_version}"
44+
commit = "False"
45+
tag = "False"
46+
push = "False"
47+
48+
[tool.bumpver.file_patterns]
49+
"pyproject.toml" = [
50+
'current_version = "{version}"',
51+
]
52+
"package.json" = [
53+
'"version": "{version}"',
54+
]
55+
"docs/conf.py" = [
56+
'version = "{version}"',
57+
]
58+
"readthedocs/__init__.py" = [
59+
'__version__ = "{version}"',
60+
]

readthedocs/rtd_tests/tests/test_celery.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
from readthedocs.oauth.models import RemoteRepository, RemoteRepositoryRelation
1414
from readthedocs.oauth.notifications import MESSAGE_OAUTH_BUILD_STATUS_FAILURE
1515
from readthedocs.projects.models import Project
16+
from readthedocs.projects.tasks.builds import sync_repository_task
17+
from readthedocs.rtd_tests.utils import create_git_branch, create_git_tag
1618

1719

1820
class TestCeleryBuilding(TestCase):

setup.cfg

Lines changed: 0 additions & 49 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

tox.embedapi.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ requires =
88
# NOTE: Sphinx 1.8 and 2.0 are not tested anymore because of some
99
# incompatibilities with Python 3.10 and sphinxcontrib-bibtex
1010
envlist = sphinx-{24,35,45,53,62,72,latest,24-docutils-016,35-docutils-017}
11+
isolated_build=True
1112

1213
[testenv]
1314
description = run test suite for the EmbedAPIv3

0 commit comments

Comments
 (0)