Skip to content

Commit

Permalink
Migrate from setup.py to pyproject.toml (close #34)
Browse files Browse the repository at this point in the history
  • Loading branch information
ysayfad authored Nov 29, 2024
1 parent a41c340 commit c07efb1
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 245 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,5 @@ _version_save.py
*.bib.bak

.idea

pyjibe/_version.py
197 changes: 0 additions & 197 deletions pyjibe/_version.py

This file was deleted.

1 change: 0 additions & 1 deletion pyjibe/head/update.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import json
import os
import struct
import sys
import traceback
import urllib.request
Expand Down
51 changes: 51 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[build-system]
# Defined by PEP 518:
requires = [
# for version management
"setuptools>=45",
"setuptools_scm[toml]>=6.2",
]
build-backend = "setuptools.build_meta"

[project]
name = "pyjibe"
authors = [
# In alphabetical order.
{name = "Paul Müller"},
]
maintainers = [
{name = "Paul Müller", email="[email protected]"},
]
description = "Graphical user interface for Bio-AFM analysis"
readme = "README.rst"
requires-python = ">=3.10, <4"
keywords = ["atomic force microscopy", "biomechanics"]
classifiers = [
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Visualization',
'Intended Audience :: Science/Research'
]
license = {text = "GPL version 3.0 or later"}
dependencies = [
"afmformats>=0.18.0",
"nanite>=4.1.1",
# https://github.com/AFM-analysis/PyJibe/issues/32
"matplotlib>=3,<3.7.5", # NavigationToolbar2QT mod
"packaging", # for version checking during update
"pyqt5",
]
dynamic = ["version"]

[project.scripts]
pyjibe = "pyjibe.__main__:main"

[project.urls]
source = "https://github.com/AFM-analysis/PyJibe"
tracker = "https://github.com/AFM-analysis/PyJibe/Issues"
documentation = "https://pyjibe.readthedocs.io/en/stable/"
changelog = "https://pyjibe.readthedocs.io/en/stable/sec_changelog.html"

[tool.setuptools_scm]
write_to = "pyjibe/_version.py"
version_scheme = "post-release"
3 changes: 0 additions & 3 deletions setup.cfg

This file was deleted.

44 changes: 0 additions & 44 deletions setup.py

This file was deleted.

0 comments on commit c07efb1

Please sign in to comment.