Skip to content

Commit

Permalink
using zest.releaser (see #123)
Browse files Browse the repository at this point in the history
  • Loading branch information
mete0r committed Jun 15, 2013
1 parent 1c01361 commit 440cbd0
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 866 deletions.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
0.1b2 (2013-06-08)
------------------

- Add PyPy support
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
include COPYING
include pyhwp/hwp5/COPYING
include pyhwp/hwp5/README
include pyhwp/hwp5/VERSION.txt
include pyhwp/hwp5/xsl/*.xsl
include pyhwp/hwp5/xsl/odt/*
include pyhwp/hwp5/odf-relaxng/OpenDocument-v1.2-os-*.rng
include versioneer.py
include VERSION.txt
File renamed without changes.
1 change: 1 addition & 0 deletions buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ eggs = pyhwp
gpl
nose
pyroma
zest.releaser
interpreter = console

[docs-update-po]
Expand Down
1 change: 1 addition & 0 deletions pyhwp/hwp5/VERSION.txt
11 changes: 8 additions & 3 deletions pyhwp/hwp5/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from __future__ import with_statement
import os.path

from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
try:
with open(os.path.join(os.path.dirname(__file__), 'VERSION.txt')) as f:
__version__ = f.read().strip()
del f
except Exception:
__version__ = '0.0-unknown'
197 changes: 0 additions & 197 deletions pyhwp/hwp5/_version.py

This file was deleted.

13 changes: 4 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
# -*- coding: utf-8 -*-
from __future__ import with_statement
import os.path
from sys import version
if version < '2.2.3':
from distutils.dist import DistributionMetadata as DistMeta
DistMeta.classifiers = None
DistMeta.download_url = None


import versioneer
versioneer.versionfile_source = 'pyhwp/hwp5/_version.py'
versioneer.versionfile_build = 'hwp5/_version.py'
versioneer.tag_prefix = ''
versioneer.parentdir_prefix = 'pyhwp-'


import sys
install_requires = []
if 'java' not in sys.platform and sys.version < '3':
Expand All @@ -37,8 +33,7 @@ def read(filename):
from setuptools import setup, find_packages
setup(
name='pyhwp',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
version=read('VERSION.txt'),
license='GNU Affero GPL v3+',
description = 'hwp file format parser',
long_description=read('README'),
Expand Down
Loading

0 comments on commit 440cbd0

Please sign in to comment.