Skip to content

Commit

Permalink
deps: apply tmpl
Browse files Browse the repository at this point in the history
  • Loading branch information
drmingdrmer committed Mar 23, 2022
1 parent cd1f645 commit 97a10b6
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
6 changes: 3 additions & 3 deletions _building/build_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
build steup.py for this package.
"""

from string import Template
import imp
import subprocess
import sys
import imp
from string import Template

import yaml
import requirements
import yaml

if hasattr(sys, 'getfilesystemencoding'):
defenc = sys.getfilesystemencoding()
Expand Down
8 changes: 4 additions & 4 deletions _building/building-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# requirements for building doc, setup.py etc

semantic_version~=2.9
jinja2~=2.11
PyYAML~=6.0
semantic_version>=2.9,<3.0
jinja2>=3.0,<4.0
PyYAML>=6.0,<7.0

sphinx~=4.3
sphinx>=4.3,<5.0
3 changes: 3 additions & 0 deletions _building/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ readme:

release:
PYTHONPATH="$$(cd ..; pwd)" python _building/build_setup.py

install:
./_building/install.sh
12 changes: 12 additions & 0 deletions _building/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh


pwd="$(pwd)"
name="${pwd##*/}"
pip uninstall -y $name

cp setup.py ..
(
cd ..
python setup.py install
)

0 comments on commit 97a10b6

Please sign in to comment.