]> git.0d.be Git - django-panik-emissions.git/blobdiff - setup.py
do not compact schedules if they have different week recurrences
[django-panik-emissions.git] / setup.py
index ce9a2510bc11e0ee990914c61eb8d708d37b89a2..8d7f0ee384c979e5c2242c2b13104870ebf78318 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -3,12 +3,12 @@
 import os
 import subprocess
 import sys
-
-from setuptools.command.install_lib import install_lib as _install_lib
+from distutils.cmd import Command
 from distutils.command.build import build as _build
 from distutils.command.sdist import sdist as _sdist
-from distutils.cmd import Command
-from setuptools import setup, find_packages
+
+from setuptools import find_packages, setup
+from setuptools.command.install_lib import install_lib as _install_lib
 
 
 class sdist(_sdist):
@@ -25,11 +25,14 @@ class sdist(_sdist):
 
 def get_version():
     if os.path.exists('VERSION'):
-        with open('VERSION', 'r') as v:
+        with open('VERSION') as v:
             return v.read()
     if os.path.exists('.git'):
-        p = subprocess.Popen(['git','describe','--dirty=.dirty','--match=v*'],
-                stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+        p = subprocess.Popen(
+            ['git', 'describe', '--dirty=.dirty', '--match=v*'],
+            stdout=subprocess.PIPE,
+            stderr=subprocess.PIPE,
+        )
         result = p.communicate()[0]
         if p.returncode == 0:
             result = result.decode('ascii').strip()[1:]  # strip spaces/newlines and initial v
@@ -40,9 +43,7 @@ def get_version():
                 version = result
             return version
         else:
-            return '0.0.post%s' % len(
-                    subprocess.check_output(
-                            ['git', 'rev-list', 'HEAD']).splitlines())
+            return '0.0.post%s' % len(subprocess.check_output(['git', 'rev-list', 'HEAD']).splitlines())
     return '0.0'
 
 
@@ -59,7 +60,8 @@ class compile_translations(Command):
     def run(self):
         try:
             from django.core.management import call_command
-            for path, dirs, files in os.walk('combo_plugin_gnm'):
+
+            for path, dirs, files in os.walk('emissions'):
                 if 'locale' not in dirs:
                     continue
                 curdir = os.getcwd()
@@ -96,7 +98,7 @@ setup(
         'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
         'Operating System :: OS Independent',
         'Programming Language :: Python',
-        'Programming Language :: Python :: 2',
+        'Programming Language :: Python :: 3',
         'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
         'Topic :: Multimedia :: Sound/Audio',
     ],
@@ -106,5 +108,5 @@ setup(
         'compile_translations': compile_translations,
         'install_lib': install_lib,
         'sdist': sdist,
-    }
+    },
 )