-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to pyproject.toml, update for numpy 2.0 (#39)
* move to pyproject file * remove setup.py * not needed anymore * files included by default by Hatch since they are not ignored by VSC * ensure last empty line * switch to np.nan for numpy 2.0 compatibility * and bump patch version for release * and add to changelog * update authors metadata as discussed
- Loading branch information
Showing
11 changed files
with
93 additions
and
90 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ jobs: | |
with: | ||
src-dir: pylhc_submitter | ||
pytest-options: -m "not cern_network" | ||
secrets: inherit | ||
secrets: inherit |
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
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 |
---|---|---|
|
@@ -15,4 +15,3 @@ jobs: | |
uses: pylhc/.github/.github/workflows/tests.yml@master | ||
with: | ||
pytest-options: -m "not cern_network" | ||
|
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
__title__ = "pylhc_submitter" | ||
__description__ = "pylhc-submitter contains scripts to simplify the creation and submission of jobs to HTCondor at CERN" | ||
__url__ = "https://github.com/pylhc/submitter" | ||
__version__ = "2.0.3" | ||
__version__ = "2.0.4" | ||
__author__ = "pylhc" | ||
__author_email__ = "[email protected]" | ||
__license__ = "MIT" | ||
|
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,84 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.hatch.version] | ||
path = "pylhc_submitter/__init__.py" | ||
|
||
[tool.hatch.build.targets.sdist] | ||
exclude = [ | ||
"/.github", | ||
"/doc", | ||
"/tests", | ||
] | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["pylhc_submitter"] | ||
|
||
[project] | ||
name = "pylhc_submitter" | ||
readme = "README.md" | ||
description = "pylhc-submitter contains scripts to simplify the creation and submission of jobs to HTCondor at CERN" | ||
authors = [ | ||
{name = "OMC Team", email = "[email protected]"}, # see zenodo file / commits for details | ||
] | ||
license = "MIT" | ||
dynamic = ["version"] | ||
requires-python = ">=3.9" | ||
|
||
classifiers = [ | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: MIT License", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Typing :: Typed", | ||
] | ||
|
||
dependencies = [ | ||
"numpy >= 1.24", | ||
"scipy >= 1.10", | ||
"pandas >= 2.1", | ||
"tfs-pandas >= 3.8", | ||
"matplotlib >= 3.8", | ||
"htcondor >= 8.9.2 ; sys_platform=='linux'", # no bindings for macOS or windows on PyPI | ||
"generic-parser >= 1.1", | ||
] | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"pytest>=7.0", | ||
"pytest-cov>=2.9", | ||
"pytest-mpl>=0.15", | ||
] | ||
doc = [ | ||
"sphinx >= 7.0", | ||
"sphinx_rtd_theme >= 2.0", | ||
] | ||
|
||
all = [ | ||
"pylhc_submitter[test]", | ||
"pylhc_submitter[doc]", | ||
] | ||
|
||
[project.urls] | ||
homepage = "https://github.com/pylhc/submitter" | ||
repository = "https://github.com/pylhc/submitter" | ||
documentation = "https://pylhc.github.io/submitter/" | ||
changelog = "https://github.com/pylhc/submitter/blob/master/CHANGELOG.md" | ||
|
||
# ----- Testing ----- # | ||
|
||
[tool.pytest.ini_options] | ||
markers = [ | ||
"cern_network: tests that require access to afs or the technical network", | ||
] | ||
# Helpful for pytest-debugging (leave commented out on commit): | ||
# log_cli=true | ||
# log_level=DEBUG |