##// END OF EJS Templates
core: setuptools, switched from deprecated setup.py to pyproject.toml
super-admin -
r5572:b7348fbb default
parent child Browse files
Show More
@@ -0,0 +1,135 b''
1 [build-system]
2 requires = ["setuptools>=61.0.0", "wheel", "pastescript"]
3 build-backend = "setuptools.build_meta"
4
5 [project]
6 name = "rhodecode-enterprise-ce"
7 description = "Enterprise Source Code Management Platform"
8 authors = [
9 {name = "RhodeCode GmbH", email = "support@rhodecode.com"},
10 ]
11 keywords = [
12 'rhodecode', 'mercurial', 'git', 'svn',
13 'code review',
14 'repo groups', 'ldap', 'repository management', 'hgweb',
15 'hgwebdir', 'gitweb', 'serving hgweb',
16 ]
17 license = {text = "GPL V3"}
18 requires-python = ">=3.10"
19 dynamic = ["version", "readme", "dependencies", "optional-dependencies"]
20 classifiers = [
21 'Development Status :: 6 - Mature',
22 'Intended Audience :: Developers',
23 'Operating System :: OS Independent',
24 'Topic :: Software Development :: Version Control',
25 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
26 'Programming Language :: Python :: 3.10',
27 ]
28
29 [project.entry-points."paste.app_factory"]
30 main = "rhodecode.config.middleware:make_pyramid_app"
31
32 [project.entry-points."pyramid.pshell_runner"]
33 ipython = "rhodecode.lib.pyramid_shell:ipython_shell_runner"
34
35 [project.entry-points."beaker.backends"]
36 memorylru_base="rhodecode.lib.memory_lru_dict:MemoryLRUNamespaceManagerBase"
37 memorylru_debug="rhodecode.lib.memory_lru_dict:MemoryLRUNamespaceManagerDebug"
38
39 [project.scripts]
40
41 rc-setup-app = "rhodecode.lib.rc_commands.setup_rc:main"
42 rc-upgrade-db = "rhodecode.lib.rc_commands.upgrade_db:main"
43 rc-ishell = "rhodecode.lib.rc_commands.ishell:main"
44 rc-add-artifact = "rhodecode.lib.rc_commands.add_artifact:main"
45 rc-migrate-artifact = "rhodecode.lib.rc_commands.migrate_artifact:main"
46 rc-ssh-wrapper = "rhodecode.apps.ssh_support.lib.ssh_wrapper_v1:main"
47 rc-ssh-wrapper-v2 = "rhodecode.apps.ssh_support.lib.ssh_wrapper_v2:main"
48
49 [tool.setuptools]
50 packages = ["rhodecode"]
51 include-package-data = true
52
53 [tools.setuptools.package-data]
54 "" = ['*.txt', '*.rst']
55 "configs" = ['*.ini']
56 "rhodecode" = ['VERSION', 'i18n/*/LC_MESSAGES/*.mo', ]
57
58 [tool.setuptools.exclude-package-data]
59 "rhodecode" = ["__pycache__"]
60
61 [tool.setuptools.dynamic]
62 readme = {file = ["README.rst"], content-type = "text/rst"}
63 version = {file = "rhodecode/VERSION"}
64 dependencies = {file = ["requirements.txt"]}
65 optional-dependencies.tests = {file = ["requirements_test.txt"]}
66
67 [tool.ruff]
68
69 select = [
70 # Pyflakes
71 "F",
72 # Pycodestyle
73 "E",
74 "W",
75 # isort
76 "I001"
77 ]
78
79 ignore = [
80 "E501", # line too long, handled by black
81 ]
82
83 # Same as Black.
84 line-length = 120
85
86 [tool.ruff.isort]
87
88 known-first-party = ["rhodecode"]
89
90 [tool.ruff.format]
91
92 # Like Black, use double quotes for strings.
93 quote-style = "double"
94
95 # Like Black, indent with spaces, rather than tabs.
96 indent-style = "space"
97
98 # Like Black, respect magic trailing commas.
99 skip-magic-trailing-comma = false
100
101 # Like Black, automatically detect the appropriate line ending.
102 line-ending = "auto"
103
104
105 [tool.bumpversion]
106 current_version = "5.4.0"
107 parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
108 serialize = ["{major}.{minor}.{patch}"]
109 search = "{current_version}"
110 replace = "{new_version}"
111 regex = false
112 ignore_missing_version = false
113 ignore_missing_files = false
114 tag = false
115 sign_tags = false
116 tag_name = "v{new_version}"
117 tag_message = "release(version-bump): {current_version} → {new_version}"
118 allow_dirty = false
119 commit = false
120 message = "release(version-bump): {current_version} → {new_version}"
121 commit_args = ""
122 setup_hooks = []
123 pre_commit_hooks = []
124 post_commit_hooks = []
125
126
127 # message_extractors={
128 # 'rhodecode': [
129 # ('**.py', 'python', None),
130 # ('**.js', 'javascript', None),
131 # ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}),
132 # ('templates/**.html', 'mako', {'input_encoding': 'utf-8'}),
133 # ('public/**', 'ignore', None),
134 # ]
135 # },
1 NO CONTENT: file was removed
1 NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now