Skip to content

Commit

Permalink
Set up for Alpha release to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiebull1 committed Aug 31, 2016
1 parent 148cd53 commit f587894
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 66 deletions.
11 changes: 0 additions & 11 deletions README.txt

This file was deleted.

2 changes: 1 addition & 1 deletion geomeppy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""version number"""
__version__ = '0.0.0'
__version__ = '0.0.1'
3 changes: 0 additions & 3 deletions geomeppy/eppy_patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
from eppy import idfreader
import eppy
from eppy.modeleditor import addthisbunch
from eppy.modeleditor import namebunch
from eppy.modeleditor import newrawobject
from eppy.modeleditor import obj2bunch
from eppy.modeleditor import IDF as BaseIDF


Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[metadata]
description-file = README.md
70 changes: 19 additions & 51 deletions setup.py
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']
}
)

0 comments on commit f587894

Please sign in to comment.