-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add scripts for pipy packaging - (taken from githubdl)
- Loading branch information
Showing
15 changed files
with
121 additions
and
1 deletion.
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,2 +1,6 @@ | ||
*.log | ||
__pycache__ | ||
tide.egg-info/ | ||
dist/ | ||
build/ | ||
scripts/.pypirc |
File renamed without changes.
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 @@ | ||
include README.md | ||
include LICENSE.txt |
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 @@ | ||
#! /bin/sh -e | ||
|
||
cd $(dirname $0)/../tests/docker | ||
|
||
docker-compose -f docker-compose.yml build |
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 @@ | ||
#! /bin/sh -e | ||
|
||
cd $(dirname $0)/../tests/docker | ||
|
||
docker-compose -f docker-compose.yml run --rm --service-ports test-python-tide "${@-sh}" |
File renamed without changes.
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 @@ | ||
#! /bin/sh -e | ||
|
||
cd $(dirname $0)/ | ||
|
||
./dev-environment /work/tests/scripts/run-build-package |
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,6 @@ | ||
#! /bin/sh -e | ||
|
||
cd $(dirname $0)/ | ||
|
||
./dev-environment /work/tests/scripts/run-build-package | ||
./dev-environment /work/tests/scripts/run-upload-package |
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,7 @@ | ||
#! /bin/sh -e | ||
|
||
cd $(dirname $0)/.. | ||
|
||
rm -rf dist | ||
rm -rf tide.egg-info | ||
rm -rf build |
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,9 @@ | ||
[metadata] | ||
description_file = README.md | ||
license_file = LICENSE.txt | ||
|
||
[pycodestyle] | ||
count = False | ||
ignore = D102,D103 | ||
max-line-length = 180 | ||
statistics = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
""" | ||
A package for adding enhancements to text editors in a cross-platform, cross-editor manner. | ||
https://github.com/wilvk/tide | ||
""" | ||
|
||
import setuptools | ||
from codecs import open | ||
from os import path | ||
|
||
here = path.abspath(path.dirname(__file__)) | ||
|
||
with open(path.join(here, 'README.md'), encoding='utf-8') as f: | ||
long_description = f.read() | ||
|
||
setuptools.setup( | ||
name = 'tide', | ||
version = '0.1', | ||
description = 'From text editor to Integrated Development Environment. This allows you to use a yaml config and some scripting to deliver cross-platform, cross-editor plugins.', | ||
author = 'Willem van Ketwich', | ||
author_email = 'willvk@gmail.com', | ||
license = 'MIT', | ||
python_requires='>=3.4', | ||
url = 'https://github.com/wilvk/tide', | ||
download_url = 'https://github.com/wilvk/tide/archive/0.1.tar.gz', | ||
long_description=long_description, | ||
classifiers=[ | ||
'Development Status :: 3 - Alpha', | ||
'Intended Audience :: Developers', | ||
'Natural Language :: English', | ||
'Topic :: Software Development', | ||
'Topic :: Text Editors', | ||
'Topic :: Text Processing', | ||
'Programming Language :: Python :: 3', | ||
'Operating System :: OS Independent', | ||
'Intended Audience :: Information Technology', | ||
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', | ||
], | ||
keywords = ['editor', 'configuration'], | ||
packages=setuptools.find_packages(), | ||
install_requires = [ | ||
'jinja', | ||
'markupsafe', | ||
'pexpect', | ||
'ptyprocess', | ||
'pyyaml', | ||
'six', | ||
'yamlreader' | ||
], | ||
extras_require={ | ||
'dev': [], | ||
'test': [ 'nose' ], | ||
}, | ||
) |
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,3 +1,5 @@ | ||
FROM python:3.4-alpine3.4 | ||
|
||
RUN pip install nose | ||
RUN pip install --upgrade pip | ||
|
||
RUN pip install pyyaml twine requests nose wheel |
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,4 @@ | ||
[pypi] | ||
repository: https://upload.pypi.org/legacy/ | ||
username: wilvk | ||
password: <password> |
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,9 @@ | ||
#!/bin/sh | ||
|
||
cd /work | ||
|
||
rm -rf tide.egg-info | ||
rm -rf dist | ||
|
||
python ./setup.py sdist | ||
python ./setup.py bdist_wheel |
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,9 @@ | ||
#!/bin/sh | ||
|
||
cd /work | ||
|
||
echo "note to self: set password in ./tests/scripts/.pypirc before running" | ||
|
||
cp scripts/.pypirc /root | ||
|
||
twine upload dist/* --verbose |