Skip to content

Commit c972f3c

Browse files
committed
Switch to pyproject.toml-based build
1 parent 361f7d1 commit c972f3c

File tree

4 files changed

+58
-46
lines changed

4 files changed

+58
-46
lines changed

pyproject.toml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
[build-system]
2+
requires = ["flit_core >=3.2,<4"]
3+
build-backend = "flit_core.buildapi"
4+
5+
[tool.flit.module]
6+
name = "slurm2sql"
7+
8+
[project]
9+
name = "slurm2sql"
10+
authors = [{name = "Richard Darst"}]
11+
readme = "README.rst"
12+
license = {file = "LICENSE"}
13+
# https://pypi.org/classifiers/
14+
classifiers = [
15+
"Programming Language :: Python :: 2.7",
16+
"Programming Language :: Python :: 3",
17+
"License :: OSI Approved :: MIT License",
18+
"Operating System :: OS Independent",
19+
"Development Status :: 4 - Beta",
20+
"Environment :: Console",
21+
"Intended Audience :: System Administrators",
22+
"Topic :: Database",
23+
"Topic :: System :: Clustering",
24+
"Topic :: System :: Distributed Computing",
25+
]
26+
keywords = ["slurm", "sqlite3"]
27+
requires-python = ">=3.6"
28+
dynamic = ["version", "description"]
29+
dependencies = [
30+
"tabulate",
31+
]
32+
33+
[project.optional-dependencies]
34+
test = [
35+
"pytest",
36+
]
37+
38+
[project.scripts]
39+
slurm2sql = "slurm2sql:main"
40+
slurm2sql-sacct = "slurm2sql:sacct_cli"
41+
slurm2sql-seff = "slurm2sql:seff_cli"
42+
43+
[project.urls]
44+
Repository = "https://github.com/NordicHPC/slurm2sql"
45+
#Documentation = "https://example.com/"
46+
47+
48+
# https://flit.pypa.io/en/latest/upload.html
49+
# flit build
50+
# You need to configure a .pypirc file for test upload, or use environment variables:
51+
# https://flit.pypa.io/en/latest/upload.html#using-pypirc
52+
# flit publish --repository testpypi
53+
# or: FLIT_INDEX_URL=https://test.pypi.org/legacy/ FLIT_USERNAME=xxx and FLIT_PASSWORD=xxx flit publish
54+
# flit publish

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.

setup.py

Lines changed: 0 additions & 46 deletions
This file was deleted.

slurm2sql.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

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

5+
"""Import Slurm accounting database from sacct to sqlite3 database
6+
"""
7+
58
from __future__ import division, print_function
69

710
import argparse

0 commit comments

Comments
 (0)