Skip to content

Commit 2aa4dcd

Browse files
authored
enable package description (#42)
1 parent 2224bc2 commit 2aa4dcd

File tree

8 files changed

+14
-12
lines changed

8 files changed

+14
-12
lines changed

.github/workflows/ci-checks.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ jobs:
4040
check-docs:
4141
uses: Lightning-AI/utilities/.github/workflows/check-docs.yml@main
4242
with:
43-
requirements-file: "_requirements/docs.txt"
43+
requirements-file: "_requirements/_docs.txt"

.github/workflows/docs-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
build-docs:
99
uses: Lightning-AI/utilities/.github/workflows/check-docs.yml@main
1010
with:
11-
requirements-file: "_requirements/docs.txt"
11+
requirements-file: "_requirements/_docs.txt"
1212

1313
# https://github.com/marketplace/actions/deploy-to-github-pages
1414
docs-deploy:

.github/workflows/release-pypi.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,15 @@ on: # Trigger the workflow on push or pull request, but only for the main branch
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-latest
15-
14+
runs-on: ubuntu-20.04
1615
steps:
1716
- uses: actions/checkout@v4
1817
- uses: actions/setup-python@v5
1918
with:
20-
python-version: 3.9
19+
python-version: "3.10"
2120

2221
- name: Install dependencies
23-
run: pip install -U build twine
24-
- name: Overview Readme for release
25-
run: echo "# Lit Models" > README.md
22+
run: pip install -U -r _requirements/_ci.txt
2623
- name: Build package
2724
run: python -m build
2825
- name: Check package

.readthedocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ formats: all
1717
python:
1818
version: 3.7
1919
install:
20-
- requirements: _requirements/docs.txt
20+
- requirements: _requirements/_docs.txt

_requirements/_ci.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build ==1.2.*
2+
twine ==6.0.*
File renamed without changes.

setup.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def _load_requirements(path_dir: str = _PATH_ROOT, file_name: str = "requirement
2929
readme = fopen.read()
3030

3131

32-
def _prepare_extras(requirements_dir: str = _PATH_REQUIRES, skip_files: tuple = ("devel.txt", "docs.txt")) -> dict:
32+
def _prepare_extras(requirements_dir: str = _PATH_REQUIRES, skip_files: tuple = ("devel.txt",)) -> dict:
3333
# https://setuptools.readthedocs.io/en/latest/setuptools.html#declaring-extras
3434
# Define package extras. These are only installed if you specify them.
3535
# From remote, use like `pip install pytorch-lightning[dev, docs]`
@@ -38,7 +38,8 @@ def _prepare_extras(requirements_dir: str = _PATH_REQUIRES, skip_files: tuple =
3838
extras = {
3939
p.stem: _load_requirements(file_name=p.name, path_dir=str(p.parent))
4040
for p in req_files
41-
if p.name not in skip_files
41+
# ignore some development specific requirements
42+
if p.name not in skip_files and not p.name.startswith("_")
4243
}
4344
# todo: eventually add some custom aggregations such as `develop`
4445
extras = {name: sorted(set(reqs)) for name, reqs in extras.items()}
@@ -96,5 +97,7 @@ def _prepare_extras(requirements_dir: str = _PATH_REQUIRES, skip_files: tuple =
9697
"Programming Language :: Python :: 3.9",
9798
"Programming Language :: Python :: 3.10",
9899
"Programming Language :: Python :: 3.11",
100+
"Programming Language :: Python :: 3.12",
101+
"Programming Language :: Python :: 3.13",
99102
],
100103
)

src/litmodels/__about__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.1.0"
1+
__version__ = "0.1.0.post0"
22
__author__ = "Lightning-AI et al."
33
__author_email__ = "community@lightning.ai"
44
__license__ = "Apache-2.0"

0 commit comments

Comments
 (0)