Skip to content

Commit

Permalink
Move package Makefile to JSSImporter repo and update python-jss dep.
Browse files Browse the repository at this point in the history
  • Loading branch information
sheagcraig committed Oct 3, 2017
1 parent e4020b0 commit d0a1e43
Show file tree
Hide file tree
Showing 5 changed files with 228 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
*.pyc
*.swp
.ropeproject
*.pkg
2 changes: 2 additions & 0 deletions JSSImporter.py
Expand Up @@ -24,12 +24,14 @@
import sys
from xml.etree import ElementTree

sys.path.insert(0, '/Library/Application Support/JSSImporter')
import jss
# Ensure that python-jss dependency is at minimum version
try:
from jss import __version__ as PYTHON_JSS_VERSION
except ImportError:
PYTHON_JSS_VERSION = "0.0.0"

from autopkglib import Processor, ProcessorError


Expand Down
19 changes: 19 additions & 0 deletions Makefile
@@ -0,0 +1,19 @@
include /usr/local/share/luggage/luggage.make

TITLE=jssimporter
REVERSE_DOMAIN=com.github.sheagcraig
PAYLOAD=\
pack-Library-AutoPkg-autopkglib-JSSImporter \
pack-Library-JSSImporter \

PACKAGE_VERSION=$(shell awk -F\" '/__version__ =/ { print $$2 }' JSSImporter.py)

pack-Library-AutoPkg-autopkglib-JSSImporter: l_Library
@sudo mkdir -p ${WORK_D}/Library/AutoPkg/autopkglib
@sudo ${INSTALL} -m 755 -g wheel -o root JSSImporter.py ${WORK_D}/Library/AutoPkg/autopkglib/

pack-Library-JSSImporter: l_Library
@sudo mkdir -p ${WORK_D}/Library/Application\ Support/JSSImporter
@sudo rm -rf jss/*.pyc
@sudo cp -R jss ${WORK_D}/Library/Application\ Support/JSSImporter

9 changes: 9 additions & 0 deletions Pipfile
@@ -0,0 +1,9 @@
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

[dev-packages]

[packages]
"python-jss" = "*"
197 changes: 197 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d0a1e43

Please sign in to comment.