-
Notifications
You must be signed in to change notification settings - Fork 156
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
Teddy Reed
committed
Dec 28, 2015
1 parent
09bd61f
commit 2144c08
Showing
5 changed files
with
90 additions
and
48 deletions.
There are no files selected for viewing
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,7 +1,8 @@ | ||
#!/usr/bin/env python | ||
|
||
from setuptools import setup, find_packages, Extension, Command | ||
import os | ||
import re | ||
from setuptools import setup, find_packages, Extension, Command | ||
|
||
|
||
class LintCommand(Command): | ||
|
@@ -39,19 +40,30 @@ def run(self): | |
)) | ||
|
||
with open('README.rst') as f: | ||
readme = f.read() | ||
README = f.read() | ||
|
||
with open('LICENSE') as f: | ||
license = f.read() | ||
LICENSE = f.read() | ||
|
||
with open("uefi_firmware/__init__.py", "r") as f: | ||
__INIT__ = f.read() | ||
|
||
TITLE = re.search(r'^__title__\s*=\s*[\'"]([^\'"]*)[\'"]', | ||
__INIT__, re.MULTILINE).group(1) | ||
VERSION = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', | ||
__INIT__, re.MULTILINE).group(1) | ||
AUTHOR = re.search(r'^__author__\s*=\s*[\'"]([^\'"]*)[\'"]', | ||
__INIT__, re.MULTILINE).group(1) | ||
|
||
setup( | ||
title=TITLE, | ||
name='UEFI Firmware Parser', | ||
version='0.2', | ||
version=VERSION, | ||
description='Various data structures and parsing tools for UEFI firmware.', | ||
long_description=readme, | ||
author='Teddy Reed', | ||
long_description=README, | ||
author=AUTHOR, | ||
author_email='[email protected]', | ||
license=license, | ||
license=LICENSE, | ||
packages=find_packages(exclude=('tests', 'docs')), | ||
test_suite="tests", | ||
cmdclass={ | ||
|
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 @@ | ||
|
||
import test_compression |
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,4 +1,11 @@ | ||
'''UEFI Firmware parser utils. | ||
''' | ||
|
||
import uefi | ||
import pfs | ||
import me | ||
|
||
__title__ = "uefi_firmware" | ||
__version__ = "0.3" | ||
__author__ = "Teddy Reed" | ||
__license__ = "BSD" |
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