Initial setup.py
- Refactored project structure. - Fixed import. - Add launch script. - Fixed *.mo loading dir. - Updated documentationfix_readme
@ -1,9 +1,9 @@
|
||||
.PHONY: po mo
|
||||
|
||||
po:
|
||||
xgettext -LPython -o data/locales/po/hadaly.pot --from-code=UTF-8 hadaly/*.kv hadaly/*.py
|
||||
msgmerge --update --no-fuzzy-matching --backup=off data/locales/po/fr.po data/locales/po/hadaly.pot
|
||||
xgettext -LPython -o hadaly/data/locales/po/hadaly.pot --from-code=UTF-8 hadaly/*.kv hadaly/*.py
|
||||
msgmerge --update --no-fuzzy-matching --backup=off hadaly/data/locales/po/fr.po hadaly/data/locales/po/hadaly.pot
|
||||
|
||||
mo:
|
||||
mkdir -p data/locales/fr/LC_MESSAGES
|
||||
msgfmt data/locales/po/fr.po -o data/locales/fr/LC_MESSAGES/hadaly.mo
|
||||
mkdir -p hadaly/data/locales/fr/LC_MESSAGES
|
||||
msgfmt hadaly/data/locales/po/fr.po -o hadaly/data/locales/fr/LC_MESSAGES/hadaly.mo
|
||||
|
@ -1,7 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
#-*- coding: utf-8 -*-
|
||||
|
||||
from hadaly.__main__ import main
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 668 KiB After Width: | Height: | Size: 668 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
@ -1,4 +1,4 @@
|
||||
#:kivy 1.9.0
|
||||
#:include hadaly/editor.kv
|
||||
#:include hadaly/viewer.kv
|
||||
#:include hadaly/search.kv
|
||||
#:include editor.kv
|
||||
#:include viewer.kv
|
||||
#:include search.kv
|
||||
|
@ -0,0 +1,7 @@
|
||||
"""This module contains metadata about the project."""
|
||||
title = 'hadaly'
|
||||
version = '0.1a'
|
||||
description = 'Presentation software for art historians'
|
||||
author = 'Bogdan Cordie'
|
||||
author_email = 'ooctogene@gmail.com'
|
||||
license = 'GPLv3'
|
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
import runpy
|
||||
|
||||
if __name__ == '__main__':
|
||||
runpy.run_module('hadaly', run_name=__name__, alter_sys=True)
|
@ -0,0 +1,37 @@
|
||||
#!/usr/bin/env python
|
||||
import os
|
||||
from setuptools import setup, find_packages
|
||||
from hadaly import meta
|
||||
|
||||
def read(fname):
|
||||
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
||||
|
||||
setup(
|
||||
name='hadaly',
|
||||
version=meta.version,
|
||||
description=meta.description,
|
||||
packages=find_packages(),
|
||||
url='https://octogene.github.io/hadaly/',
|
||||
license=meta.license,
|
||||
author=meta.author,
|
||||
author_email=meta.author_email,
|
||||
requires=['lxml', 'Pillow', 'kivy'],
|
||||
long_description=read('README.md'),
|
||||
package_data={'hadaly': ['data/*.png',
|
||||
'data/fonts/*.ttf',
|
||||
'data/locales/fr/LC_MESSAGES/*.mo']},
|
||||
include_package_data=True,
|
||||
classifiers=[
|
||||
"Development Status :: 3 - Alpha",
|
||||
"Environment :: X11 Applications",
|
||||
"Programming Language :: Python :: 2.7",
|
||||
"Operating System :: OS Independent",
|
||||
"Natural Language :: English",
|
||||
"Natural Language :: French",
|
||||
"Topic :: Education",
|
||||
"Intended Audience :: Education",
|
||||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
||||
],
|
||||
scripts = ['scripts/hadaly'],
|
||||
zip_safe = False,
|
||||
)
|