summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2022-01-17 19:40:11 +0200
committerYuval Adam <_@yuv.al>2022-01-17 19:40:11 +0200
commitf361fcb8f47d04592e2605e4b0820635b4296cf5 (patch)
treee22c7bccaba1786afc3bd46b13fe1911e42c08c5
parent880a4ee4390d2ec4f3ef3633cfa965186208ad81 (diff)
Inital setup files and future CLI entry point
-rw-r--r--.gitignore2
-rw-r--r--nostr/cli.py2
-rw-r--r--setup.cfg5
-rw-r--r--setup.py36
4 files changed, 45 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a295864
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+*.pyc
+__pycache__
diff --git a/nostr/cli.py b/nostr/cli.py
new file mode 100644
index 0000000..e89001d
--- /dev/null
+++ b/nostr/cli.py
@@ -0,0 +1,2 @@
+def entry():
+ print("nostr")
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..008ce81
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,5 @@
+[bdist_wheel]
+universal=1
+
+[metadata]
+license_file=LICENSE \ No newline at end of file
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..344a83a
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,36 @@
+from pathlib import Path
+from setuptools import setup, find_packages
+
+with open(
+ str(Path(__file__).resolve().parents[0] / "README.md"), encoding="utf-8"
+) as f:
+ long_description = f.read()
+
+setup(
+ name="nostr",
+ author="Yuval Adam",
+ author_email="_@yuv.al",
+ version="0.1.0",
+ description="Python implementation for the nostr protocol",
+ long_description=long_description,
+ long_description_content_type="text/markdown",
+ url="https://github.com/yuvadm/nostrpy",
+ license="MIT",
+ python_requires=">=3.7.0",
+ packages=find_packages(exclude=["docs", "tests"]),
+ classifiers=[
+ "License :: OSI Approved :: MIT License",
+ "Programming Language :: Python",
+ "Programming Language :: Python :: 3.7",
+ "Programming Language :: Python :: 3.8",
+ "Programming Language :: Python :: 3.9",
+ "Programming Language :: Python :: 3.10",
+ "Programming Language :: Python :: Implementation :: CPython",
+ "Programming Language :: Python :: Implementation :: PyPy",
+ ],
+ entry_points={
+ "console_scripts": [
+ "nostr = nostr.cli:entry",
+ ]
+ },
+)