From 5506b946a50ef728586279fd1342758c01874e61 Mon Sep 17 00:00:00 2001 From: Dennis Concepcion Martin Date: Sat, 20 Nov 2021 18:04:06 +0100 Subject: [PATCH] add setup.cfg --- pyproject.toml | 6 ++++++ setup.cfg | 29 +++++++++++++++++++++++++++++ setup.py | 24 ++---------------------- {fbs => src}/__init__.py | 0 src/fbs/__init__.py | 0 {fbs => src/fbs}/helpers.py | 0 {fbs => src/fbs}/main.py | 0 tests/test_helpers.py | 2 +- 8 files changed, 38 insertions(+), 23 deletions(-) create mode 100644 pyproject.toml create mode 100644 setup.cfg rename {fbs => src}/__init__.py (100%) create mode 100644 src/fbs/__init__.py rename {fbs => src/fbs}/helpers.py (100%) rename {fbs => src/fbs}/main.py (100%) 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/setup.cfg b/setup.cfg new file mode 100644 index 0000000..e74314b --- /dev/null +++ b/setup.cfg @@ -0,0 +1,29 @@ +[metadata] +name = fucking-black-scholes +version = 0.0.2 +author = Dennis Concepcion Martin +author_email = dennisconcepcionmartin@gmail.com +description = A simple command line tool for pricing options using the Black-Scholes model +long_description = file: README.md +long_description_content_type = text/markdown +url = https://github.com/denniscm190/fucking-black-scholes +project_urls = Bug Tracker = https://github.com/denniscm190/fucking-black-scholes/issues +classifiers = + Programming Language :: Python :: 3 + License :: OSI Approved :: MIT License + Operating System :: OS Independent + +[options] +package_dir = = src +packages = find: +python_requires = >=3.8 +install_requires = + numpy~=1.21.4 + scipy~=1.7.2 + click~=8.0.3 + +[options.packages.find] +where = src + +[options.entry_points] +console_scripts = fbs = fbs.main:cli \ No newline at end of file diff --git a/setup.py b/setup.py index 75f9e79..b024da8 100644 --- a/setup.py +++ b/setup.py @@ -1,24 +1,4 @@ -from setuptools import setup, find_packages +from setuptools import setup -setup( - name='fucking-black-scholes', - description='A simple command line tool for pricing options using the Black-Scholes model', - version='0.0.1', - packages=find_packages(), - install_requires=['numpy~=1.21.4', 'scipy~=1.7.2', 'click~=8.0.3'], - python_requires='>=3.8', - entry_points=''' - [console_scripts] - fbs=fbs.main:cli - ''', - author="Dennis Concepción Martín", - keyword="finance, black-scholes, option, pricing, derivative", - license='MIT', - url='https://github.com/denniscm190/fucking-black-scholes', - author_email='dennisconcepcionmartin@gmail.com', - classifiers=[ - "License :: OSI Approved :: MIT License", - "Programming Language :: Python :: 3.8", - ] -) +setup() diff --git a/fbs/__init__.py b/src/__init__.py similarity index 100% rename from fbs/__init__.py rename to src/__init__.py diff --git a/src/fbs/__init__.py b/src/fbs/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/fbs/helpers.py b/src/fbs/helpers.py similarity index 100% rename from fbs/helpers.py rename to src/fbs/helpers.py diff --git a/fbs/main.py b/src/fbs/main.py similarity index 100% rename from fbs/main.py rename to src/fbs/main.py diff --git a/tests/test_helpers.py b/tests/test_helpers.py index 491f4c5..e5a88e0 100644 --- a/tests/test_helpers.py +++ b/tests/test_helpers.py @@ -1,5 +1,5 @@ from unittest import TestCase -from fbs.helpers import Option +from src.fbs.helpers import Option class TestOption(TestCase):