Skip to content

Commit 0f93acf

Browse files
committed
moved from setup.py to hatch & pyproject.toml
1 parent 0d10d2c commit 0f93acf

File tree

4 files changed

+64
-37
lines changed

4 files changed

+64
-37
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ tests/__pycache__
1818
dist
1919
build/lib
2020
build/local
21+
22+
coderdata/_version.py

coderdata/__init__.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,9 @@
77

88
# '_version.py' will be generated by hatchling once the switch away from
99
# setuptools.py is finished
10-
try:
11-
from ._version import __version__
12-
except ImportError:
13-
__version__ = '0.1.40'
14-
try:
15-
from ._version import __version_tuple__
16-
except ImportError:
17-
__version_tuple__ = (0, 1, 40)
10+
from ._version import __version__
11+
from ._version import __version_tuple__
12+
1813

1914
from .utils.utils import version
2015
from .utils.utils import list_datasets

pyproject.toml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
[build-system]
2+
requires = [
3+
"hatchling",
4+
"hatch-vcs",
5+
]
6+
build-backend = "hatchling.build"
7+
8+
[project]
9+
name = "coderdata"
10+
description = "A package to download, load, and process multiple benchmark multi-omic drug response datasets"
11+
12+
requires-python = ">=3.9"
13+
authors = [
14+
{ name = "Jeremy Jacobson", email = "[email protected]" },
15+
{ name = "Yannick Mahlich", email = "[email protected]" },
16+
{ name = "Sara Gosline", email = "[email protected]"}
17+
]
18+
classifiers = [
19+
"License :: OSI Approved :: BSD License",
20+
"Operating System :: OS Independent",
21+
"Programming Language :: Python :: 3 :: Only",
22+
"Programming Language :: Python :: 3.9",
23+
"Programming Language :: Python :: 3.10",
24+
"Programming Language :: Python :: 3.11",
25+
"Programming Language :: Python :: 3.12",
26+
"Programming Language :: Python :: 3.13",
27+
"Topic :: Scientific/Engineering",
28+
"Topic :: Scientific/Engineering :: Bio-Informatics",
29+
]
30+
dependencies = [
31+
"numpy",
32+
"pandas",
33+
"requests",
34+
]
35+
dynamic = [
36+
"version",
37+
]
38+
readme = "README.md"
39+
license = {text = "2-clause BSD"}
40+
41+
[project.scripts]
42+
coderdata = "coderdata.cli:main"
43+
44+
[project.urls]
45+
Homepage = "https://github.com/PNNL-CompBio/candleDataProcessing"
46+
Documentation = "https://pnnl-compbio.github.io/coderdata/"
47+
Repository = "https://github.com/PNNL-CompBio/coderdata.git"
48+
Issues = "https://github.com/PNNL-CompBio/coderdata/issues"
49+
50+
[tool.hatch.version]
51+
source = "vcs"
52+
53+
[tool.hatch.build.hooks.vcs]
54+
version-file = "coderdata/_version.py"
55+
56+
[tool.hatch.build.targets.sdist]
57+
include = [
58+
"/coderdata",
59+
]

setup.py

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

0 commit comments

Comments
 (0)