Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Fix CI and add pyproject.toml to declare build time deps #71

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
name: Build package under test and check for PyPI compliance via twine
command: |
. venv/bin/activate
pip install twine
pip install twine --only-binary=cryptography
python setup.py sdist
twine check dist/`ls dist/ | grep .tar.gz`
- run:
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include README.rst
include LICENSE
recursive-include LICENSES *
include pyproject.toml
include glmnet/*.pyf
exclude glmnet/*.c
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Pin exact dependency version numbers for local dev and CircleCI.
numpy==1.19.0
numpy==1.19.2
pytest==5.4.3
scikit-learn==0.23.1
scipy==1.5.0
14 changes: 14 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[project]
requires-python = ">=3.6"

[build-system]
build-backend = "setuptools.build_meta"
# We need at least 1.19.0 for ABI compatibility, but otherwise prefer the oldest available wheel (eg: 1.19.3 for py3.9)
requires = [
"numpy==1.19.0; python_version<'3.9'",
"numpy==1.19.3; python_version=='3.9'",
"numpy==1.22.4; python_version=='3.10'",
"numpy; python_version>'3.10'",
"setuptools",
"wheel"
]