-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrever.xsh
54 lines (41 loc) · 1 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
52
53
54
from rever.activity import activity
@activity
def conda_release():
$PYTHON release.py
conda build $REVER_DIR/recipe --user $CONDA_ORG
conda build purge
@activity
def build_docs():
make -C docs html
@activity
def install():
python -m pip install -e .
$PROJECT = 'pdffitx'
$ACTIVITIES = [
'version_bump',
'install',
'changelog',
'build_docs',
'tag',
'push_tag',
'ghrelease',
'ghpages',
'pypi',
'conda_release'
]
$VERSION_BUMP_PATTERNS = [
('pdffitx/__init__.py', '__version__\s*=.*', "__version__ = '$VERSION'"),
('setup.py', 'version\s*=.*,', "version='$VERSION',")
]
$CHANGELOG_FILENAME = 'CHANGELOG.rst'
$CHANGELOG_TEMPLATE = 'TEMPLATE.rst'
$TAG_REMOTE = '[email protected]:st3107/pdffitx.git'
$GITHUB_ORG = 'st3107'
$GITHUB_REPO = 'pdffitx'
$CONDA_ORG = 'diffpy'
$SPHINX_HOST_DIR = 'docs/build'
$GHPAGES_REPO = '[email protected]:st3107/pdffitx.git'
$GHPAGES_BRANCH = 'gh-pages'
$GHPAGES_COPY = (
('$SPHINX_HOST_DIR/html', '$GHPAGES_REPO_DIR'),
)