Skip to content

Commit

Permalink
Modified setup
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeier76 committed Oct 20, 2015
1 parent 6213da0 commit fa18192
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 20 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
global-exclude .gitignore
global-exclude .DS_Store
2 changes: 1 addition & 1 deletion conf/zms3.formulator.metaobj.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,7 @@ textarea.form-control.rawJSON {
<item key="id"><![CDATA[zms3.formulator]]></item>
<item key="name"><![CDATA[zms3.formulator]]></item>
<item key="package"></item>
<item key="revision"><![CDATA[3.3.5]]></item>
<item key="revision"><![CDATA[3.4.0dev]]></item>
<item key="type"><![CDATA[ZMSPackage]]></item>
</dictionary>
</item>
Expand Down
23 changes: 4 additions & 19 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
import os
import sys
from setuptools import setup
from setuptools import find_packages

for path in sys.path:
if path.startswith(sys.prefix) and path.endswith('site-packages'):
site_packages = path

VERSION = '3.3.5'
VERSION = '3.4.0dev'

zmspkg_name = 'formulator'
branch_name = 'master'
Expand Down Expand Up @@ -67,26 +68,10 @@
(os.path.join(site_packages, 'zms3/formulator/conf'), ['conf/zms3.formulator.metaobj.xml']),
]

PACKAGE_DATA = []
# Exclude special folders and files
for dirpath, dirnames, filenames in os.walk('.'):
if (
'.' != dirpath and
'.settings' not in dirpath and
'.git' not in dirpath and
'dist' not in dirpath and
'json-editor' not in dirpath and
'select2' not in dirpath
):
if filenames:
for filename in filenames:
if filename != '.DS_Store' and filename != '.gitignore':
PACKAGE_DATA.append(dirpath[2:]+'/%s' % filename)
# Include files from root path (because '.' is exclude above)
PACKAGE_DATA.append('*.txt')
PACKAGE_DATA = find_packages()

CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Development Status :: 3 - Alpha',
'Framework :: Zope2',
'Programming Language :: Python :: 2.7',
'Operating System :: OS Independent',
Expand Down

0 comments on commit fa18192

Please sign in to comment.