Skip to content

Add versioneer support. Fix #5 #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 6, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib/freetypy/_version.py export-subst
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ include README
include buildext/*.py
include tox.ini
include src/*.c src/*.h
include docstrings/*.py
include docstrings/*.pyinclude versioneer.py
include lib/freetypy/_version.py
6 changes: 4 additions & 2 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

import sys, os

import freetypy

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
Expand Down Expand Up @@ -56,9 +58,9 @@
# built documents.
#
# The short X.Y version.
version = '0.1'
version = freetypy.__version__
# The full version, including alpha/beta/rc tags.
release = '0.1'
release = freetypy.__version__

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
5 changes: 4 additions & 1 deletion lib/freetypy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@
from ._freetypy import *

from ._freetypy import (__freetype_version__,
__version__,
__freetype_build_type__)

from . import util

from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
Loading