Skip to content

Commit

Permalink
Merge pull request #17 from fusion-energy/develop
Browse files Browse the repository at this point in the history
updated packaging method
  • Loading branch information
shimwell authored Oct 31, 2022
2 parents 7b9ad64 + 5516285 commit dcdd93e
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 57 deletions.
1 change: 0 additions & 1 deletion conda/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ python:
- 3.10
- 3.9
- 3.8
- 3.7
9 changes: 3 additions & 6 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,13 @@ source:

build:
number: 0
script: python setup.py install --single-version-externally-managed --record=record.txt

# could be changed to use pip install in the future
# script: python -m pip install --no-deps --ignore-installed .
script: python -m pip install --no-deps --ignore-installed .

requirements:
build:
- python {{ python }}
- setuptools>=46.4.0
- setuptools_scm>=6.3.1
- setuptools>=65.4.0
- setuptools_scm[toml]>=7.0.5
run:
- python
- moab [not win]
Expand Down
43 changes: 37 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,41 @@
[build-system]
requires = [
"setuptools >= 46.4.0",
"wheel",
"setuptools_scm[toml] >= 6.3.1",
]
requires = ["setuptools >= 65.4.0", "setuptools_scm[toml]>=7.0.5"]
build-backend = "setuptools.build_meta"

[project]
name = "stl_to_h5m"
authors = [
{ name="Jonathan Shimwell", email="mail@jshimwell.com" },
]
license = {file = "LICENSE.txt"}
description = "Converts STL files to a DAGMC h5m file using PyMoab"
readme = "README.md"
requires-python = ">=3.8"
keywords = ["stl", "cad", "dagmc", "neutronics", "openmc", "h5m"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"numpy>=1.21.1",
]
dynamic = ["version"]


[tool.setuptools_scm]
write_to = "stl_to_h5m/_version.py"
write_to = "src/stl_to_h5m/_version.py"


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

[project.urls]
"Homepage" = "https://github.com/fusion-energy/stl_to_h5m"
"Bug Tracker" = "https://github.com/fusion-energy/stl_to_h5m/issues"

[tool.setuptools]
package-dir = {"" = "src"}
40 changes: 0 additions & 40 deletions setup.cfg

This file was deleted.

4 changes: 0 additions & 4 deletions setup.py

This file was deleted.

File renamed without changes.
File renamed without changes.

0 comments on commit dcdd93e

Please sign in to comment.