initialized package
This commit is contained in:
parent
e5c11d0280
commit
2d190ec269
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
||||
*~
|
||||
|
||||
# ---> Python
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
|
50
pyproject.toml
Normal file
50
pyproject.toml
Normal file
@ -0,0 +1,50 @@
|
||||
[build-system]
|
||||
requires = ["setuptools"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "numerix"
|
||||
version = "1.0"
|
||||
#dynamic = ["version"]
|
||||
dependencies = [
|
||||
"numpy",
|
||||
]
|
||||
requires-python = ">=3.2"
|
||||
authors = [
|
||||
{name = "Jan Benda", email = "jan.benda@uni-tuebingen.de"},
|
||||
]
|
||||
maintainers = [
|
||||
{name = "Jan Benda", email = "jan.benda@uni-tuebingen.de"},
|
||||
]
|
||||
description = "Fancy numerical algorithms."
|
||||
readme = "README.md"
|
||||
license = {file = "LICENSE"}
|
||||
classifiers = [
|
||||
"Development Status :: 2 - Pre-Alpha",
|
||||
"Environment :: Console",
|
||||
"Intended Audience :: Science/Research",
|
||||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
||||
"Natural Language :: English",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.8",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Operating System :: OS Independent",
|
||||
"Topic :: Multimedia :: Sound/Audio",
|
||||
"Topic :: Multimedia :: Sound/Audio :: Analysis",
|
||||
"Topic :: Multimedia :: Sound/Audio :: Conversion",
|
||||
"Topic :: Scientific/Engineering",
|
||||
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||
]
|
||||
|
||||
#[project.urls]
|
||||
#Repository = "https://github.com/bendalab/thunderfish"
|
||||
#Documentation = "https://bendalab.github.io/thunderfish"
|
||||
|
||||
#[project.scripts]
|
||||
#thunderfish = "thunderfish.thunderfish:main"
|
||||
|
||||
#[tool.setuptools.dynamic]
|
||||
#version = {attr = "thunderfish.version.__version__"}
|
||||
|
||||
#[tool.pytest.ini_options]
|
||||
#pythonpath = "src"
|
8
src/numerix/__init__.py
Normal file
8
src/numerix/__init__.py
Normal file
@ -0,0 +1,8 @@
|
||||
"""
|
||||
# Numerix
|
||||
"""
|
||||
|
||||
def add_four(x):
|
||||
return x + 4
|
||||
|
||||
from .addition import add_two
|
17
src/numerix/addition.py
Normal file
17
src/numerix/addition.py
Normal file
@ -0,0 +1,17 @@
|
||||
from .numbers import one
|
||||
|
||||
|
||||
def __add_secret(x):
|
||||
return x + 7
|
||||
|
||||
|
||||
def add_two(x):
|
||||
return x + 2
|
||||
|
||||
|
||||
def one_plus_two():
|
||||
return add_two(one())
|
||||
|
||||
|
||||
|
||||
|
9
src/numerix/numbers.py
Normal file
9
src/numerix/numbers.py
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
|
||||
def one():
|
||||
return 1
|
||||
|
||||
|
||||
def random():
|
||||
return 4 # this number was obtained from a fair die
|
||||
|
Loading…
Reference in New Issue
Block a user