Reticulum/setup.py

58 lines
2.0 KiB
Python
Raw Normal View History

2020-04-27 07:33:26 -04:00
import setuptools
2022-06-10 05:27:31 -04:00
import sys
pure_python = False
2022-06-10 06:46:20 -04:00
pure_notice = "\n\n**Warning!** *This package is the zero-dependency version of Reticulum. You should almost certainly use the [normal package](https://pypi.org/project/rns) instead. Do NOT install this package unless you know exactly why you are doing it!*"
2022-06-10 05:27:31 -04:00
if '--pure' in sys.argv:
pure_python = True
sys.argv.remove('--pure')
print("Building pure-python wheel")
2020-04-27 07:33:26 -04:00
2021-08-19 08:10:37 -04:00
exec(open("RNS/_version.py", "r").read())
2020-04-27 07:33:26 -04:00
with open("README.md", "r") as fh:
long_description = fh.read()
2022-06-10 05:27:31 -04:00
if pure_python:
pkg_name = "rnspure"
requirements = []
2022-06-10 06:46:20 -04:00
long_description = long_description.replace("</p>", "</p>"+pure_notice)
2022-06-10 05:27:31 -04:00
else:
pkg_name = "rns"
2023-05-04 17:19:43 -04:00
requirements = ['cryptography>=3.4.7', 'pyserial>=3.5']
2022-06-10 05:27:31 -04:00
2023-03-07 10:30:40 -05:00
excluded_modules = exclude=["tests.*", "tests"]
packages = setuptools.find_packages(exclude=excluded_modules)
2020-04-27 07:33:26 -04:00
setuptools.setup(
2022-06-10 05:27:31 -04:00
name=pkg_name,
2021-08-19 08:10:37 -04:00
version=__version__,
2020-04-27 07:33:26 -04:00
author="Mark Qvist",
author_email="mark@unsigned.io",
description="Self-configuring, encrypted and resilient mesh networking stack for LoRa, packet radio, WiFi and everything in between",
long_description=long_description,
long_description_content_type="text/markdown",
2022-07-01 11:31:07 -04:00
url="https://reticulum.network/",
2023-03-07 10:30:40 -05:00
packages=packages,
2020-04-27 07:33:26 -04:00
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
2021-09-24 05:21:08 -04:00
entry_points= {
'console_scripts': [
'rnsd=RNS.Utilities.rnsd:main',
2021-09-25 05:03:43 -04:00
'rnstatus=RNS.Utilities.rnstatus:main',
2021-09-24 08:15:15 -04:00
'rnprobe=RNS.Utilities.rnprobe:main',
2021-09-24 05:21:08 -04:00
'rnpath=RNS.Utilities.rnpath:main',
2023-02-04 09:59:58 -05:00
'rnid=RNS.Utilities.rnid:main',
'rncp=RNS.Utilities.rncp:main',
2022-05-24 14:14:43 -04:00
'rnx=RNS.Utilities.rnx:main',
'rnir=RNS.Utilities.rnir:main',
2022-11-01 17:40:09 -04:00
'rnodeconf=RNS.Utilities.rnodeconf:main',
2021-09-24 05:21:08 -04:00
]
},
2022-06-10 05:27:31 -04:00
install_requires=requirements,
2023-05-04 06:23:16 -04:00
python_requires='>=3.7',
2021-09-04 22:58:42 -04:00
)