1. Artur Barseghyan
  2. sirep

Commits

Artur Barseghyan  committed e837c6a Draft

fixed issue with pypi templates not being copied

  • Participants
  • Parent commits 813475b
  • Branches default

Comments (0)

Files changed (3)

File .hgignore

View file
 ^src/sirep\.egg-info
 ^src/slim/readme\.rst
 local_settings\.py
+MANIFEST\.in~

File MANIFEST.in

View file
+include readme.rst
+recursive-include src/sirep/templates *
+recursive-include src/sirep/static *

File setup.py

View file
 except:
   readme = ''
 
+template_dir = "src/sirep/templates/sirep"
+templates = [os.path.join(template_dir, f) for f in os.listdir(template_dir)]
+
+static_dir = "src/sirep/static"
+static_files = [os.path.join(static_dir, f) for f in os.listdir(static_dir)]
+
 version = '0.3'
 
 setup(
     license='GPL 2.0/LGPL 2.1',
     #download_url='https://bitbucket.org/barseghyanartur/sirep/get/%s.tar.gz' % version,
     install_requires=['python-dateutil'],
-    package_data={'': ['templates/list.html', 'templates/view.html', 'static/admin/css/sirep.css']}
+    package_data={'sirep': templates + static_files},
+    include_package_data=True,
 )