From 9001bd8f920cc120f38e998d63a8134969a00032 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Tue, 29 Dec 2020 01:22:19 -0800 Subject: [PATCH] Make package buildable by nix --- default.nix | 8 ++++++++ requirements.txt | 15 --------------- setup.py | 19 ------------------- 3 files changed, 8 insertions(+), 34 deletions(-) create mode 100644 default.nix delete mode 100644 requirements.txt delete mode 100644 setup.py diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..d3a10e2 --- /dev/null +++ b/default.nix @@ -0,0 +1,8 @@ +{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/405d762a1a05ffed2ac820eb4bae4bc49bc3abf2.tar.gz") {} +}: + +let + app = pkgs.poetry2nix.mkPoetryApplication { + projectDir = ./.; + }; +in app.dependencyEnv diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 0aeefc7..0000000 --- a/requirements.txt +++ /dev/null @@ -1,15 +0,0 @@ -beautifulsoup4==4.9.1 -bs4==0.0.1 -certifi==2020.6.20 -chardet==3.0.4 -click==7.1.2 -Flask==1.1.2 -idna==2.10 -itsdangerous==1.1.0 -Jinja2==2.11.2 -MarkupSafe==1.1.1 -pkg-resources==0.0.0 -requests==2.24.0 -soupsieve==2.0.1 -urllib3==1.25.10 -Werkzeug==1.0.1 diff --git a/setup.py b/setup.py deleted file mode 100644 index c552f51..0000000 --- a/setup.py +++ /dev/null @@ -1,19 +0,0 @@ -import setuptools - -with open("requirements.txt") as f: - requires = f.readlines() - -setuptools.setup( - name="inquisitor", - version="0.0.1", - author="Tim Van Baak", - description="An arbitrary feed aggregator", - packages=setuptools.find_packages(), - python_requires=">=3.6", - install_requires=requires, - entry_points={ - "console_scripts": [ - "inquisitor = inquisitor.cli:main", - ], - }, -)