Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: using uv to setup python and install dependencies for github actions #152

Merged
merged 42 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
01c488a
ci: using uv to setup python and install dependencies
timurcarstensen Oct 25, 2024
9ef38d1
ci: using uv to setup python and install dependencies
timurcarstensen Oct 25, 2024
de2cd3b
ci: using uv to setup python and install dependencies
timurcarstensen Oct 25, 2024
3523fc2
chore: moving from poetry-based pyproject.toml to PEP508-style
timurcarstensen Oct 25, 2024
10ebbb1
ci: using uv to setup python and install dependencies
timurcarstensen Oct 25, 2024
3dee0d1
Merge branch 'master' into uv-github-actions
timurcarstensen Oct 25, 2024
960ea4c
ci: using uv in pre-commit.yaml workflow
timurcarstensen Oct 25, 2024
11be7cd
ci(.gitignore): removing poetry references
timurcarstensen Nov 25, 2024
f93eb6b
ci: removing poetry references and switching to uv
timurcarstensen Nov 25, 2024
c7f3ae0
ci(pyproject.toml): adding bumpversion config
timurcarstensen Nov 25, 2024
b36b9df
ci(pyproject.toml): trying to fix bump my version
timurcarstensen Nov 25, 2024
68ffc50
ci(pyproject.toml): trying to fix bump my version
timurcarstensen Nov 25, 2024
7ed32a4
ci(pyproject.toml): trying to fix bump my version
timurcarstensen Nov 25, 2024
99211d6
ci(pyproject.toml): trying to fix bump my version
timurcarstensen Nov 25, 2024
08cad16
ci(pyproject.toml): trying to fix bump my version
timurcarstensen Nov 25, 2024
ea7d9fe
ci(pyproject.toml): trying to fix bump my version
timurcarstensen Nov 25, 2024
31a7fea
ci(pyproject.toml): trying to fix bump my version
timurcarstensen Nov 25, 2024
ff97e1a
ci(pyproject.toml): trying to fix bump my version
timurcarstensen Nov 25, 2024
6e16956
ci(pyproject.toml): trying to fix bump my version
timurcarstensen Nov 25, 2024
d8e7568
ci(pyproject.toml): trying to fix bump my version
timurcarstensen Nov 25, 2024
a10c86e
ci(pyproject.toml): trying to fix bump my version
timurcarstensen Nov 25, 2024
8f75dfb
ci(pyproject.toml): trying to fix bump my version
timurcarstensen Nov 25, 2024
4f3d8c2
ci(pyproject.toml): trying to fix bump my version
timurcarstensen Nov 25, 2024
1982ce1
ci(pyproject.toml): trying to fix bump my version
timurcarstensen Nov 25, 2024
ec338d3
ci(pyproject.toml): trying to fix bump my version
timurcarstensen Nov 25, 2024
252fcfe
ci(pyproject.toml): trying to fix bump my version
timurcarstensen Nov 25, 2024
a3b1d50
Merge branch 'master' into uv-github-actions
timurcarstensen Nov 25, 2024
fccc4fa
Merge branch 'master' into uv-github-actions
timurcarstensen Nov 25, 2024
3a2d3e2
ci(test.yaml): re-ordering steps when installing and testing
timurcarstensen Nov 25, 2024
5f4f36b
Merge branch 'uv-github-actions' of github.com:automl/neps into uv-gi…
timurcarstensen Nov 25, 2024
5a9c75a
ci(test.yaml): re-ordering steps when installing and testing
timurcarstensen Nov 25, 2024
4d1dcbe
ci(test.yaml): re-ordering steps when installing and testing
timurcarstensen Nov 25, 2024
df454dd
ci(test.yaml): re-ordering steps when installing and testing
timurcarstensen Nov 25, 2024
dd25576
ci(test.yaml): re-ordering steps when installing and testing
timurcarstensen Nov 25, 2024
82a4396
ci(test.yaml): re-ordering steps when installing and testing
timurcarstensen Nov 25, 2024
5eb6984
ci(test.yaml): re-ordering steps when installing and testing
timurcarstensen Nov 25, 2024
c1be2f1
ci(test.yaml): re-ordering steps when installing and testing
timurcarstensen Nov 25, 2024
2287b45
ci(test.yaml): re-ordering steps when installing and testing
timurcarstensen Nov 25, 2024
0cfcfa1
ci(test.yaml): re-ordering steps when installing and testing
timurcarstensen Nov 25, 2024
e57421e
chore: fix incorrect python versions
timurcarstensen Nov 25, 2024
439a52c
chore: reordering test steps
timurcarstensen Nov 25, 2024
136f78e
chore: updating pypi publishing doc
timurcarstensen Nov 25, 2024
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
16 changes: 11 additions & 5 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: install the latest version uv
uses: astral-sh/setup-uv@v3
with:
python-version: '3.10'
- run: pip install pre-commit
- run: pre-commit install
- run: pre-commit run --all-files
version: latest
- name: create virtual environment
run: uv venv --python '3.10'
- name: install pre-commit
run: uv pip install pre-commit
- name: install pre-commit hooks
run: uv run pre-commit install
- name: Run pre-commit hooks
run: uv run pre-commit run --all-files
16 changes: 9 additions & 7 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: pipx install poetry
- uses: actions/setup-python@v5
- name: install the latest version uv
uses: astral-sh/setup-uv@v3
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
cache-dependency-path: '**/pyproject.toml'
- run: poetry install
- run: poetry run pytest -m "" # Run all markers
version: latest
- name: create virtual environment
run: uv venv --python ${{ matrix.python-version }}
- name: Install
run: uv pip install ".[dev]"
- name: Run tests
run: uv run pytest -m "" # Run all markers

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#False Python
# build files
*.egg-info

# False Python
__pycache__
dist

Expand Down
129 changes: 72 additions & 57 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
[tool.poetry]
[project]
name = "neural-pipeline-search"
version = "v0.12.2"
description = "Neural Pipeline Search helps deep learning experts find the best neural pipeline."
authors = [
"Danny Stoll <[email protected]>",
"Neeratyoy Mallik <[email protected]>",
"Simon Schrodi",
"Eddie Bergman",
"Maciej Janowski",
"Samir Garibov",
"Tarek Abou Chakra",
"Daniel Rogalla",
"Carl Hvarfner",
"Binxin Ru",
"Nils Kober",
"Théophane Vallaeys",
"Frank Hutter",
{ name = "Danny Stoll", email = "[email protected]" },
{ name = "Neeratyoy Mallik", email = "[email protected]" },
{ name = "Simon Schrodi" },
{ name = "Eddie Bergman" },
{ name = "Maciej Janowski" },
{ name = "Samir Garibov" },
{ name = "Tarek Abou Chakra" },
{ name = "Daniel Rogalla" },
{ name = "Carl Hvarfner" },
{ name = "Binxin Ru" },
{ name = "Nils Kober" },
{ name = "Théophane Vallaeys" },
{ name = "Frank Hutter" },
]
readme = "README.md"
license = "Apache-2.0"
homepage = "https://github.com/automl/neps"
repository = "https://github.com/automl/neps"
documentation = "https://automl.github.io/neps/"
license = { file = "LICENSE" }
keywords = [
"Neural Pipeline Search",
"Neural Architecture Search",
Expand All @@ -31,7 +28,7 @@ keywords = [
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
Expand All @@ -42,49 +39,67 @@ classifiers = [
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: System :: Distributed Computing",
]
packages = [{ include = "neps" }, { include = "neps_examples" }]
requires-python = ">=3.10,<3.12"

dependencies = [
"ConfigSpace>=0.7,<1.0",
"grakel>=0.1,<0.2",
"numpy>=1.0,<2.0",
"pandas>=2.0,<3.0",
"networkx>=2.6.3,<3.0",
"nltk>=3.6.4,<4.0",
"scipy>=1.13.1",
"torch>=2.0.1",
"matplotlib>=3.0,<4.0",
"more-itertools",
"portalocker>=2.0,<3.0",
"seaborn>=0.13,<0.14",
"pyyaml>=6.0,<7.0",
"tensorboard>=2.0,<3.0",
"typing-extensions",
"torchvision>=0.8.0",
"ifbo>=0.3.10",
"botorch>=0.12",
"gpytorch==1.13.0",
]

[tool.poetry.dependencies]
python = ">=3.10,<3.12"
ConfigSpace = "^0.7"
grakel = "^0.1"
numpy = "^1"
pandas = "^2"
networkx = "^2.6.3"
nltk = "^3.6.4"
scipy = ">=1.13.1"
torch = ">=2.0.1"
matplotlib = "^3"
more-itertools = "*"
portalocker = "^2"
seaborn = "^0.13"
pyyaml = "^6"
tensorboard = "^2"
typing-extensions = "*"
torchvision = ">=0.8.0"
ifbo = ">=0.3.10"
botorch = ">=0.12"
gpytorch = "1.13.0"
[project.urls]
homepage = "https://github.com/automl/neps"
repository = "https://github.com/automl/neps"
documentation = "https://automl.github.io/neps/"

[tool.poetry.group.dev.dependencies]
ruff = "*"
pre-commit = "^3"
mypy = "^1"
pytest = "^7"
pytest-cases = "^3"
types-PyYAML = "^6"
mkdocs-material = "*"
mkdocs-autorefs = "*"
mkdocs-gen-files = "*"
mkdocstrings = { extras = ["python"], version = "*" }
mkdocs-literate-nav = "*"
mike = "*"
black = "*" # This allows mkdocstrings to format signatures in the docs
[project.optional-dependencies]
dev = [
"ruff",
"pre-commit>=3,<4",
"mypy>=1,<2",
"pytest>=7,<8",
"pytest-cases>=3,<4",
"types-PyYAML>=6,<7",
"mkdocs-material",
"mkdocs-autorefs",
"mkdocs-gen-files",
"mkdocstrings[python]",
"mkdocs-literate-nav",
"mike",
"black", # This allows mkdocstrings to format signatures in the docs
]

[tool.setuptools.packages.find]
include = [
"neps",
"neps.*",
"neps_examples",
]
exclude = []

[build-system]
requires = ["poetry-core>=1.1.0"]
build-backend = "poetry.core.masonry.api"
requires = [
"setuptools>=68.2.2",
"wheel>=0.41.2",
]

build-backend = "setuptools.build_meta"

# TODO(eddiebergman): Include more of these as we go on in migration
# "tests",
Expand Down