mirror of
https://github.com/aljazceru/python-nostr.git
synced 2025-12-17 22:34:27 +01:00
package setup
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,3 +1,5 @@
|
||||
venv/
|
||||
__pycache__/
|
||||
nostr.egg-info/
|
||||
nostr.egg-info/
|
||||
dist/
|
||||
nostr/_version.py
|
||||
36
pyproject.toml
Normal file
36
pyproject.toml
Normal file
@@ -0,0 +1,36 @@
|
||||
[build-system]
|
||||
requires = ["setuptools", "setuptools-scm"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "nostr"
|
||||
authors = [
|
||||
{ name="Jeff Thibault", email="jdthibault2@gmail.com" },
|
||||
]
|
||||
description = "A Python library for making Nostr clients"
|
||||
urls = { Homepage = "https://github.com/jeffthibault/python-nostr" }
|
||||
readme = "README.md"
|
||||
requires-python = ">3.6.0"
|
||||
dependencies = [
|
||||
"cffi>=1.15.0",
|
||||
"cryptography>=37.0.4",
|
||||
"pycparser>=2.21",
|
||||
"secp256k1>=0.14.0",
|
||||
"websocket-client>=1.3.3",
|
||||
]
|
||||
license = {file = "LICENSE"}
|
||||
classifiers=[
|
||||
'Operating System :: POSIX :: Linux',
|
||||
'Operating System :: Microsoft :: Windows',
|
||||
'Operating System :: MacOS :: MacOS X',
|
||||
]
|
||||
dynamic=["version"]
|
||||
|
||||
[tool.setuptools_scm]
|
||||
write_to = "nostr/_version.py"
|
||||
|
||||
[project.optional-dependencies]
|
||||
test = [
|
||||
"pytest >=7.2.0",
|
||||
"pytest-cov[all]"
|
||||
]
|
||||
@@ -1,5 +0,0 @@
|
||||
cffi==1.15.0
|
||||
cryptography==37.0.4
|
||||
pycparser==2.21
|
||||
secp256k1==0.14.0
|
||||
websocket-client==1.3.3
|
||||
22
setup.py
22
setup.py
@@ -1,21 +1,3 @@
|
||||
from setuptools import setup, find_packages
|
||||
from setuptools import setup
|
||||
|
||||
|
||||
with open("README.md", "r") as f:
|
||||
long_description = f.read()
|
||||
|
||||
setup(
|
||||
name='nostr',
|
||||
version="0.0.1",
|
||||
packages=find_packages(include=['nostr']),
|
||||
python_requires='>3.6.0',
|
||||
url='https://github.com/jeffthibault/python-nostr',
|
||||
description="A Python library for making Nostr clients.",
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
classifiers=[
|
||||
'Operating System :: POSIX :: Linux',
|
||||
'Operating System :: Microsoft :: Windows',
|
||||
'Operating System :: MacOS :: MacOS X',
|
||||
],
|
||||
)
|
||||
setup()
|
||||
@@ -1 +0,0 @@
|
||||
pytest>=7.2.0
|
||||
Reference in New Issue
Block a user