From 27ba1d93460c37e723be56cb637cb593049cdb7b Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Wed, 15 Dec 2021 12:25:09 +0100 Subject: [PATCH] pip install machinery --- poetry.lock | 29 ++++++++++++++++++++++++++++- pyproject.toml | 1 + setup.py | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 setup.py diff --git a/poetry.lock b/poetry.lock index 324e543..a6bbf37 100644 --- a/poetry.lock +++ b/poetry.lock @@ -104,6 +104,25 @@ url = "https://framagit.org/framasoft/peertube/clients/python.git" reference = "master" resolved_reference = "ebcf44d663190276b154cbc6e9a74b0f15af5e60" +[[package]] +name = "poetry-core" +version = "1.0.7" +description = "Poetry PEP 517 Build Backend" +category = "dev" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" + +[[package]] +name = "poetry2setup" +version = "1.0.0" +description = "Convert python-poetry to setup.py" +category = "dev" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" + +[package.dependencies] +poetry-core = ">=1.0.0,<2.0.0" + [[package]] name = "python-dateutil" version = "2.8.2" @@ -190,7 +209,7 @@ socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"] [metadata] lock-version = "1.1" python-versions = "^3.9" -content-hash = "9aee20bc6d4cacb5f2e41b8809a311af26a839bc5054cd243fed0324bfe3aa8e" +content-hash = "e355abc98d6deaf8a6d6a3567394dec76c33e05212e4913b0d03173f137ca43b" [metadata.files] arrow = [ @@ -258,6 +277,14 @@ natural = [ {file = "natural-0.2.0.tar.gz", hash = "sha256:18c83662d2d33fd7e6eee4e3b0d7366e1ce86225664e3127a2aaf0a3233f7df2"}, ] peertube = [] +poetry-core = [ + {file = "poetry-core-1.0.7.tar.gz", hash = "sha256:98c11c755a16ef6c5673c22ca94a3802a7df4746a0853a70b6fae8b9f5cac206"}, + {file = "poetry_core-1.0.7-py2.py3-none-any.whl", hash = "sha256:4f8a7f5390d772f42c4c4c3f188e6424b802cb4b57466c6633a1b9ac36f18a43"}, +] +poetry2setup = [ + {file = "poetry2setup-1.0.0-py2.py3-none-any.whl", hash = "sha256:b69a4efabfda24870fd8d08b37b15fbbee5eec0b62711feaef610f94835517be"}, + {file = "poetry2setup-1.0.0.tar.gz", hash = "sha256:ef1177303996b661eeec3de5027a1af84e106a1d2cb92c73152fe6ce47700cc3"}, +] python-dateutil = [ {file = "python-dateutil-2.8.2.tar.gz", hash = "sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86"}, {file = "python_dateutil-2.8.2-py2.py3-none-any.whl", hash = "sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9"}, diff --git a/pyproject.toml b/pyproject.toml index ec2dda6..a8d74b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,6 +15,7 @@ requests = "^2.26.0" peertube = {git = "https://framagit.org/framasoft/peertube/clients/python.git"} [tool.poetry.dev-dependencies] +poetry2setup = "^1.0.0" [build-system] requires = ["poetry-core>=1.0.0"] diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..da49d11 --- /dev/null +++ b/setup.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +from setuptools import setup + +packages = ["lumbunglib"] + +package_data = {"": ["*"], "lumbunglib": ["templates/*"]} + +install_requires = [ + "Jinja2>=3.0.3,<4.0.0", + "ics>=0.7,<0.8", + "natural>=0.2.0,<0.3.0", + "peertube @ " + "git+https://framagit.org/framasoft/peertube/clients/python.git@master", + "python-slugify>=5.0.2,<6.0.0", + "requests>=2.26.0,<3.0.0", +] + +entry_points = { + "console_scripts": ["cal = lumbunglib.cloudcal:main", "vid = lumbunglib.video:main"] +} + +setup_kwargs = { + "name": "lumbunglib", + "version": "0.1.0", + "description": "Python lib which powers lumbung[dot]space automation", + "long_description": None, + "author": "rra", + "author_email": None, + "maintainer": None, + "maintainer_email": None, + "url": None, + "packages": packages, + "package_data": package_data, + "install_requires": install_requires, + "entry_points": entry_points, + "python_requires": ">=3.9,<4.0", +} + + +setup(**setup_kwargs)