-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
41 lines (34 loc) · 1.24 KB
/
setup.py
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
import os
from setuptools import find_packages, setup
from crossbox import __version__
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
def read_requirements(filename):
with open(filename) as f:
reqs = f.readlines()
return [r.strip() for r in reqs
if r[0] != '#' and r[:4] != 'git+' and r[:2] != '-r']
install_requires = read_requirements('./requirements.txt')
setup(
name='oalfonso-crossbox',
version=__version__,
packages=find_packages(),
include_package_data=True,
license='MIT',
description='Crossbox Palau',
long_description=README,
url='https://github.com/oalfonso-o/',
author='Oriol Alfonso',
author_email='[email protected]',
install_requires=install_requires,
package_data={
'crossbox': [
'templates/*.html', 'templates/registration/*.html', 'static/*',
'static/images/*', 'static/css/*', 'static/js/*',
'static/js/lib/*', 'static/js/components/*', 'static/js/custom/*',
'static/fonts/*', 'static/webfonts/*', 'fixtures/*'
],
},
)