-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
148cd53
commit f587894
Showing
5 changed files
with
22 additions
and
66 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
"""version number""" | ||
__version__ = '0.0.0' | ||
__version__ = '0.0.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[metadata] | ||
description-file = README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,44 @@ | ||
|
||
from setuptools import setup, find_packages | ||
from setuptools.command.test import test as TestCommand | ||
import io | ||
import codecs | ||
import os | ||
import sys | ||
#from distutils.core import setup | ||
|
||
import geomeppy | ||
from setuptools import setup | ||
|
||
here = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
def read(*filenames, **kwargs): | ||
encoding = kwargs.get('encoding', 'utf-8') | ||
sep = kwargs.get('sep', '\n') | ||
buf = [] | ||
for filename in filenames: | ||
with io.open(filename, encoding=encoding) as f: | ||
buf.append(f.read()) | ||
return sep.join(buf) | ||
|
||
long_description = read('README.txt') | ||
|
||
class PyTest(TestCommand): | ||
def finalize_options(self): | ||
TestCommand.finalize_options(self) | ||
self.test_args = [] | ||
self.test_suite = True | ||
|
||
def run_tests(self): | ||
import pytest | ||
errcode = pytest.main(self.test_args) | ||
sys.exit(errcode) | ||
|
||
setup( | ||
name='geomeppy', | ||
packages=['geomeppy', | ||
'devtools', | ||
'tests', | ||
], | ||
version=geomeppy.__version__, | ||
url='https://github.com/jamiebull1/geomeppy', | ||
license='MIT License', | ||
description='Geometry editing for E+ idf files', | ||
author='Jamie Bull', | ||
tests_require=['pytest'], | ||
cmdclass={'test': PyTest}, | ||
author_email='[email protected]', | ||
description='Geometry editing for E+ idf files, and E+ output files', | ||
long_description=long_description,# TODO set this up | ||
packages=['geomeppy', | ||
'devtools', | ||
'tests' | ||
url='https://github.com/jamiebull1/geomeppy', | ||
download_url='https://github.com/jamiebull1/geomeppy/tarball/v0.0.1', | ||
license='MIT License', | ||
keywords=['EnergyPlus', | ||
'geometry', | ||
'building performance simulation', | ||
], | ||
include_package_data=True, | ||
platforms='any', | ||
test_suite='geomeppy.tests',# TODO make test_eppy | ||
install_requires = [ | ||
"eppy>=0.5.2", | ||
"numpy>=1.2.1", | ||
"numpy>=1.11.1", | ||
"six>=1.10.0", # python2/3 compatibility | ||
"pyclipper>=1.0.2", # used for geometry intersection | ||
"transforms3d", # used for geometry tranformations | ||
"matplotlib", # for a simple geometry viewer | ||
"pyclipper>=1.0.2", # geometry intersection | ||
"transforms3d>=0.3", # geometry transformations | ||
"matplotlib>=1.5.1", # simple geometry viewer | ||
], | ||
classifiers = [ | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 3', | ||
'Development Status :: 4 - Beta', | ||
# 'Programming Language :: Python :: 3', # on hold until Eppy updates | ||
'Development Status :: 3 - Alpha', | ||
'Natural Language :: English', | ||
'Environment :: Console', | ||
'Intended Audience :: Science/Research', | ||
'License :: OSI Approved :: MIT License', | ||
'Operating System :: OS Independent', | ||
'Topic :: Scientific/Engineering', | ||
], | ||
extras_require={ | ||
'testing': ['pytest'], | ||
'develop': ['matplotlib'] | ||
} | ||
) |