added codebase, project rules and sec audit

This commit is contained in:
2026-11-08 19:03:59 -05:00
parent 4816038d49
commit bcd424f91a
1798 changed files with 801283 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
from string import Template
import requests
# Get the latest version from Github
results = requests.get("https://api.github.com/repos/NearBeach/NearBeach/releases?page=1&per_page=1")
results_json = results.json()
# Using the results, find the tag name (aka version)
version = results_json[0]['tag_name']
# Create the __init__.py file
with open('./.github/deployment_files/template__init__.txt', 'r') as input_file:
src = Template(input_file.read())
result = src.substitute({'version': version})
input_file.close()
with open('./NearBeach/__init__.py', 'w') as output_file:
output_file.write(result)
output_file.close()
# Create the pyproject.toml file
with open('./.github/deployment_files/template_pyproject.toml', 'r') as input_file:
src = Template(input_file.read())
result = src.substitute({'version': version})
input_file.close()
with open('./pyproject.toml', 'w') as output_file:
output_file.write(result)
output_file.close()

View File

@@ -0,0 +1,2 @@
name = "NearBeach"
__version__ = "$version"

View File

@@ -0,0 +1,60 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "NearBeach"
version = "$version"
dependencies = [
"Django>=4.2.17",
"simplejson",
"pillow>=10.0.1",
"urllib3",
"boto3==1.35.99",
"azure-storage-blob",
"azure-identity",
"pip>=19.2",
"djangorestframework",
"django-two-factor-auth",
"django-two-factor-auth[phonenumberslite]",
"django_otp",
"drf_spectacular",
"drf_spectacular[sidecar]"
]
requires-python = ">=3.10"
authors = [
{name = "Luke Christopher Clarke", email = "luke@nearbeach.org"},
]
maintainers = [
{name = "Luke Christopher Clarke", email = "luke@nearbeach.org"},
]
description = "NearBeach - an open source project management tool"
readme = "README.md"
license = {file = "LICENSE"}
keywords = [
"project",
"task",
"project management",
"request for change",
"open source"
]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
[project.optional-dependencies]
dev = [
"black",
"bandit",
"python-dotenv",
"django-storages",
]
[project.urls]
Homepage = "https://nearbeach.org"
Documentation = "https://nearbeach.readthedocs.org"
Repository = "https://github.com/NearBeach/NearBeach.git"
"Bug Tracker" = "https://nearbeach.youtrack.cloud"