-
Notifications
You must be signed in to change notification settings - Fork 6
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 #34 from mattjegan/pre-release/1.1.0
update version, requirements, docs, fix chaining in load_default
- Loading branch information
Showing
8 changed files
with
91 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ashishkg0022 | ||
mattjegan | ||
taml | ||
the-c0der | ||
|
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
-e . | ||
requests==2.11.0 |
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,10 +1,66 @@ | ||
from distutils.core import setup | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
# This setup.py is based off https://github.com/kennethreitz/setup.py | ||
|
||
import os | ||
import sys | ||
from shutil import rmtree | ||
|
||
from setuptools import find_packages, setup, Command | ||
|
||
# Package meta-data. | ||
NAME = 'RanCat' | ||
DESCRIPTION = 'A random string generator' | ||
URL = 'https://github.com/mattjegan/rancat' | ||
AUTHOR = 'Matthew Egan' | ||
|
||
REQUIRED = [] | ||
|
||
here = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
|
||
class PublishCommand(Command): | ||
"""Support setup.py publish.""" | ||
|
||
description = 'Build and publish the package.' | ||
user_options = [] | ||
|
||
@staticmethod | ||
def status(s): | ||
"""Prints things in bold.""" | ||
print('\033[1m{0}\033[0m'.format(s)) | ||
|
||
def initialize_options(self): | ||
pass | ||
|
||
def finalize_options(self): | ||
pass | ||
|
||
def run(self): | ||
try: | ||
self.status('Removing previous builds…') | ||
rmtree(os.path.join(here, 'dist')) | ||
except FileNotFoundError: | ||
pass | ||
|
||
self.status('Building Source and Wheel (universal) distribution…') | ||
os.system('{0} setup.py sdist bdist_wheel --universal'.format(sys.executable)) | ||
|
||
self.status('Uploading the package to PyPi via Twine…') | ||
os.system('twine upload --repository-url https://upload.pypi.org/legacy/ dist/*') | ||
|
||
sys.exit() | ||
|
||
setup( | ||
name='RanCat', | ||
version='1.0.0', | ||
description='A random string generator', | ||
author='Matthew Egan', | ||
url='https://github.com/mattjegan/rancat', | ||
packages=['rancat'] | ||
name=NAME, | ||
version='1.1.0', | ||
description=DESCRIPTION, | ||
author=AUTHOR, | ||
url=URL, | ||
packages=['rancat'], | ||
include_package_data=True, | ||
cmdclass={ | ||
'publish': PublishCommand, | ||
}, | ||
) |