Skip to content

Commit

Permalink
switch to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
MandolinMicke committed Jan 18, 2025
1 parent 729ef8a commit b036bc6
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 42 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Install lxml
run: python3 -m pip install lxml
- name: Install requirements
run: python3 setup.py install --user # setuptools doesn't support querying 'install_requires' it seems, so install package to get dependencies
run: python3 -m pip install -r requirements.txt
- name: Run tests
run: python3 -m pytest tests/

Expand All @@ -52,7 +52,7 @@ jobs:
- name: Install lxml
run: python3 -m pip install lxml
- name: Install requirements
run: python3 setup.py install --user # setuptools doesn't support querying 'install_requires' it seems, so install package to get dependencies
run: python3 -m pip install -r requirements.txt
- name: common_junction_creator
if: always()
run: python3 examples/xodr/common_junction_creator.py
Expand Down Expand Up @@ -139,7 +139,7 @@ jobs:
- name: Install lxml
run: python3 -m pip install lxml
- name: Install requirements
run: python3 setup.py install --user # setuptools doesn't support querying 'install_requires' it seems, so install package to get dependencies
run: python3 -m pip install -r requirements.txt
- name: Acceleration_condition
if: always()
run: python3 examples/xosc/Acceleration_condition.py
Expand Down Expand Up @@ -200,7 +200,7 @@ jobs:
- name: Install lxml
run: python3 -m pip install lxml
- name: Install requirements
run: python3 setup.py install --user # setuptools doesn't support querying 'install_requires' it seems, so install package to get dependencies
run: python3 -m pip install -r requirements.txt
- name: CCRb
if: always()
run: python3 examples/generator/CCRb.py
Expand Down
1 change: 0 additions & 1 deletion MANIFEST.in

This file was deleted.

41 changes: 41 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"


[tool.setuptools]
packages=["scenariogeneration"]


[project]
name = "scenariogeneration" # REQUIRED, is the only field that cannot be marked as dynamic.

version = "0.14.9"
description = "Generation of OpenSCENARIO and OpenDRIVE xml files"

readme = "README.md"

requires-python = ">=3.7"

# https://packaging.python.org/en/latest/specifications/core-metadata/#license
license = { file = "LICENSE" }

keywords = ["OpenDRIVE", "OpenSCENARIO", "xml"]
authors = [{ name = "M. Andersson, I. Natale, A. Tingberg", email = "[email protected]" }]

classifiers = [
"Development Status :: 4 - Beta",

"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Operating System :: OS Independent",
]
[tool.setuptools.dynamic]
dependencies = {file=["requirements.txt"]}
4 changes: 0 additions & 4 deletions setup.cfg

This file was deleted.

33 changes: 0 additions & 33 deletions setup.py

This file was deleted.

0 comments on commit b036bc6

Please sign in to comment.