-
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 #71 from jacebrowning/release/v3.1
Release v3.1
- Loading branch information
Showing
30 changed files
with
1,414 additions
and
276 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 |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
*.egg-info | ||
__pycache__ | ||
.ipynb_checkpoints | ||
setup.py | ||
|
||
# Temporary OS files | ||
Icon* | ||
|
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,2 +1,2 @@ | ||
3.7.5 | ||
3.8.2 | ||
2.7.14 |
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ language: python | |
python: | ||
- 3.6 | ||
- 3.7 | ||
- 3.8 | ||
|
||
cache: | ||
pip: true | ||
|
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
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,80 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
import os | ||
import importlib | ||
import tempfile | ||
import shutil | ||
import subprocess | ||
import sys | ||
|
||
CWD = os.getcwd() | ||
TMP = tempfile.gettempdir() | ||
CONFIG = { | ||
"full_name": "Jace Browning", | ||
"email": "[email protected]", | ||
"github_username": "jacebrowning", | ||
"github_repo": "verchew", | ||
"default_branch": "develop", | ||
"project_name": "verchew", | ||
"package_name": "verchew", | ||
"project_short_description": "System dependency version checker.", | ||
"python_major_version": 3, | ||
"python_minor_version": 6, | ||
} | ||
|
||
|
||
def install(package='cookiecutter'): | ||
try: | ||
importlib.import_module(package) | ||
except ImportError: | ||
print("Installing cookiecutter") | ||
subprocess.check_call([sys.executable, '-m', 'pip', 'install', package]) | ||
|
||
|
||
def run(): | ||
print("Generating project") | ||
|
||
from cookiecutter.main import cookiecutter | ||
|
||
os.chdir(TMP) | ||
cookiecutter( | ||
'https://github.com/jacebrowning/template-python.git', | ||
no_input=True, | ||
overwrite_if_exists=True, | ||
extra_context=CONFIG, | ||
) | ||
|
||
|
||
def copy(): | ||
for filename in [ | ||
'.appveyor.yml', | ||
'.coveragerc', | ||
'.gitattributes', | ||
'.gitignore', | ||
'.isort.cfg', | ||
'.mypy.ini', | ||
'.pydocstyle.ini', | ||
'.pylint.ini', | ||
'.scrutinizer.yml', | ||
'.travis.yml', | ||
'.verchew.ini', | ||
'CONTRIBUTING.md', | ||
'Makefile', | ||
os.path.join('bin', 'checksum'), | ||
os.path.join('bin', 'open'), | ||
os.path.join('bin', 'update'), | ||
os.path.join('bin', 'verchew'), | ||
'pytest.ini', | ||
'scent.py', | ||
]: | ||
src = os.path.join(TMP, CONFIG['project_name'], filename) | ||
dst = os.path.join(CWD, filename) | ||
print("Updating " + filename) | ||
shutil.copy(src, dst) | ||
|
||
|
||
if __name__ == '__main__': | ||
install() | ||
run() | ||
copy() |
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,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
verchew/script.py |
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
Oops, something went wrong.