Skip to content

Commit

Permalink
try updating some things in prep for release
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchute committed Jan 21, 2025
1 parent 9f9ede1 commit 14a1d98
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 31 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:

- name: Install Pip Dependencies
shell: bash
run: pip install wheel setuptools
run: pip install build wheel

- name: Build the Wheel
shell: bash
run: rm -rf dist/ build/ && python3 setup.py bdist_wheel sdist
run: rm -rf dist/ build/ && python3 -m build

- name: Deploy on PyPi
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2024, Matt Mitchell
Copyright (c) 2025, Matt Mitchell
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
34 changes: 34 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[project]
name = "ghedesigner"
version = "1.3"
description = "Fluid property routines for secondary coolants based on correlations developed by Åke Melinder, 2010 \"Properties of Secondary Working Fluids for Indirect Systems\" 2nd ed., International Institute of Refrigeration."
authors = ["Matt Mitchell <mitchute@gmail.com>"]
readme = "README.md"
license = "BSD-3-Clause"
dependencies = [
"click>=8.1"
]

classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
]

[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"

[project.scripts]
scprop = "scp:cli:cli"

[tool.pytest.ini_options]
minversion = "6.0"
testpaths = "tests"
# Manually add these flags to `pytest` when running locally for coverage details.
addopts = ["--cov=scp", "--cov-report=html"]
4 changes: 3 additions & 1 deletion scp/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
VERSION = "1.2"
import importlib.metadata

VERSION = importlib.metadata.version(__package__)
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

25 changes: 0 additions & 25 deletions setup.py

This file was deleted.

0 comments on commit 14a1d98

Please sign in to comment.