-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from kevgliss/pipy
Minor fixes
- Loading branch information
Showing
6 changed files
with
25 additions
and
9 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
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
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
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 |
---|---|---|
|
@@ -9,7 +9,9 @@ | |
""" | ||
from __future__ import absolute_import | ||
|
||
import json | ||
import os.path | ||
import datetime | ||
|
||
from distutils import log | ||
from distutils.core import Command | ||
|
@@ -87,9 +89,18 @@ def install_for_development(self): | |
|
||
|
||
class SdistWithBuildStatic(sdist): | ||
def make_distribution(self): | ||
def make_release_tree(self, *a, **kw): | ||
dist_path = self.distribution.get_fullname() | ||
|
||
sdist.make_release_tree(self, *a, **kw) | ||
|
||
self.reinitialize_command('build_static', work_path=dist_path) | ||
self.run_command('build_static') | ||
return sdist.make_distribution(self) | ||
|
||
with open(os.path.join(dist_path, 'lemur-package.json'), 'w') as fp: | ||
json.dump({ | ||
'createdAt': datetime.datetime.utcnow().isoformat() + 'Z', | ||
}, fp) | ||
|
||
|
||
class BuildStatic(Command): | ||
|
@@ -114,6 +125,9 @@ def run(self): | |
version='0.1.3', | ||
author='Kevin Glisson', | ||
author_email='[email protected]', | ||
url='https://github.com/netflix/lemur', | ||
download_url='https://github.com/Netflix/lemur/archive/0.1.3.tar.gz', | ||
description='Certificate management and orchestration service', | ||
long_description=open(os.path.join(ROOT, 'README.rst')).read(), | ||
packages=find_packages(), | ||
include_package_data=True, | ||
|