Skip to content

Commit

Permalink
fixed setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mdipierro committed Feb 18, 2019
1 parent 58045dd commit 1e05333
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 26 deletions.
42 changes: 17 additions & 25 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,25 @@

import setuptools

with open("README.md", "r") as fh:
long_description = fh.read()

_version_re = re.compile(r'__version__\s+=\s+(.*)')

with open('yatl/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
print(long_description)
from yatl import __version__

setuptools.setup(
name="yatl",
version=version,
url='https://github.com/web2py/yatl',
license='BSD',
author='Massimo Di Pierro',
author_email='[email protected]',
maintainer='Massimo Di Pierro',
maintainer_email='[email protected]',
description='Yet Another Template Language',
long_description=long_description,
long_description_content_type="text/markdown",
packages=['yatl'],
include_package_data=True,
zip_safe=False,
platforms='any',
classifiers=[
name = "yatl",
version = __version__,
url = 'https://github.com/web2py/yatl',
license = 'BSD',
author = 'Massimo Di Pierro',
author_email = '[email protected]',
maintainer = 'Massimo Di Pierro',
maintainer_email = '[email protected]',
description = 'Yet Another Template Language',
long_description = "This is a spin-off of the web2py template language, framework agnostic, documented in the web2py book. Includes helpers and sanitizer.",
long_description_content_type = "text/markdown",
packages = ['yatl'],
include_package_data = True,
zip_safe = False,
platforms = 'any',
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
Expand Down
2 changes: 1 addition & 1 deletion yatl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '1.0.0'
__version__ = '1.0.1'

from . template import *
from . helpers import *

0 comments on commit 1e05333

Please sign in to comment.