Skip to content

Commit

Permalink
Adding setup.py and extracting __version__ into own version.py file f…
Browse files Browse the repository at this point in the history
…or use by setup.py
  • Loading branch information
adamkerz committed Feb 10, 2016
1 parent b4ce13b commit d7c6221
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 2 deletions.
36 changes: 36 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
from setuptools import setup,find_packages


with open('src/hermes/version.py') as fin: exec(fin.read())

setup(
name='esri-hermes',
version=__version__,

package_dir={'':'src'},
packages=find_packages('src'),
include_package_data=True,

# PyPI MetaData
author='achapkowski',
author_email='[email protected]',
description='Collection of Utilities to Read/Write a Dataset\'s Metadata',
license='Apache License - 2.0',
keywords='esri,arcpy,metadata',
url='https://github.com/Esri/hermes',
classifiers=(
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'License :: OSI Approved :: Apache Software License',
'Topic :: Software Development :: Libraries :: Python Modules',
),

zip_safe=False,
)
4 changes: 2 additions & 2 deletions src/hermes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
See the License for the specific language governing permissions and
limitations under the License.
"""
__version__ = "1.1.0"
from .version import *
import common
from paperwork import Paperwork
from .paperwork import Paperwork
13 changes: 13 additions & 0 deletions src/hermes/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"""
Copyright 2015 Esri
Licensed under the Apache License, Version 2.0 (the 'License');
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an 'AS IS' BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
__version__ = "1.1.0"

0 comments on commit d7c6221

Please sign in to comment.