Skip to content

Commit

Permalink
add scripts for pipy packaging - (taken from githubdl)
Browse files Browse the repository at this point in the history
  • Loading branch information
wilvk committed Apr 13, 2019
1 parent 1b5a054 commit 563ea6b
Show file tree
Hide file tree
Showing 15 changed files with 121 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
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.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include README.md
include LICENSE.txt
5 changes: 5 additions & 0 deletions bin/dev-build
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
5 changes: 5 additions & 0 deletions bin/dev-environment
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.
5 changes: 5 additions & 0 deletions bin/run-build-package
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
6 changes: 6 additions & 0 deletions bin/run-build-upload-package
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
7 changes: 7 additions & 0 deletions bin/run-clean-dir
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
9 changes: 9 additions & 0 deletions setup.cfg
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
53 changes: 53 additions & 0 deletions setup.py
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' ],
},
)
4 changes: 3 additions & 1 deletion tests/docker/Dockerfile-python-tests
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
4 changes: 4 additions & 0 deletions tests/scripts/.pypirc
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>
9 changes: 9 additions & 0 deletions tests/scripts/run-build-package
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
9 changes: 9 additions & 0 deletions tests/scripts/run-upload-package
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

0 comments on commit 563ea6b

Please sign in to comment.