Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
a-r-r-o-w committed Mar 6, 2025
1 parent 7285ccc commit 88c8437
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: quality style

check_dirs := finetrainers tests examples train.py
check_dirs := finetrainers tests examples train.py setup.py

quality:
ruff check $(check_dirs) --exclude examples/_legacy
Expand Down
46 changes: 46 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
from setuptools import find_packages, setup


with open("README.md", "r", encoding="utf-8") as file:
long_description = file.read()

with open("requirements.txt", "r", encoding="utf-8") as file:
requirements = [line for line in file.read().splitlines() if len(line) > 0]

setup(
name="finetrainers",
version="0.0.1",
description="Finetrainers is a work-in-progress library to support (accessible) training of diffusion models",
long_description=long_description,
long_description_content_type="text/markdown",
author="Aryan V S",
author_email="[email protected]",
url="https://github.com/a-r-r-o-w/finetrainers",
python_requires=">=3.8.0",
license="Apache-2.0",
packages=find_packages(),
install_requires=requirements,
extras_require={"dev": ["pytest==8.3.2", "ruff==0.1.5"]},
classifiers=[
"Development Status :: 1 - Planning",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
"License :: OSI Approved :: MIT License",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
)

# Steps to publish:
# 1. Update version in setup.py
# 2. python setup.py sdist bdist_wheel
# 3. Check if everything works with testpypi:
# twine upload --repository testpypi dist/*
# 4. Upload to pypi:
# twine upload dist/*

0 comments on commit 88c8437

Please sign in to comment.