From 660c5408288d0dd9745c24bca04b655818316600 Mon Sep 17 00:00:00 2001 From: Maximilian Fajnberg Date: Fri, 31 Dec 2021 20:30:36 +0100 Subject: [PATCH] initial commit --- .coveragerc | 12 ++++++++++++ .gitignore | 10 ++++++++++ LICENSE | 21 +++++++++++++++++++++ README.md | 1 + coverage.sh | 3 +++ pyproject.toml | 6 ++++++ requirements/common.txt | 1 + requirements/dev.txt | 2 ++ requirements/mw.txt | 2 ++ setup.cfg | 33 +++++++++++++++++++++++++++++++++ 10 files changed, 91 insertions(+) create mode 100644 .coveragerc create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md create mode 100755 coverage.sh create mode 100644 pyproject.toml create mode 100644 requirements/common.txt create mode 100644 requirements/dev.txt create mode 100644 requirements/mw.txt create mode 100644 setup.cfg diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..cee8dcb --- /dev/null +++ b/.coveragerc @@ -0,0 +1,12 @@ +[run] +source = src/ +branch = true +omit = + .venv/* + +[report] +fail_under = 100 +show_missing = True +skip_covered = True +exclude_lines = + if __name__ == .__main__.: diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b853735 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +# Virtual environment +/.venv/ +# PyCharm: +/.idea/ +# Distribution / packaging: +*.egg-info/ +# Python cache: +__pycache__/ +# Tests: +.coverage \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..11b3bac --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 Daniil & Maximilian Fajnberg + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..1fe515d --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Django based database for stock fundamentals diff --git a/coverage.sh b/coverage.sh new file mode 100755 index 0000000..786075e --- /dev/null +++ b/coverage.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +coverage erase && coverage run -m unittest discover && coverage report diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..b5a3c46 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,6 @@ +[build-system] +requires = [ + "setuptools>=42", + "wheel" +] +build-backend = "setuptools.build_meta" \ No newline at end of file diff --git a/requirements/common.txt b/requirements/common.txt new file mode 100644 index 0000000..d3e4ba5 --- /dev/null +++ b/requirements/common.txt @@ -0,0 +1 @@ +django diff --git a/requirements/dev.txt b/requirements/dev.txt new file mode 100644 index 0000000..daf821f --- /dev/null +++ b/requirements/dev.txt @@ -0,0 +1,2 @@ +-r mwfin.txt +coverage diff --git a/requirements/mw.txt b/requirements/mw.txt new file mode 100644 index 0000000..bffb2cd --- /dev/null +++ b/requirements/mw.txt @@ -0,0 +1,2 @@ +-r common.txt +mwfin diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..d5202e0 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,33 @@ +[metadata] +name = django-stockfin-db +version = 0.0.1 +author = Daniil & Maximilian F. +author_email = mail@placeholder123.to +description = maintain company fundamentals database +long_description = file: README.md +long_description_content_type = text/markdown +url = https://git.fajnberg.de/daniil/django-stockfin-db +project_urls = + Bug Tracker = https://github.com/daniil-berg/django-stockfin-db/issues +classifiers = + Programming Language :: Python :: 3 + License :: OSI Approved :: MIT License + Operating System :: OS Independent +keywords = django, database, sql, orm, stocks, finance + +[options] +package_dir = + = src +packages = find: +python_requires = >=3.10 +install_requires = + django + +[options.extras_require] +tests = + coverage +mw = + mwfin + +[options.packages.find] +where = src