Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate package metadata in pyproject.toml #5

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 20 additions & 0 deletions CHANGES.rst
@@ -0,0 +1,20 @@
Changelog
*********

Changelog entries for the development version are available at
https://rosettasciio.readthedocs.io/en/latest/changes.html
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
https://rosettasciio.readthedocs.io/en/latest/changes.html
https://holospy.readthedocs.io/en/latest/changes.html


0.1 (UNRELEASED)
================

- Add pre-commit configuration file (`#4 <https://github.com/hyperspy/holospy/pull/4>`_)
- Format code using ``black`` and add workflow to check formatting (`#3 <https://github.com/hyperspy/holospy/pull/3>`_).
- Add GitHub workflows to tests and build packages (`#2 <https://github.com/hyperspy/holospy/pull/2>`_).

Initiation (2023-07-23)
=======================

- HoloSpy was split out of the `HyperSpy repository
<https://github.com/hyperspy/hyperspy>`_ on July 23, 2023. The holography
functionalities so far developed in HyperSpy were moved to this
new repository.
674 changes: 674 additions & 0 deletions COPYING.txt

Large diffs are not rendered by default.

9 changes: 2 additions & 7 deletions holospy/__init__.py
@@ -1,15 +1,10 @@
from holospy import signals
from holospy import misc

from . import release_info
from ._version import __version__

__all__ = [
"__version__",
"signals",
"misc",
]

__version__ = release_info.version
__author__ = release_info.author
__copyright__ = release_info.copyright
__license__ = release_info.license
__status__ = release_info.status
1 change: 1 addition & 0 deletions holospy/_version.py
@@ -0,0 +1 @@
__version__ = "0.1.dev0"
6 changes: 0 additions & 6 deletions holospy/release_info.py

This file was deleted.

87 changes: 87 additions & 0 deletions pyproject.toml
@@ -0,0 +1,87 @@
[build-system]
requires = ["setuptools>=49.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "holospy"
description = "Analysis of holography data with HyperSpy."
requires-python = ">=3.8"
readme = "README.rst"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Software Development :: Libraries",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
]
dependencies = [
# Uncomment when hyperspy is released
#"hyperspy>=2.0",
"numpy>=1.20.0",
"scipy>=1.5.0",
]
dynamic = ["version"]

[project.entry-points."hyperspy.extensions"]
holospy = "holospy"

[project.license]
file = "COPYING.txt"

[project.optional-dependencies]
tests = [
"pytest",
"pytest-cov"
]
docs = [
"numpydoc",
"pydata-sphinx-theme>=0.13",
"sphinx",
"sphinx-favicon",
]
dev = [
"black",
"holospy[docs]",
"holospy[tests]"
]

[project.urls]
"Homepage" = "https://hyperspy.org/holospy"
"Bug Reports" = "https://github.com/hyperspy/holospy/issues"
"Source" = "https://github.com/hyperspy/holospy"

[tool.pytest.ini_options]
# "-ra", # Display summary: "all except passes"
addopts = "-ra"
minversion = "6.0"
testpaths = [
"rsciio/tests",
]

[tool.setuptools.dynamic]
version = {attr = "holospy._version.__version__"}

[tool.setuptools.packages.find]
include = ["holospy*"]

[tool.setuptools.package-data]
"*" = ["*hyperspy_extension.yaml"]

[tool.coverage.run]
branch = true
source = ["holospy"]
omit = [
"holospy/tests/*",
]

[tool.coverage.report]
precision = 2
4 changes: 0 additions & 4 deletions setup.cfg

This file was deleted.

83 changes: 0 additions & 83 deletions setup.py

This file was deleted.