File tree Expand file tree Collapse file tree 5 files changed +115
-0
lines changed
Expand file tree Collapse file tree 5 files changed +115
-0
lines changed Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 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/
Original file line number Diff line number Diff line change 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/mmdit/"
33+ Repository = " https://github.com/lucidrains/mmdit"
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" ]
You can’t perform that action at this time.
0 commit comments