Skip to content

Commit

Permalink
Adds support for coconut-develop package
Browse files Browse the repository at this point in the history
  • Loading branch information
evhub committed Sep 23, 2016
1 parent 0830449 commit 7ccaf97
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 21 deletions.
35 changes: 19 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
language: python

notifications:
email: false

sudo: false

cache: pip

python:
- "2.6"
- "2.7"
- "pypy"
- "3.3"
- "3.4"
- "3.5"
- "pypy3"

- '2.6'
- '2.7'
- pypy
- '3.3'
- '3.4'
- '3.5'
- pypy3
install:
- pip install "pip==7.1.2"
- make

- pip install "pip==7.1.2"
- make
script:
- make test
- make test
deploy:
provider: pypi
user: evhub-develop
password:
secure: f5zfnO9cuMJyszSVG7h6ZZ0NtrQpI33NuCvyOEYeoLCL5815ANElRuBlGcP6KbydHM1rSp2/i62DXANy73U2mcPiQyiWUkhffOLxYnSGIMQ2hyRz2ZAopCusf5ZQFWH40NhT2q/gOnN/Cwyjd6KyU1oXSpolfROaE5aimu5dQcg=
on:
distributions: sdist bdist_wheel
repo: evhub/coconut
branch: develop
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@ clean:

build: clean
python setup.py sdist bdist_wheel

upload: build
pip install --upgrade twine
twine upload dist/*
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@
readme_lines = []
in_toc = False
for line in readme_file.readlines():
if in_toc and line and not line.startswith(" "):
in_toc = False
if line == ".. toctree::":
if line.startswith(".. toctree::"):
in_toc = True
if in_toc and 0 < len(line.lstrip()) < len(line):
in_toc = False
if not in_toc:
readme_lines.append(line)
readme = "\n".join(readme_lines)
readme = "".join(readme_lines)

#-----------------------------------------------------------------------------------------------------------------------
# UTILITIES:
Expand Down Expand Up @@ -187,7 +187,7 @@ def all_reqs_in(req_dict):
#-----------------------------------------------------------------------------------------------------------------------

setuptools.setup(
name="coconut",
name="coconut" + ("-develop" if DEVELOP else ""),
version=VERSION,
description="Simple, elegant, Pythonic functional programming.",
long_description=readme,
Expand Down

0 comments on commit 7ccaf97

Please sign in to comment.