From ad32f7b4be3b8231564cebf2140f3b99d0347627 Mon Sep 17 00:00:00 2001 From: Illia Chub Date: Thu, 17 Feb 2022 20:08:18 +0200 Subject: [PATCH] Reformatted file structure for NixOS deployment --- nix_channel_server/__init__.py => __init__.py | 0 nix_channel_server/app.py => app.py | 0 requirements.txt | 0 setup.py | 10 ++++++++ shell.nix | 24 ------------------- 5 files changed, 10 insertions(+), 24 deletions(-) rename nix_channel_server/__init__.py => __init__.py (100%) rename nix_channel_server/app.py => app.py (100%) create mode 100644 requirements.txt create mode 100644 setup.py delete mode 100644 shell.nix diff --git a/nix_channel_server/__init__.py b/__init__.py similarity index 100% rename from nix_channel_server/__init__.py rename to __init__.py diff --git a/nix_channel_server/app.py b/app.py similarity index 100% rename from nix_channel_server/app.py rename to app.py diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e69de29 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..556e562 --- /dev/null +++ b/setup.py @@ -0,0 +1,10 @@ +from setuptools import setup, find_packages + +setup( + name="nix-channel-redirect", + version="1.0.0", + packages=find_packages(), + scripts=[ + "app.py", + ], +) \ No newline at end of file diff --git a/shell.nix b/shell.nix deleted file mode 100644 index 6b2ba96..0000000 --- a/shell.nix +++ /dev/null @@ -1,24 +0,0 @@ -{ pkgs ? import {} }: -let - sp-python = pkgs.python39.withPackages (p: with p; [ - flask - flask-restful - setuptools - portalocker - pytest - pytest-mock - pytest-datadir - coverage - requests - ]); -in -pkgs.mkShell { - buildInputs = [ - sp-python - pkgs.black - ]; - shellHook = '' - PYTHONPATH=${sp-python}/${sp-python.sitePackages} - # maybe set more env-vars - ''; -} \ No newline at end of file