Skip to content

Commit 9fd719a

Browse files
MAINT: Update Pyproject Toml (And use setuptools to dynamically define the version) (#15)
The following changes have been made to the PyProject.toml NEW: -Added setuptools_scm to build system requires, and use it to dynamically define the EyeLinkIO Version number. CRUFT: - Removed Bandit table-header (We dont use bandit) - Removed rstcheck table-hader (We dont use rst-check) - Removed changelog-bot table-header (We dont have one) - Removed reference to non-existent directory in the codespell table-header
1 parent eded8e9 commit 9fd719a

File tree

1 file changed

+13
-65
lines changed

1 file changed

+13
-65
lines changed

pyproject.toml

Lines changed: 13 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
[build-system]
2-
requires = ["setuptools >= 64.0.0"]
2+
requires = ["setuptools >= 64.0.0", "setuptools-scm>=8"]
33
build-backend = "setuptools.build_meta"
44

55
[tool.setuptools]
66
package-dir = {""= "src"}
77

8+
# We use setuptools_scm to manage the EyeLinkIO version number
9+
[tool.setuptools_scm]
10+
811
[project]
912
name = "eyelinkio"
1013
description = "A lightweight library for reading Eyelink Data Format files in Python."
1114
maintainers = [{ name = "Scott Huberty", email = "[email protected]" }]
1215
readme = "README.md"
1316
requires-python = ">=3.9"
14-
version = "0.2.0"
17+
dynamic = ["version"]
1518
keywords = [
1619
"neuroscience",
1720
"eyelink",
1821
"eyetracking",
22+
"SR Research",
1923
]
2024
classifiers = [
2125
"Intended Audience :: Science/Research",
@@ -62,21 +66,19 @@ build = [
6266
]
6367
dev = ["eyelinkio[test,doc,build,full]"]
6468

65-
# [project.urls]
66-
# Homepage = "https://mne.tools/"
67-
# Download = "https://pypi.org/project/mne/#files"
68-
# "Bug Tracker" = "https://github.com/mne-tools/mne-python/issues/"
69-
# Documentation = "https://mne.tools/"
70-
# Forum = "https://mne.discourse.group/"
71-
# "Source Code" = "https://github.com/mne-tools/mne-python/"
69+
[project.urls]
70+
Homepage = "https://scott-huberty.github.io/eyelinkio/"
71+
Download = "https://pypi.org/project/eyelinkio/#files"
72+
"Bug Tracker" = "https://github.com/scott-huberty/eyelinkio/issues"
73+
Documentation = "https://scott-huberty.github.io/eyelinkio/"
74+
"Source Code" = "https://github.com/scott-huberty/eyelinkio"
7275

7376
[tool.codespell]
7477
ignore-words = "ignore_words.txt"
7578
builtin = "clear,rare,informal,names,usage"
76-
skip = "doc/references.bib"
7779

7880
[tool.ruff]
79-
exclude = ["__init__.py", "constants.py", "resources.py"]
81+
exclude = ["__init__.py"]
8082

8183
[tool.ruff.lint]
8284
select = ["A", "B006", "D", "E", "F", "I", "W", "UP"]
@@ -111,54 +113,6 @@ addopts = """--durations=20 --doctest-modules -rfEXs \
111113
--color=yes --capture=sys"""
112114
junit_family = "xunit2"
113115

114-
[tool.bandit.assert_used]
115-
skips = ["*/test_*.py"] # assert statements are good practice with pytest
116-
117-
[tool.rstcheck]
118-
report_level = "WARNING"
119-
ignore_roles = [
120-
"attr",
121-
"class",
122-
"doc",
123-
"eq",
124-
"exc",
125-
"file",
126-
"footcite",
127-
"footcite:t",
128-
"func",
129-
"gh",
130-
"kbd",
131-
"meth",
132-
"mod",
133-
"newcontrib",
134-
"py:mod",
135-
"ref",
136-
"samp",
137-
"term",
138-
]
139-
ignore_directives = [
140-
"autoclass",
141-
"autofunction",
142-
"automodule",
143-
"autosummary",
144-
"bibliography",
145-
"cssclass",
146-
"currentmodule",
147-
"dropdown",
148-
"footbibliography",
149-
"glossary",
150-
"graphviz",
151-
"grid",
152-
"highlight",
153-
"minigallery",
154-
"tabularcolumns",
155-
"toctree",
156-
"rst-class",
157-
"tab-set",
158-
"towncrier-draft-entries",
159-
]
160-
ignore_messages = "^.*(Unknown target name|Undefined substitution referenced)[^`]*$"
161-
162116
[tool.towncrier]
163117
package = "eyelinkio"
164118
directory = "docs/changes/devel/"
@@ -195,9 +149,3 @@ showcontent = true
195149
directory = "other"
196150
name = "Other changes"
197151
showcontent = true
198-
199-
[tool.changelog-bot]
200-
[tool.changelog-bot.towncrier_changelog]
201-
enabled = true
202-
verify_pr_number = true
203-
changelog_skip_label = "no-changelog-entry-needed"

0 commit comments

Comments
 (0)