~sircmpwn/core.sr.ht

ref: 15de75273645326d6c07adb68059f94bc1d2d6a4 core.sr.ht/setup.py -rwxr-xr-x 837 bytes
15de7527Drew DeVault Add setup.py, move stuff into srht/ 4 years ago
                                                                                
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
#!/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)]
  }
)