Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UPD : Added pyproject.toml, setup.cfg and __init__.py #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
1 change: 1 addition & 0 deletions pytorch_generative/models/autoregressive/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# empty __init__.py for easier access to models
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the models are already importable with pytorch_generative.models.<model-name>. Is that not working for you?

1 change: 1 addition & 0 deletions pytorch_generative/models/flow/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# empty __init__.py for easier access to models
1 change: 1 addition & 0 deletions pytorch_generative/models/vae/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# empty __init__.py for easier access to models
33 changes: 33 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
; modified from example https://xebia.com/blog/a-practical-guide-to-setuptools-and-pyproject-toml/
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe get rid of the comments in this file?

; Minimum pyproject.toml and setup.cfg to make it pip installable
; Need to be revised by original author EugenHotaj
[metadata]
name = pytorch_generative
version = 0.1.0
author = EugenHotaj
; author_email = eugens@nyu.edu
url = https://github.com/EugenHotaj/pytorch-generative
description = Easy generative modeling in PyTorch
; long_description = file: README.md
; long_description_content_type = text/markdown
; keywords = example, setuptools
; license = BSD 3-Clause License
; classifiers =
; License :: OSI Approved :: BSD License
; Programming Language :: Python :: 3

[options]
packages = find:
; zip_safe = True
; include_package_data = True
install_requires =
Pillow >= 7.2.0
numpy >= 1.18.4
tensorboard >= 2.3.0
torch >= 1.5.1
torchvision >= 0.6.1
scikit-learn >= 1.2.1

; [options.package_data]
; example = data/schema.json, *.txt
; * = README.md