Skip to content

Commit

Permalink
🔧 Update config files
Browse files Browse the repository at this point in the history
  • Loading branch information
francois-rozet committed Apr 10, 2023
1 parent d233ef8 commit 60470fb
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 41 deletions.
7 changes: 2 additions & 5 deletions piqa/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
r"""PyTorch Image Quality Assessement (PIQA)
r"""PyTorch Image Quality Assessement (PIQA)"""

The :mod:`piqa` package is divided in several submodules, each of
which implements the functions and/or classes related to a
specific image quality assessement metric.
"""
__version__ = '1.2.3'

from .tv import TV
from .psnr import PSNR
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
torch>=1.8.0
torchvision>=0.9.0
torch>=1.12.0
torchvision>=0.13.0
32 changes: 32 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[metadata]
name = piqa
version = attr: piqa.__version__
description = PyTorch Image Quality Assessment
long_description = file: README.md
long_description_content_type = text/markdown
keywords =
torch
vision
image
quality
metrics
author = François Rozet
author_email = francois.rozet@outlook.com
license = MIT License
url = https://github.com/francois-rozet/piqa
project_urls =
Documentation = https://piqa.readthedocs.io
Source = https://github.com/francois-rozet/piqa
Tracker = https://github.com/francois-rozet/piqa/issues
classifiers =
Intended Audience :: Developers
Intended Audience :: Science/Research
License :: OSI Approved :: MIT License
Natural Language :: English
Operating System :: OS Independent
Programming Language :: Python :: 3

[options]
packages = find:
python_requires = >=3.8
install_requires = file: requirements.txt
35 changes: 1 addition & 34 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,4 @@

import setuptools

with open('README.md', 'r') as f:
readme = f.read()

with open('requirements.txt', 'r') as f:
required = f.read().splitlines()

setuptools.setup(
name='piqa',
version='1.2.3',
packages=setuptools.find_packages(),
description='PyTorch Image Quality Assessment',
keywords='image quality processing metrics torch vision',
long_description=readme,
long_description_content_type='text/markdown',
author='François Rozet',
author_email='francois.rozet@outlook.com',
license='MIT license',
url='https://github.com/francois-rozet/piqa',
project_urls={
'Documentation': 'https://francois-rozet.github.io/piqa/',
'Source': 'https://github.com/francois-rozet/piqa',
'Tracker': 'https://github.com/francois-rozet/piqa/issues',
},
classifiers=[
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
],
install_requires=required,
python_requires='>=3.6',
)
setuptools.setup()

0 comments on commit 60470fb

Please sign in to comment.