Skip to content

Commit d52ff05

Browse files
authored
Merge pull request #122 from MisterBourbaki/master
Starting a Rye workflow
2 parents e244d47 + e06ee43 commit d52ff05

File tree

3 files changed

+65
-39
lines changed

3 files changed

+65
-39
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Build with Rye
2+
on: push
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- name: Install Python
10+
uses: actions/setup-python@v4
11+
- name: Install the latest version of rye
12+
uses: eifinger/setup-rye@v2
13+
- name: Build with Rye
14+
run: rye build

pyproject.toml

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,52 @@
1+
[project]
2+
name = "vector-quantize-pytorch"
3+
version = "1.14.8"
4+
description = "Vector Quantization - Pytorch"
5+
authors = [
6+
{ name = "Phil Wang", email = "lucidrains@gmail.com" }
7+
]
8+
readme = "README.md"
9+
requires-python = ">= 3.9"
10+
license = { file = "LICENSE" }
11+
keywords = [
12+
'artificial intelligence',
13+
'deep learning',
14+
'pytorch',
15+
'quantization'
16+
]
17+
classifiers=[
18+
'Development Status :: 4 - Beta',
19+
'Intended Audience :: Developers',
20+
'Topic :: Scientific/Engineering :: Artificial Intelligence',
21+
'License :: OSI Approved :: MIT License',
22+
'Programming Language :: Python :: 3.6',
23+
]
24+
25+
dependencies = [
26+
"torch>=2.3.0",
27+
"einops>=0.8.0",
28+
"einx>=0.2.2",
29+
]
30+
31+
[project.urls]
32+
Homepage = "https://pypi.org/project/vector-quantize-pytorch/"
33+
Repository = "https://github.com/lucidrains/vector-quantizer-pytorch"
34+
35+
[project.optional-dependencies]
36+
examples = ["tqdm", "torchvision"]
37+
138
[build-system]
2-
requires = ["setuptools"]
3-
build-backend = "setuptools.build_meta"
39+
requires = ["hatchling"]
40+
build-backend = "hatchling.build"
41+
42+
[tool.rye]
43+
managed = true
44+
dev-dependencies = [
45+
"ruff>=0.4.2",
46+
]
47+
48+
[tool.hatch.metadata]
49+
allow-direct-references = true
50+
51+
[tool.hatch.build.targets.wheel]
52+
packages = ["vector_quantize_pytorch"]

setup.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)