Skip to content

Commit

Permalink
switching to use pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishavlin committed Jul 25, 2023
1 parent 7827c8d commit 8083fb9
Show file tree
Hide file tree
Showing 10 changed files with 56 additions and 70 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ jobs:
sudo apt-get install libopenblas-dev
python -m pip install --upgrade pip
python -m pip install scipy==1.8.0
python -m pip install -r requirements_dev.txt
- name: Setup pyVBRc
run: |
python -m pip install -e .
python -m pip install -e .[dev]
- name: Run Tests
run: pytest --cov=./ --cov-report=xml:coverage/coverage.xml -v pyVBRc/
# https://github.com/marketplace/actions/codecov#example-workflowyml-with-codecov-action
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
python -m pip install --upgrade pip
python -m pip install -U setuptools setuptools_scm wheel twine
- name: Build and check source tarball
run: python setup.py sdist bdist_wheel
run: python _old_setup_py.txt sdist bdist_wheel
- name: Twine check
run: twine check dist/*
- name: Publish distribution to PyPI
Expand Down
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ include *.txt
include Makefile

recursive-include * *.m
recursive-include pyVBRc *.mat
recursive-include pyVBRc *.py
recursive-exclude * __pycache__
recursive-exclude * *.py[co]
recursive-exclude * *.mat
recursive-exclude examples *.mat
recursive-exclude examples *.png
include examples *.ipynb
Expand Down
46 changes: 46 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "pyVBRc"
version = "0.1.1"
authors = [
{ name="Chris Havlin", email="[email protected]" },
]
description="python utilities for working with the VBRc"
readme = "README.md"
requires-python = ">=3.9"
classifiers=[
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
dependencies=["numpy",
"scipy",
"matplotlib",
"packaging",
"unyt",
]

[tool.setuptools]
packages = ["pyVBRc"]

[project.urls]
"Homepage" = "https://github.com/vbr-calc/pyVBRc"
"Bug Tracker" = "https://github.com/vbr-calc/pyVBRc/issues"

[project.optional-dependencies]
dev = [
"pytest>=3",
"pytest-cov",
"pre-commit",
]
lint = [
"black==22.8.0",
"isort==5.12.0",
"flake8==6.0.0"
]
6 changes: 6 additions & 0 deletions release_history.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v0.1.2

maintenance release
* full switch to pyproject
* docs improvements

# v0.1.1

Initial release of pyVBRc, still experimental
Expand Down
5 changes: 0 additions & 5 deletions requirements.txt

This file was deleted.

5 changes: 0 additions & 5 deletions requirements_dev.txt

This file was deleted.

4 changes: 0 additions & 4 deletions requirements_style.txt

This file was deleted.

3 changes: 0 additions & 3 deletions setup.cfg

This file was deleted.

49 changes: 0 additions & 49 deletions setup.py

This file was deleted.

0 comments on commit 8083fb9

Please sign in to comment.