-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
36 lines (28 loc) · 1.69 KB
/
setup.py
File metadata and controls
36 lines (28 loc) · 1.69 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
from setuptools import setup, find_namespace_packages #, find_packages > uncomment if also using explicit namespace, i.e. modules with __init__.py files
# useful links:
# https://docs.pytest.org/en/latest/goodpractices.html
# https://godatadriven.com/blog/a-practical-guide-to-using-setup-py/
# https://www.youtube.com/watch?v=GIF3LaRqgXo
# https://setuptools.readthedocs.io/en/latest/
# interactively develop > make package changes available immediately
# cd $GITPATH && pip install -e .
# install tools required to publish package on PyPi
# cd $GITPATH && pip install .[dev]
with open('requirements.txt') as f:
requirements = f.read().splitlines()
with open('jupyterlab_requirements.txt') as f:
jl_requirements = f.read().splitlines()
setup(
name='encdecmeta', # what you pip install
version='0.0.2',
description='A meta search space for encoder decoder networks.',
long_description='A modular, user-centric tool to define fixed architectures analoguos to search spaces for semantic segmentation. The search strategy applied is random sampling, non-architectural hyperparameters are also covered. Builds on PyTorch (model instantiation, training) and Ray Tune (search, checkpointing).',
author='Philipp Jamscikov',
author_email='p.jamscikov@gmail.com',
package_dir={'':'src'},
packages=find_namespace_packages('./src'),
install_requires = requirements,
tests_require = ['pytest','scikit-learn'],
extras_require={ 'jupyter': ['jupyterlab==2.2.9','widgetsnbextension==3.5.1'],
'packaging': ['twine', 'setuptools', 'wheel']}, # overlap except for twine
entry_points={'console_scripts': ['sample_and_train=package.sample_and_train.py:main']})