fiddling
This commit is contained in:
parent
7fa107d0af
commit
b5180bc1ed
5
main.py
Normal file → Executable file
5
main.py
Normal file → Executable file
@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Really Simple BBS - a really simple BBS for ax.25 packet radio.
|
||||
# Copyright (C) 2023 John Burwell <john@atatdotdot.com>
|
||||
@ -40,7 +41,7 @@ def main():
|
||||
# Version arg is special:
|
||||
sysv_parser.add_argument('-v', '--version',
|
||||
action='version',
|
||||
version=f"{sysv_parser.prog} version zero point aitch point negative purple")
|
||||
version=f"{sysv_parser.prog} version 0.h.-p")
|
||||
|
||||
# Parse the args from the system
|
||||
sysv_args = sysv_parser.parse_args(sys.argv[1:])
|
||||
@ -49,7 +50,7 @@ def main():
|
||||
bbs = BBS(sysv_args)
|
||||
|
||||
# Start the main BBS loop
|
||||
bbs.main()
|
||||
bbs.run()
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Really Simple BBS - a really simple BBS for ax.25 packet radio.
|
||||
# Copyright (C) 2023 John Burwell <john@atatdotdot.com>
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Really Simple BBS - a really simple BBS for ax.25 packet radio.
|
||||
# Copyright (C) 2023 John Burwell <john@atatdotdot.com>
|
||||
@ -39,7 +40,7 @@ class BBS():
|
||||
|
||||
self.config = self.load_config(sysv_args.config_file)
|
||||
|
||||
self.calling_station = sysv_args.calling_station
|
||||
self.calling_station = sysv_args.calling_station.upper()
|
||||
|
||||
self.engine = self.init_engine()
|
||||
self.parser = self.init_parser()
|
||||
@ -276,7 +277,7 @@ class BBS():
|
||||
|
||||
# Main loop
|
||||
|
||||
def main(self):
|
||||
def run(self):
|
||||
# Show greeting
|
||||
self.write_output(f"[RSBBS-1.0.0] listening on {self.config['callsign']} ")
|
||||
self.write_output(f"Welcome to {self.config['bbs_name']}, {self.calling_station}")
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Really Simple BBS - a really simple BBS for ax.25 packet radio.
|
||||
# Copyright (C) 2023 John Burwell <john@atatdotdot.com>
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Really Simple BBS - a really simple BBS for ax.25 packet radio.
|
||||
# Copyright (C) 2023 John Burwell <john@atatdotdot.com>
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Really Simple BBS - a really simple BBS for ax.25 packet radio.
|
||||
# Copyright (C) 2023 John Burwell <john@atatdotdot.com>
|
||||
|
||||
53
setup.py
53
setup.py
@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Really Simple BBS - a really simple BBS for ax.25 packet radio.
|
||||
# Copyright (C) 2023 John Burwell <john@atatdotdot.com>
|
||||
@ -18,47 +19,21 @@
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
# https://www.digitalocean.com/community/tutorials/how-to-package-and-distribute-python-applications
|
||||
|
||||
with open('README.md') as f:
|
||||
readme = f.read()
|
||||
|
||||
with open('LICENSE') as f:
|
||||
license = f.read()
|
||||
|
||||
setup(
|
||||
name="really-simple-bbs",
|
||||
version="0.1",
|
||||
|
||||
description='''A really simple BBS developed particularly with ax.25 and amateur radio in mind.''',
|
||||
|
||||
name='rsbbs',
|
||||
version='0.1.0',
|
||||
description='The Really Simple BBS for ax25d and packet radio',
|
||||
long_description=readme,
|
||||
author='John Burwell',
|
||||
author_email='john@atatdotdot.com',
|
||||
|
||||
url='https://git.b-wells.us/jmbwell/rsbbs',
|
||||
|
||||
classifiers=[
|
||||
"Programming Language :: Python :: 3",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
],
|
||||
|
||||
|
||||
packages=find_packages(exclude=['test*', 'Test*']),
|
||||
|
||||
package_data={
|
||||
'': ['README.md', 'LICENSE'],
|
||||
'really-simple-bbs': ['config.yaml.sample']
|
||||
},
|
||||
|
||||
|
||||
scripts=['main.py'],
|
||||
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
'main.py = main:main',
|
||||
],
|
||||
},
|
||||
|
||||
install_requires=[
|
||||
'greenlet==2.0.2',
|
||||
'PyYAML==6.0',
|
||||
'SQLAlchemy==2.0.10',
|
||||
'typing_extensions==4.5.0',
|
||||
],
|
||||
|
||||
|
||||
)
|
||||
license=license,
|
||||
packages=find_packages(exclude=('tests', 'docs'))
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user