1
- from setuptools import setup
1
+ from pathlib import Path
2
+ from setuptools import setup , find_packages
2
3
3
- with open ("README.md" , "r" ) as fh :
4
- long_description = fh .read ()
4
+ NAME = "pyloudnorm"
5
+ DESCRIPTION = "Implementation of ITU-R BS.1770-4 loudness algorithm in Python"
6
+ URL = "https://github.com/csteinmetz1/pyloudnorm"
7
+
8
+ AUTHOR = "Christian Steinmetz"
9
+ REQUIRES_PYTHON = ">=3.0"
10
+ VERSION = "0.1.1"
5
11
6
- setup (name = 'pyloudnorm' ,
7
- version = '0.1.0' ,
8
- description = 'Implementation of ITU-R BS.1770-4 loudness algorithm in Python' ,
9
- long_description = long_description ,
10
- long_description_content_type = "text/markdown" ,
11
- url = 'https://github.com/csteinmetz1/pyloudnorm' ,
12
- author = 'Christian Steinmetz' ,
13
-
14
- packages = ['pyloudnorm' ],
15
- install_requires = ['scipy>=1.0.1' ,
16
- 'numpy>=1.14.2' ,
17
- 'future>=0.16.0' ],
18
- classifiers = (
12
+ HERE = Path (__file__ ).parent
13
+
14
+ try :
15
+ with open (HERE / "README.md" , encoding = "utf-8" ) as f :
16
+ long_description = "\n " + f .read ()
17
+ except FileNotFoundError :
18
+ long_description = DESCRIPTION
19
+
20
+ setup (
21
+ name = NAME ,
22
+ version = VERSION ,
23
+ description = DESCRIPTION ,
24
+ long_description = long_description ,
25
+ long_description_content_type = "text/markdown" ,
26
+ author = AUTHOR ,
27
+ author_email = EMAIL ,
28
+ python_requires = REQUIRES_PYTHON ,
29
+ url = URL ,
30
+ packages = ["pyloudnorm" ],
31
+ install_requires = ["scipy>=1.0.1" , "numpy>=1.14.2" , "future>=0.16.0" ],
32
+ include_package_data = True ,
33
+ license = "MIT" ,
34
+ classifiers = [
19
35
"Programming Language :: Python :: 3" ,
20
- "Programming Language :: Python :: 2.7" ,
21
36
"License :: OSI Approved :: MIT License" ,
22
37
"Operating System :: OS Independent" ,
23
- )
38
+ "Topic :: Multimedia :: Sound/Audio" ,
39
+ "Topic :: Scientific/Engineering" ,
40
+ ],
24
41
)
0 commit comments