-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
98 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Publish | ||
|
||
on: | ||
release: | ||
types: [ created ] | ||
|
||
jobs: | ||
run: | ||
name: "Build and publish release" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
version: "0.4.27" | ||
|
||
- run: uv python install 3.12 | ||
- run: uv build | ||
- run: uv publish | ||
env: | ||
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,79 @@ | ||
[tool.poetry] | ||
[project] | ||
name = "fjsplib" | ||
version = "0.0.1" | ||
description = "Python package to read and write FJSP instances." | ||
authors = ["Leon Lan <leon.lanyidong@gmail.com>"] | ||
license = "MIT" | ||
authors = [ | ||
{ name = "Leon Lan", email = "l.lan@vu.nl"}, | ||
] | ||
license = { text = "MIT License" } | ||
readme = "README.md" | ||
repository = "https://github.com/leonlan/FJSPLIB" | ||
keywords = [ | ||
"scheduling", | ||
"flexible job shop scheduling", | ||
"fjsp", | ||
] | ||
classifiers = [ | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"Development Status :: 5 - Production/Stable", | ||
"Topic :: Software Development", | ||
"Topic :: Scientific/Engineering", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3", | ||
] | ||
requires-python = ">=3.9" | ||
dependencies = [ | ||
"numpy>=1.26.0", | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.9" | ||
numpy = "^1.26.4" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
pre-commit = "^2.19.0" | ||
pytest = "^7.1.2" | ||
pytest-cov = ">=2.6.1" | ||
[project.urls] | ||
Repository = "https://github.com/PyJobShop/FJSPLIB" | ||
|
||
|
||
[tool.black] | ||
line-length = 79 | ||
[dependency-groups] | ||
dev = [ | ||
"pre-commit>=3.8.0", | ||
"pytest>=8.3.2", | ||
] | ||
|
||
|
||
[tool.uv] | ||
default-groups = ["dev"] | ||
|
||
|
||
[tool.mypy] | ||
ignore_missing_imports = true | ||
|
||
|
||
[tool.black] | ||
line-length = 79 | ||
|
||
|
||
[tool.ruff] | ||
line-length = 79 | ||
extend-include = ["*.ipynb"] | ||
|
||
|
||
[tool.ruff.lint] | ||
ignore-init-module-imports = true | ||
select = [ | ||
"E", "F", "I", "NPY", "PYI", "Q", "RET", "RSE", "RUF", "SLF", "SIM", "TCH" | ||
"E", # pycodestyle errors | ||
"W", # pycodestyle warnings | ||
"F", # pyflakes | ||
"I", # isort | ||
"C", # flake8-comprehensions | ||
"B", # flake8-bugbear | ||
] | ||
ignore = [ | ||
"E741", # ambiguous variable name, needed for indexing | ||
"C901", # too complex | ||
] | ||
|
||
[tool.ruff.lint.isort] | ||
case-sensitive = true | ||
known-first-party = ["fjsplib", "tests"] | ||
|
||
|
||
[tool.pytest.ini_options] | ||
addopts = "--cov=. --cov-report=xml --cov-report=term" | ||
testpaths = "tests" | ||
[tool.ruff.lint.per-file-ignores] | ||
"__init__.py" = ["F401"] # ignore unused module imports | ||
|
||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" |