Skip to content

Commit

Permalink
Switch to pyproject.toml-based build
Browse files Browse the repository at this point in the history
  • Loading branch information
rkdarst committed Oct 23, 2024
1 parent 361f7d1 commit c972f3c
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 46 deletions.
54 changes: 54 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"

[tool.flit.module]
name = "slurm2sql"

[project]
name = "slurm2sql"
authors = [{name = "Richard Darst"}]
readme = "README.rst"
license = {file = "LICENSE"}
# https://pypi.org/classifiers/
classifiers = [
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: System Administrators",
"Topic :: Database",
"Topic :: System :: Clustering",
"Topic :: System :: Distributed Computing",
]
keywords = ["slurm", "sqlite3"]
requires-python = ">=3.6"
dynamic = ["version", "description"]
dependencies = [
"tabulate",
]

[project.optional-dependencies]
test = [
"pytest",
]

[project.scripts]
slurm2sql = "slurm2sql:main"
slurm2sql-sacct = "slurm2sql:sacct_cli"
slurm2sql-seff = "slurm2sql:seff_cli"

[project.urls]
Repository = "https://github.com/NordicHPC/slurm2sql"
#Documentation = "https://example.com/"


# https://flit.pypa.io/en/latest/upload.html
# flit build
# You need to configure a .pypirc file for test upload, or use environment variables:
# https://flit.pypa.io/en/latest/upload.html#using-pypirc
# flit publish --repository testpypi
# or: FLIT_INDEX_URL=https://test.pypi.org/legacy/ FLIT_USERNAME=xxx and FLIT_PASSWORD=xxx flit publish
# flit publish
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.
46 changes: 0 additions & 46 deletions setup.py

This file was deleted.

3 changes: 3 additions & 0 deletions slurm2sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

# pylint: disable=too-few-public-methods, missing-docstring

"""Import Slurm accounting database from sacct to sqlite3 database
"""

from __future__ import division, print_function

import argparse
Expand Down

0 comments on commit c972f3c

Please sign in to comment.