~sircmpwn/core.sr.ht

15de75273645326d6c07adb68059f94bc1d2d6a4 — Drew DeVault 6 years ago 434a848
Add setup.py, move stuff into srht/
13 files changed, 32 insertions(+), 1 deletions(-)

M .gitignore
M .gitmodules
D scss/bootstrap
A setup.py
R Makefile => srht/Makefile
A srht/__init__.py
R minify-css.js => srht/minify-css.js
R package.json => srht/package.json
R scss/base.scss => srht/scss/base.scss
A srht/scss/bootstrap
R templates/internal_error.html => srht/templates/internal_error.html
R templates/layout.html => srht/templates/layout.html
R templates/not_found.html => srht/templates/not_found.html
M .gitignore => .gitignore +1 -0
@@ 8,3 8,4 @@ lib/
pip-selfcheck.json
.sass-cache/
node_modules
build

M .gitmodules => .gitmodules +3 -0
@@ 1,3 1,6 @@
[submodule "scss/bootstrap"]
	path = scss/bootstrap
	url = https://github.com/twbs/bootstrap.git
[submodule "srht/scss/bootstrap"]
	path = srht/scss/bootstrap
	url = https://github.com/twbs/bootstrap.git

D scss/bootstrap => scss/bootstrap +0 -1
@@ 1,1 0,0 @@
Subproject commit 295c93846c154fb461f85b30e663102f7e171104

A setup.py => setup.py +27 -0
@@ 0,0 1,27 @@
#!/usr/bin/env python3
from distutils.core import setup
import subprocess
import glob
setup(
  name = 'srht',
  packages = ['srht'],
  version = subprocess.run(['git', 'describe', '--tags'],
      stdout=subprocess.PIPE).stdout.decode().strip(),
  description = 'sr.ht core modules',
  author = 'Drew DeVault',
  author_email = 'sir@cmpwn.com',
  url = 'https://git.sr.ht/~sircmpwn/srht',
  requires = ['flask', 'humanize', 'sqlalchemy'],
  license = 'GPL-2.0',
  package_data={
      'srht': [
          'Makefile',
          'minify-css.js',
          'package.json',
          'templates/*.html',
          'scss/*.scss',
          'scss/bootstrap/LICENSE',
      ] + [f[5:] for f in glob.glob('srht/node_modules/**', recursive=True)] \
        + [f[5:] for f in glob.glob('srht/scss/bootstrap/scss/**/*.scss', recursive=True)]
  }
)

R Makefile => srht/Makefile +0 -0
A srht/__init__.py => srht/__init__.py +0 -0
R minify-css.js => srht/minify-css.js +0 -0
R package.json => srht/package.json +0 -0
R scss/base.scss => srht/scss/base.scss +0 -0
A srht/scss/bootstrap => srht/scss/bootstrap +1 -0
@@ 0,0 1,1 @@
Subproject commit 295c93846c154fb461f85b30e663102f7e171104

R templates/internal_error.html => srht/templates/internal_error.html +0 -0
R templates/layout.html => srht/templates/layout.html +0 -0
R templates/not_found.html => srht/templates/not_found.html +0 -0