Skip to content

Commit

Permalink
Improve packaging with only pyproject.toml
Browse files Browse the repository at this point in the history
Related to #34. Using this resource: https://learn.scientific-python.org/development/guides/packaging-simple/, removed the setup.py file and changed the backend from setuptools to hatchling. Now version only needs updating in one location, and pyproject.toml handles everything.
  • Loading branch information
bpurinton committed Nov 8, 2024
1 parent a25a630 commit 7e941a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ When you add a new feature, add some test coverage as well.

### Package and upload

Update version in `pyproject.toml` and `setup.py`, then:
Update version in `pyproject.toml`, then:

```
rm -rf dist/
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "asp_plot"
Expand Down
18 changes: 0 additions & 18 deletions setup.py

This file was deleted.

0 comments on commit 7e941a3

Please sign in to comment.