Skip to content

Commit

Permalink
find subpackages automatically
Browse files Browse the repository at this point in the history
also add --dirty to git version string creation
  • Loading branch information
skuschel committed Mar 23, 2015
1 parent f888659 commit 5a6f0cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion postpic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def _createversionstring():
import subprocess as sub
import os.path
cwd = os.path.dirname(__file__)
p = sub.Popen(['git', 'describe', '--always'], stdout=sub.PIPE,
p = sub.Popen(['git', 'describe', '--always', '--dirty'], stdout=sub.PIPE,
stderr=sub.PIPE, cwd=cwd)
out, err = p.communicate()
if not p.returncode: # git exited without error
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
# You should have received a copy of the GNU General Public License
# along with postpic. If not, see <http://www.gnu.org/licenses/>.
#
from setuptools import setup
from setuptools import setup, find_packages

setup(name='postpic',
version='0.1.1',
author='Stephan Kuschel',
author_email='[email protected]',
description='The open source particle-in-cell post processor.',
url='http://github.com/skuschel/postpic',
packages=['postpic'],
packages=find_packages(include=['postpic*']),
license='GPLv3+',
install_requires=['matplotlib', 'numpy>=1.7', 'scipy'],
classifiers=[
Expand Down

0 comments on commit 5a6f0cf

Please sign in to comment.