Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rmax committed Jul 10, 2024
0 parents commit e34b485
Show file tree
Hide file tree
Showing 9 changed files with 121 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# python generated files
__pycache__/
*.py[oc]
build/
dist/
wheels/
*.egg-info

# venv
.venv

_version.py
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.10.14
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SimPy Playground

A SimPy Playground to run simulations and experiment with different scenarios.
58 changes: 58 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
[project]
name = "simpy-playground"
dynamic = ["version"]
description = "A SimPy playground to experiment with multiple simulation scenarios."
authors = [{ name = "R Max Espinoza", email = "[email protected]" }]
dependencies = ["simpy"]
readme = "README.md"
license = { text = "MIT" }
requires-python = ">= 3.10"
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Scientific/Engineering",
]
[project.scripts]
simpy-play = 'simpy_playground.__main__:main'


[project.urls]
Homepage = "https://github.com/rmax/simpy-playground/"
Source = "https://github.com/rmax/simpy-playground/"

[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

[tool.hatch.version]
source = "vcs"
raw-options = { version_scheme = "no-guess-dev" }

[tool.hatch.build.hooks.vcs]
version-file = "src/simpy_playground/_version.py"

[tool.rye]
managed = true
dev-dependencies = []

[tool.hatch.metadata]
allow-direct-references = true

[tool.hatch.build.targets.sdist]
include = ["src/simpy_playground"]

[tool.hatch.build.targets.wheel]
packages = ["src/simpy_playground"]
14 changes: 14 additions & 0 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
# pre: false
# features: []
# all-features: false
# with-sources: false
# generate-hashes: false
# universal: false

-e file:.
simpy==4.1.1
# via simpy-playground
14 changes: 14 additions & 0 deletions requirements.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
# pre: false
# features: []
# all-features: false
# with-sources: false
# generate-hashes: false
# universal: false

-e file:.
simpy==4.1.1
# via simpy-playground
2 changes: 2 additions & 0 deletions src/simpy_playground/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def main() -> None:
print("Hello from simpy-playground!")
6 changes: 6 additions & 0 deletions src/simpy_playground/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
def main() -> None:
print("Hello from simpy-playground!")


if __name__ == "__main__":
main()
11 changes: 11 additions & 0 deletions src/simpy_playground/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Load version from auto-generated _version.py or else from installed package
# metadata, if available.
try:
from simpy_playground._version import __version__
except ImportError:
from importlib.metadata import PackageNotFoundError, version

try:
__version__ = version("simpy_playground")
except PackageNotFoundError:
__version__ = "0.0.0"

0 comments on commit e34b485

Please sign in to comment.