Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 0 additions & 46 deletions notebooks/ipython_config.py

This file was deleted.

5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# vscode-python-2020.7.0 automatically loads if this file is present.
# https://github.com/microsoft/vscode-python/blob/master/CHANGELOG.md#enhancements-1

[tool.black]
line-length = 88
3 changes: 3 additions & 0 deletions scripts/build_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ conda activate $ENV_NAME
# add this as a kernel
pip install ipykernel

#IPython 8.0.1, 7.31.1 and 5.11 onwards disables the ipython_config.py
pip install -e .

# Cleanup
conda deactivate
source "${WORKING_DIR}/miniconda/bin/deactivate"
Expand Down
2 changes: 1 addition & 1 deletion scripts/set_up_streamlit.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source /home/ec2-user/anaconda3/bin/activate JupyterSystemEnv
pip uninstall --yes nbserverproxy
pip install --upgrade jupyter-server-proxy
sudo initctl restart jupyter-server --no-wait
sudo systemctl restart jupyter-server
2 changes: 1 addition & 1 deletion scripts/start_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ conda config --add envs_dirs "$PWD/$WORKING_DIR/miniconda/envs"
conda env list

# Required for notebook to show the environment
sudo initctl restart jupyter-server --no-wait
sudo systemctl restart jupyter-server
43 changes: 43 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import os
from typing import List

from setuptools import find_packages, setup

_pkg: str = "amazon-sagemaker-tsp-deep-rl"
_version: str = "0.0.1"


def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()


# Declare minimal set for installation
required_packages: List[str] = []

setup(
name=_pkg,
packages=find_packages(where="src"),
package_dir={"": "src"},
version=_version,
description="Solving the Travelling Salesperson Problem with deep reinforcement learning on Amazon SageMaker",
long_description=read("README.md"),
author="Amazon Web Services",
url=f"https://github.com/aws-samples/{_pkg}/",
project_urls={
"Bug Tracker": f"https://github.com/aws-samples/{_pkg}/issues/",
"Documentation": "https://aws.amazon.com/blogs/opensource/solving-the-traveling-salesperson-problem-with-deep-reinforcement-learning-on-amazon-sagemaker/",
"Source Code": f"https://github.com/aws-samples/{_pkg}/",
},
license="MIT License",
keywords="Reinforcement Learning",
platforms=["any"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.6",
],
python_requires=">=3.6.0",
install_requires=required_packages,
)