From 41071f2e34bf73a57136ab0f6c65bd3534b43053 Mon Sep 17 00:00:00 2001 From: Anders Reenberg Andersen Date: Sat, 16 Mar 2024 21:14:29 +0100 Subject: [PATCH] Created structure for PyPI --- LICENSE.txt => LICENSE | 0 pyproject.toml | 27 ++++++++++++++++++++ setup.cfg | 2 -- setup.py | 25 ------------------ {phph => src/phph}/BlockUniformization.py | 0 {phph => src/phph}/LocalStateSpace.py | 0 {phph => src/phph}/Queue.py | 0 {phph => src/phph}/SubMatrices.py | 0 {phph => src/phph}/Uniformization.py | 0 {phph => src/phph}/__init__.py | 0 {phph => src/phph}/model.py | 0 queue_example1.py => tests/queue_example1.py | 0 queue_example2.py => tests/queue_example2.py | 0 queue_example3.py => tests/queue_example3.py | 0 14 files changed, 27 insertions(+), 27 deletions(-) rename LICENSE.txt => LICENSE (100%) create mode 100644 pyproject.toml delete mode 100644 setup.cfg delete mode 100644 setup.py rename {phph => src/phph}/BlockUniformization.py (100%) rename {phph => src/phph}/LocalStateSpace.py (100%) rename {phph => src/phph}/Queue.py (100%) rename {phph => src/phph}/SubMatrices.py (100%) rename {phph => src/phph}/Uniformization.py (100%) rename {phph => src/phph}/__init__.py (100%) rename {phph => src/phph}/model.py (100%) rename queue_example1.py => tests/queue_example1.py (100%) rename queue_example2.py => tests/queue_example2.py (100%) rename queue_example3.py => tests/queue_example3.py (100%) diff --git a/LICENSE.txt b/LICENSE similarity index 100% rename from LICENSE.txt rename to LICENSE diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..de599b1 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,27 @@ +[build-system] +requires = ["setuptools>=59.6.0"] +build-backend = "setuptools.build_meta" + +[project] +name = "phph" +version = "0.1" +dependencies = [ + "numpy>=1.24.2", + "scipy>=1.10.1" +] +authors = [ + { name="Anders Reenberg Andersen", email="andersra@live.dk" }, +] +description = "A Python package for PH/PH/c queueing systems" +readme = "README.md" +requires-python = ">=3.10" +classifiers = [ + "Development Status :: 3 - Alpha", + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", +] + +[project.urls] +Homepage = "https://github.com/areenberg/phph" +Issues = "https://github.com/areenberg/phph/issues" \ No newline at end of file diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 224a779..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[metadata] -description-file = README.md \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index 7cbef99..0000000 --- a/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -from distutils.core import setup -setup( - name = 'phph', - packages = ['phph'], - version = '0.1', - license='MIT', - description = 'A Python package for PH/PH/c queueing systems', - author = 'Anders Reenberg Andersen', - author_email = 'andersra@live.dk', - url = 'https://github.com/areenberg/phph', - download_url = 'https://github.com/user/reponame/archive/v_01.tar.gz', #<<<--- NEED TO UPDATE - keywords = ['queueing-theory','queueing','phase-type','waiting-time','service','probability'], - install_requires=[ - 'numpy', - 'scipy', - ], - classifiers=[ - 'Development Status :: 3 - Alpha', - 'Intended Audience :: Developers', - 'Topic :: Software Development :: Build Tools', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.10', - ], -) \ No newline at end of file diff --git a/phph/BlockUniformization.py b/src/phph/BlockUniformization.py similarity index 100% rename from phph/BlockUniformization.py rename to src/phph/BlockUniformization.py diff --git a/phph/LocalStateSpace.py b/src/phph/LocalStateSpace.py similarity index 100% rename from phph/LocalStateSpace.py rename to src/phph/LocalStateSpace.py diff --git a/phph/Queue.py b/src/phph/Queue.py similarity index 100% rename from phph/Queue.py rename to src/phph/Queue.py diff --git a/phph/SubMatrices.py b/src/phph/SubMatrices.py similarity index 100% rename from phph/SubMatrices.py rename to src/phph/SubMatrices.py diff --git a/phph/Uniformization.py b/src/phph/Uniformization.py similarity index 100% rename from phph/Uniformization.py rename to src/phph/Uniformization.py diff --git a/phph/__init__.py b/src/phph/__init__.py similarity index 100% rename from phph/__init__.py rename to src/phph/__init__.py diff --git a/phph/model.py b/src/phph/model.py similarity index 100% rename from phph/model.py rename to src/phph/model.py diff --git a/queue_example1.py b/tests/queue_example1.py similarity index 100% rename from queue_example1.py rename to tests/queue_example1.py diff --git a/queue_example2.py b/tests/queue_example2.py similarity index 100% rename from queue_example2.py rename to tests/queue_example2.py diff --git a/queue_example3.py b/tests/queue_example3.py similarity index 100% rename from queue_example3.py rename to tests/queue_example3.py