Skip to content

Commit

Permalink
Merge pull request #172 from tataratat/ft-change-build-system
Browse files Browse the repository at this point in the history
pyproject based build
  • Loading branch information
j042 authored Nov 17, 2023
2 parents 87d42c9 + 4964e82 commit 83afdde
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 55 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- name: install gustaf
run: |
python3 setup.py develop
pip install -e .[all]
- name: Install dependencies
run: pip install -r ./docs/requirements.txt
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-20.04, macos-latest]

steps:
Expand All @@ -24,8 +24,8 @@ jobs:

- name: install gustaf
run: |
python3 -m pip install numpy splinepy scipy
python3 setup.py install
python3 -m pip install numpy scipy
pip install .
- name: prepare test and test
run: |
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ conda activate gustafenv
git clone [email protected]:<path-to-your-fork>
cd gustaf
git checkout -b new-feature0
python3 setup.py develop
pip install -e .[all]
```

## Style / implementation preferences
Expand Down
64 changes: 64 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,67 @@
[project]
name = "gustaf"
authors = [
{name = "Jaewook Lee", email = "[email protected]"}
]
description = "Process and visualize numerical-analysis-geometries."
keywords = [
"numerical-analysis",
"geometry",
"visualization",
"mesh",
]
requires-python = ">=3.7"
license = {file = "LICENSE.txt"}
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Natural Language :: English",
"Topic :: Scientific/Engineering",
]
dependencies = [
"numpy",
]
dynamic = ["version", "readme"]

[project.optional-dependencies]
all = [
"vedo>=2023.4.3,<2023.5.0",
"scipy",
"meshio",
"napf>=0.0.5",
"funi>=0.0.1",
"requests"
]
test = [
"pytest",
"funi",
"napf",
]

[tool.setuptools]
packages = [
"gustaf",
"gustaf.io",
"gustaf.utils",
"gustaf.create",
"gustaf.helpers"
]

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

[tool.setuptools.dynamic]
version = {attr = "gustaf._version.version"}
readme = {file = "README.md"}

[tool.ruff]
line-length = 79
select = [
Expand Down
50 changes: 0 additions & 50 deletions setup.py

This file was deleted.

0 comments on commit 83afdde

Please sign in to comment.