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 8699f73 commit 1cd5596
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 10 deletions.
2 changes: 1 addition & 1 deletion _building/README.md.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# {{ name }}

[![Action-CI](https://github.com/pykit3/{{ name }}/actions/workflows/python-package.yml/badge.svg)](https://github.com/pykit3/{{ name }}/actions/workflows/python-package.yml)
[![Build Status](https://travis-ci.com/pykit3/{{ name }}.svg?branch=master)](https://travis-ci.com/pykit3/{{ name }})
![Python package](https://github.com/pykit3/{{ name }}/workflows/Python%20package/badge.svg)
[![Documentation Status](https://readthedocs.org/projects/{{ name }}/badge/?version=stable)](https://{{ name }}.readthedocs.io/en/stable/?badge=stable)
[![Package](https://img.shields.io/pypi/pyversions/{{ name }})](https://pypi.org/project/{{ name }})

Expand Down
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
7 changes: 7 additions & 0 deletions _building/building-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# requirements for building doc, setup.py etc

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

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
)
6 changes: 0 additions & 6 deletions _building/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +0,0 @@
semantic_version~=2.8.5
jinja2~=2.11.2
PyYAML~=5.3.1


sphinx~=3.3.1

0 comments on commit 1cd5596

Please sign in to comment.