move files to package
This commit is contained in:
parent
7857e1e908
commit
4af28e10af
5 changed files with 39 additions and 0 deletions
15
default.nix
Normal file
15
default.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
pkgs.python3Packages.buildPythonPackage {
|
||||
pname = "lights-web";
|
||||
version = "0.4.0";
|
||||
|
||||
src = ./.;
|
||||
|
||||
propagatedBuildInputs = with pkgs; [
|
||||
python3Packages.gunicorn
|
||||
python3Packages.flask
|
||||
python3Packages.paho-mqtt
|
||||
python3Packages.pyyaml
|
||||
];
|
||||
}
|
Before Width: | Height: | Size: 623 B After Width: | Height: | Size: 623 B |
24
setup.py
Normal file
24
setup.py
Normal file
|
@ -0,0 +1,24 @@
|
|||
from setuptools import setup
|
||||
|
||||
setup(
|
||||
name='lights-web',
|
||||
version='0.4.0',
|
||||
description='Warsaw Hackerspace web interface for lights control',
|
||||
author='vuko',
|
||||
author_email='vuko@hackerspace.pl',
|
||||
classifiers=[
|
||||
'Development Status :: 3 - Alpha',
|
||||
'License :: OSI Approved :: zlib/libpng License',
|
||||
'Programming Language :: Python :: 3.8',
|
||||
],
|
||||
|
||||
packages=['lights_web'],
|
||||
package_data={"lights_web": ["static/*"]},
|
||||
python_requires='>=3.7,',
|
||||
install_requires=['Flask', 'paho-mqtt', 'pyyaml'],
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
'lights-web=lights_web:run_development',
|
||||
],
|
||||
},
|
||||
)
|
Loading…
Add table
Reference in a new issue