Skip to content

Commit 31cb371

Browse files
committed
scaffold
1 parent 87ef9d2 commit 31cb371

File tree

5 files changed

+115
-0
lines changed

5 files changed

+115
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Upload Python Package
10+
11+
on:
12+
release:
13+
types: [published]
14+
15+
jobs:
16+
deploy:
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Set up Python
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: '3.x'
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install build
30+
- name: Build package
31+
run: python -m build
32+
- name: Publish package
33+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
34+
with:
35+
user: __token__
36+
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Pytest
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Set up Python 3.10
12+
uses: actions/setup-python@v5
13+
with:
14+
python-version: "3.10"
15+
- name: Install dependencies
16+
run: |
17+
python -m pip install --upgrade pip
18+
python -m pip install -e .[test]
19+
- name: Test with pytest
20+
run: |
21+
python -m pytest tests/

HRM/__init__.py

Whitespace-only changes.

HRM/hrm.py

Whitespace-only changes.

pyproject.toml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
[project]
2+
name = "HRM"
3+
version = "0.0.1"
4+
description = "The proposal from a Singaporean AGI company"
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+
'fast slow thinking',
15+
'adaptive computation time'
16+
]
17+
18+
classifiers=[
19+
'Development Status :: 4 - Beta',
20+
'Intended Audience :: Developers',
21+
'Topic :: Scientific/Engineering :: Artificial Intelligence',
22+
'License :: OSI Approved :: MIT License',
23+
'Programming Language :: Python :: 3.9',
24+
]
25+
26+
dependencies = [
27+
"einops>=0.8.0",
28+
"torch>=2.0",
29+
]
30+
31+
[project.urls]
32+
Homepage = "https://pypi.org/project/hrm/"
33+
Repository = "https://github.com/lucidrains/hrm"
34+
35+
[project.optional-dependencies]
36+
examples = []
37+
test = [
38+
"pytest"
39+
]
40+
41+
[tool.pytest.ini_options]
42+
pythonpath = [
43+
"."
44+
]
45+
46+
[build-system]
47+
requires = ["hatchling"]
48+
build-backend = "hatchling.build"
49+
50+
[tool.rye]
51+
managed = true
52+
dev-dependencies = []
53+
54+
[tool.hatch.metadata]
55+
allow-direct-references = true
56+
57+
[tool.hatch.build.targets.wheel]
58+
packages = ["HRM"]

0 commit comments

Comments
 (0)