-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pypi distribution setup. how did I never commit this before now?
- Loading branch information
Showing
5 changed files
with
37 additions
and
2 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 |
---|---|---|
|
@@ -10,7 +10,6 @@ dist | |
build | ||
eggs | ||
parts | ||
bin | ||
var | ||
sdist | ||
develop-eggs | ||
|
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,5 @@ | ||
#! /usr/bin/env python2 | ||
|
||
import d3ploy | ||
|
||
d3ploy.main() |
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 +1 @@ | ||
from d3ploy import main | ||
from d3ploy import main |
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 @@ | ||
[metadata] | ||
description-file = README.md |
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,29 @@ | ||
import re | ||
from distutils.core import setup | ||
|
||
VERSION_FINDER = re.compile( | ||
r'^VERSION = \'([\d+]\.[\d+].[\d+])\'$', | ||
re.MULTILINE | ||
) | ||
|
||
script = open('d3ploy/d3ploy.py', 'r').read() | ||
|
||
VERSION = VERSION_FINDER.findall(script) | ||
|
||
if VERSION: | ||
VERSION = VERSION.pop() | ||
else: | ||
raise ValueError('Could not find version number in script file') | ||
|
||
setup( | ||
name='d3ploy', | ||
packages=['d3ploy'], | ||
version=VERSION, | ||
description='Script for uploading files to S3 with multiple environment support.', | ||
author='Dan Ryan', | ||
author_email='d@dryan.com', | ||
url='https://github.com/dryan/d3ploy', | ||
download_url='https://github.com/dryan/d3ploy/archive/{}.tar.gz'.format( | ||
VERSION), | ||
scripts=['bin/d3ploy'], | ||
) |