Skip to content
This repository was archived by the owner on May 22, 2024. It is now read-only.

Commit fb469bd

Browse files
committed
package setup
1 parent c55dee5 commit fb469bd

File tree

5 files changed

+41
-27
lines changed

5 files changed

+41
-27
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
venv/
22
__pycache__/
3-
nostr.egg-info/
3+
nostr.egg-info/
4+
dist/
5+
nostr/_version.py

pyproject.toml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
[build-system]
2+
requires = ["setuptools", "setuptools-scm"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "nostr"
7+
authors = [
8+
{ name="Jeff Thibault", email="[email protected]" },
9+
]
10+
description = "A Python library for making Nostr clients"
11+
urls = { Homepage = "https://github.com/jeffthibault/python-nostr" }
12+
readme = "README.md"
13+
requires-python = ">3.6.0"
14+
dependencies = [
15+
"cffi>=1.15.0",
16+
"cryptography>=37.0.4",
17+
"pycparser>=2.21",
18+
"secp256k1>=0.14.0",
19+
"websocket-client>=1.3.3",
20+
]
21+
license = {file = "LICENSE"}
22+
classifiers=[
23+
'Operating System :: POSIX :: Linux',
24+
'Operating System :: Microsoft :: Windows',
25+
'Operating System :: MacOS :: MacOS X',
26+
]
27+
dynamic=["version"]
28+
29+
[tool.setuptools_scm]
30+
write_to = "nostr/_version.py"
31+
32+
[project.optional-dependencies]
33+
test = [
34+
"pytest >=7.2.0",
35+
"pytest-cov[all]"
36+
]

requirements.txt

-5
This file was deleted.

setup.py

+2-20
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
from setuptools import setup, find_packages
1+
from setuptools import setup
22

3-
4-
with open("README.md", "r") as f:
5-
long_description = f.read()
6-
7-
setup(
8-
name='nostr',
9-
version="0.0.1",
10-
packages=find_packages(include=['nostr']),
11-
python_requires='>3.6.0',
12-
url='https://github.com/jeffthibault/python-nostr',
13-
description="A Python library for making Nostr clients.",
14-
long_description=long_description,
15-
long_description_content_type="text/markdown",
16-
classifiers=[
17-
'Operating System :: POSIX :: Linux',
18-
'Operating System :: Microsoft :: Windows',
19-
'Operating System :: MacOS :: MacOS X',
20-
],
21-
)
3+
setup()

test/requirements.txt

-1
This file was deleted.

0 commit comments

Comments
 (0)