Skip to content

Commit

Permalink
Merge pull request #21 from fusion-energy/develop
Browse files Browse the repository at this point in the history
updating package production
  • Loading branch information
shimwell authored Sep 29, 2022
2 parents c9caf2b + 16a6cbe commit cf68d5c
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 62 deletions.
16 changes: 7 additions & 9 deletions dagmc_geometry_slice_plotter/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
try:
from importlib.metadata import version, PackageNotFoundError
except (ModuleNotFoundError, ImportError):
from importlib_metadata import version, PackageNotFoundError
try:
__version__ = version("dagmc_geometry_slice_plotter")
except PackageNotFoundError:
from setuptools_scm import get_version
from importlib.metadata import version # , PackageNotFoundError

__version__ = get_version(root="..", relative_to=__file__)
# try:
__version__ = version("dagmc_geometry_slice_plotter")
# except PackageNotFoundError:
# from setuptools_scm import get_version

# __version__ = get_version(root="..", relative_to=__file__)

__all__ = ["__version__"]

Expand Down
43 changes: 38 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,43 @@
[build-system]
requires = [
"setuptools >= 45",
"wheel",
"setuptools_scm[toml] >= 6.2",
]
requires = ["setuptools >= 65.4.0", "setuptools_scm[toml]>=7.0.5"]
build-backend = "setuptools.build_meta"

[project]
name = "dagmc_geometry_slice_plotter"
authors = [
{ name="Jonathan Shimwell", email="[email protected]" },
]
license = {file = "LICENSE.txt"}
description = "A minimal Python package for creating plots of slices through DAGMC geometry"
readme = "README.md"
requires-python = ">=3.8"
keywords = ["dagmc", "geometry", "plot", "slice"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"matplotlib",
"trimesh",
"shapely",
"scipy",
"meshio",
"h5py"
]
dynamic = ["version"]


[tool.setuptools_scm]
write_to = "dagmc_geometry_slice_plotter/_version.py"


[project.optional-dependencies]
tests = [
"pytest",
"pytest-cov"
]

[project.urls]
"Homepage" = "https://github.com/fusion-energy/dagmc_geometry_slice_plotter"
"Bug Tracker" = "https://github.com/fusion-energy/dagmc_geometry_slice_plotter/issues"
44 changes: 0 additions & 44 deletions setup.cfg

This file was deleted.

4 changes: 0 additions & 4 deletions setup.py

This file was deleted.

0 comments on commit cf68d5c

Please sign in to comment.