Skip to content

Commit

Permalink
feat(build): convert build to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
ljgray committed Jul 31, 2024
1 parent f188a7e commit eb26bcb
Show file tree
Hide file tree
Showing 13 changed files with 86 additions and 944 deletions.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

7 changes: 3 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up Python 3.11
- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
python-version: "3.11"
python-version: "3.12"

- name: Install apt dependencies
run: |
Expand All @@ -94,8 +94,7 @@ jobs:
- name: Install pip dependencies
run: |
pip install -r requirements.txt
pip install -r doc/requirements.txt
pip install .[doc]
pip install -e .
- name: Build sphinx docs
Expand Down
4 changes: 2 additions & 2 deletions .readthedocs.yml → .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ sphinx:

python:
install:
- requirements: requirements.txt
- requirements: doc/requirements.txt
- method: pip
path: .
extra_requirements:
- docs
137 changes: 0 additions & 137 deletions CHANGELOG.md

This file was deleted.

2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

3 changes: 1 addition & 2 deletions README.rst → README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
caput
=====
# caput

Cluster Astronomical Python Utilities

Expand Down
10 changes: 8 additions & 2 deletions caput/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
weighted_median
"""

from . import _version
from importlib.metadata import version, PackageNotFoundError

__version__ = _version.get_versions()["version"]
try:
__version__ = version("caput")
except PackageNotFoundError:
# package is not installed
pass

del version, PackageNotFoundError
Loading

0 comments on commit eb26bcb

Please sign in to comment.