-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
38 lines (34 loc) · 1.17 KB
/
setup.py
File metadata and controls
38 lines (34 loc) · 1.17 KB
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
# -*- coding: utf-8 -*-
import os
from setuptools import setup
packages = []
root_dir = os.path.dirname(__file__)
if root_dir:
os.chdir(root_dir)
for dirpath, dirnames, filenames in os.walk("ab_online"):
# Ignore dirnames that start with '.'
if "__init__.py" in filenames or "jupyter_config" in dirpath:
pkg = dirpath.replace(os.path.sep, ".")
if os.path.altsep:
pkg = pkg.replace(os.path.altsep, ".")
packages.append(pkg)
if 'VERSION' in os.environ:
version = os.environ['VERSION']
else:
version = os.environ.get('GIT_DESCRIBE_TAG', '0.0.0')
setup(
name='ab-plugin-notebook',
version=version,
packages=packages,
author='Rémy Le Calloch',
author_email='remy@lecalloch.net',
license=open('LICENSE.txt').read(),
install_requires=[], # dependency management in conda recipe
url='https://github.com/Pan6ora/ab-plugin-Notebook',
long_description=open('README.md').read(),
description='Launch Jupyter Notebook directly in Activity-Browser',
package_dir={"": "."},
package_data={
'ab_plugin_notebook': ['jupyter_config/*',
'jupyter_config/custom/*']},
)