Skip to content

Commit

Permalink
Derive version from lsst_utils setuptools plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Mar 31, 2022
1 parent 2641c58 commit dda2661
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 55 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ jobs:
- name: Build and install
shell: bash -l {0}
run: |
# Force the version to be written
export PATH="$(dirname $(which python)):$PATH"
echo PATH=$PATH
python setup.py build
python -m pip install -v -e .
- name: Run tests
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[build-system]
requires = ["setuptools", "lsst_utils @ git+https://github.com/lsst/utils@tickets/DM-32408"]
build-backend = "setuptools.build_meta"

[tool.towncrier]
package = "lsst.resources"
package_dir = "python"
Expand Down Expand Up @@ -49,3 +53,6 @@ target-version = ["py38"]
[tool.isort]
profile = "black"
line_length = 110

[tool.lsst.utils.versions]
write_to = "python/lsst/resources/version.py"
51 changes: 0 additions & 51 deletions setup.py

This file was deleted.

0 comments on commit dda2661

Please sign in to comment.