Skip to content

Commit

Permalink
Merge pull request #4 from TUDelft-CITG/feature/course-release
Browse files Browse the repository at this point in the history
Course 2023 release
  • Loading branch information
SiggyF authored May 30, 2023
2 parents 0a77b1a + 8b9a455 commit f2be96a
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 27 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
release:
types: [published]

permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/openqtsim
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion openqtsim/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

__author__ = "Mark van Koningsveld and Joris den Uijl"
__email__ = "m.vankoningsveld@tudelft.nl"
__version__ = "v0.5.0"
__version__ = "v0.5.1"

from .arrival_process import ArrivalProcess
from .customer import Customer
Expand Down
52 changes: 26 additions & 26 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from setuptools import setup, find_packages

try:
require('setuptools>=38.3')
require("setuptools>=38.3")
except VersionConflict:
print("Error: version of setuptools is too old (<38.3)!")
sys.exit(1)
Expand All @@ -24,7 +24,7 @@
"seaborn",
"simpy",
"scipy",
"sphinx_rtd_theme"
"sphinx_rtd_theme",
]

setup_requirements = [
Expand All @@ -40,30 +40,30 @@
long_description = des.read()

setup(
author = "Mark van Koningsveld and Joris den Uijl",
author_email = "m.vankoningsveld@tudelft.nl",
classifiers = [
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
author="Mark van Koningsveld and Joris den Uijl",
author_email="m.vankoningsveld@tudelft.nl",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
description = "OpenQTSim facilitates discrete event simulation of queues with a Kendall notation.",
install_requires = requires,
description="OpenQTSim facilitates discrete event simulation of queues with a Kendall notation.",
install_requires=requires,
long_description=long_description,
long_description_content_type="text/markdown",
include_package_data = True,
keywords = "Queueing Theory",
name = "openqtsim",
packages = find_packages(include=["openqtsim"]),
setup_requires = setup_requirements,
test_suite = "tests",
tests_require = tests_require,
url = "https://github.com/TUDelft-CITG/OpenQTSim",
version = "v0.5.0",
zip_safe = False,
)
include_package_data=True,
keywords="Queueing Theory",
name="openqtsim",
packages=find_packages(include=["openqtsim"]),
setup_requires=setup_requirements,
test_suite="tests",
tests_require=tests_require,
url="https://github.com/TUDelft-CITG/OpenQTSim",
version="v0.5.1",
zip_safe=False,
)

0 comments on commit f2be96a

Please sign in to comment.