added codebase, project rules and sec audit
This commit is contained in:
32
NearBeach/.github/deployment_files/generate_templates.py
vendored
Normal file
32
NearBeach/.github/deployment_files/generate_templates.py
vendored
Normal 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()
|
||||
|
||||
2
NearBeach/.github/deployment_files/template__init__.txt
vendored
Normal file
2
NearBeach/.github/deployment_files/template__init__.txt
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
name = "NearBeach"
|
||||
__version__ = "$version"
|
||||
60
NearBeach/.github/deployment_files/template_pyproject.toml
vendored
Normal file
60
NearBeach/.github/deployment_files/template_pyproject.toml
vendored
Normal 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"
|
||||
Reference in New Issue
Block a user