forked from xonsh/xonsh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rever.xsh
51 lines (39 loc) · 1.57 KB
/
rever.xsh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
from rever.activities.ghrelease import git_archive_asset
from pkg_resources import parse_requirements
$PROJECT = $GITHUB_ORG = $GITHUB_REPO = 'xonsh'
$WEBSITE_URL = 'http://xon.sh'
$ACTIVITIES = ['authors', 'version_bump', 'changelog', 'pytest', 'appimage',
'tag', 'push_tag',
'ghrelease',
'sphinx',
]
$PYPI_SIGN = False
$PYPI_BUILD_COMMANDS = ("sdist")
$AUTHORS_FILENAME = "AUTHORS.rst"
$VERSION_BUMP_PATTERNS = [
('xonsh/__init__.py', r'__version__\s*=.*', '__version__ = "$VERSION"'),
]
$CHANGELOG_FILENAME = 'CHANGELOG.rst'
$CHANGELOG_TEMPLATE = 'TEMPLATE.rst'
$PYTEST_COMMAND = "./run-tests.xsh test"
$TAG_REMOTE = '[email protected]:xonsh/xonsh.git'
$TAG_TARGET = 'main'
$GHPAGES_REPO = '[email protected]:xonsh/xonsh-docs.git'
$DOCKER_APT_DEPS = ['man', 'bash-completion']
def get_requirement_args(*extras:str):
from tomli import loads
with open("pyproject.toml") as f:
content = f.read()
deps = loads(content)['project']['optional-dependencies']
for ext in extras:
yield from deps[ext]
pip_deps = list(get_requirement_args('test', 'doc'))
conda_deps = {'prompt_toolkit', 'pip', 'psutil', 'numpy', 'matplotlib'}
$DOCKER_PIP_DEPS = pip_deps
$DOCKER_CONDA_DEPS = sorted(conda_deps)
$DOCKER_INSTALL_COMMAND = ('rm -rf .cache/ __pycache__/ */__pycache__ */*/__pycache__ build/ && '
'./setup.py install')
$DOCKER_GIT_NAME = 'xonsh'
$DOCKER_GIT_EMAIL = '[email protected]'
$GHRELEASE_ASSETS = [git_archive_asset, 'xonsh-x86_64.AppImage']
$APPIMAGE_PYTHON_VERSION = '3.11'