Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Pyproject migration #203

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .coveragerc

This file was deleted.

6 changes: 0 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ repos:
rev: v4.5.0
hooks:
- id: check-yaml
- id: check-toml
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed, since ruff already parses pyproject.toml and prints nice errors if there is a problem.

- id: end-of-file-fixer
- id: trailing-whitespace

Expand All @@ -34,8 +33,3 @@ repos:
- types-requests
- types-tabulate
- types-toml

- repo: https://github.com/mgedmin/check-manifest
rev: '0.49'
hooks:
- id: check-manifest
13 changes: 0 additions & 13 deletions MANIFEST.in

This file was deleted.

100 changes: 99 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,78 @@
# TODO: Move entire setup.cfg to pyproject.toml
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"

[project]
name = "aiidalab_launch"
authors = [{name = "Carl Simon Adorf and the AiiDAlab team", email = "[email protected]"}]
readme = "README.md"
license = {file = "LICENSE"}
description = "Tool to launch AiiDAlab on a local workstation."
dynamic = ["version"]
requires-python = '>=3.8'

classifiers = [
'Development Status :: 5 - Production/Stable',
'Framework :: AiiDA',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS :: MacOS X',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Scientific/Engineering',
]

dependencies = [
'click==8.1',
'click-spinner==0.1.10',
'docker==7.0.0',
'packaging==21.3',
'requests==2.26.0',
'requests-cache==0.9.1',
'tabulate==0.9.0',
'toml==0.10.2',
]

[project.scripts]
aiidalab-launch = "aiidalab_launch.__main__:cli"

[project.urls]
Home = "https://github.com/aiidalab/aiidalab-launch"

[project.optional-dependencies]
dev = [
'bumpver==2023.1129',
'dunamai==1.19.0',
'pre-commit>=3.5.0',
]

tests = [
'pytest~=7.4.3',
'pytest-asyncio~=0.21.1',
'pytest-cov~=4.1.0',
'responses~=0.23.1',
]

[tool]

[tool.flit.sdist]
exclude = ["tests", "aiidalab_launch/.mypy_cache"]
include = ["*.md", "LICENSE", "logos/*.png"]

[tool.mypy]
warn_unused_configs = true
disallow_untyped_calls = true

[[tool.mypy.overrides]]
module = "docker.*"
ignore_missing_imports = true

[tool.pytest.ini_options]
addopts = ["--cov=aiidalab_launch", "--cov-fail-under=80"]
asyncio_mode = "auto"
markers = ["slow: marks tests as slow"]
filterwarnings = ["ignore::DeprecationWarning:docker.*:"]

[tool.ruff]
line-length = 88
Expand All @@ -23,3 +97,27 @@ select = [

[tool.ruff.lint.per-file-ignores]
"tests/*" = ["ARG001"]

[tool.bumpver]
current_version = "v2023.1019"
version_pattern = "vYYYY.BUILD[PYTAGNUM]"
commit_message = "Bump version {old_version} -> {new_version}"
commit = true
tag = true
push = true

[tool.bumpver.file_patterns]
"aiidalab_launch/version.py" = [
'__version__ = "{version}"',
]

[tool.coverage.run]
omit = [
'*/venv/*',
'*/tests/*',
'*/docs/*',
'*/dist/*',
]

[tool.coverage.html]
directory = './htmlcov'
73 changes: 0 additions & 73 deletions setup.cfg

This file was deleted.

4 changes: 0 additions & 4 deletions setup.py

This file was deleted.

Loading