Skip to content

Commit e2df4b3

Browse files
committed
bump version, merge branch 'devel'
2 parents b882682 + 3953568 commit e2df4b3

14 files changed

+238
-362
lines changed

.travis.yml

+29-36
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,46 @@
1-
sudo: required
2-
dist: trusty
31
language: python
4-
python: 3.5
5-
6-
# use cache for big builds
2+
matrix:
3+
include:
4+
- python: 2.6
5+
env: TOXENV=py26
6+
- python: 2.7
7+
env: TOXENV=py27
8+
- python: 3.4
9+
env: TOXENV=py34
10+
- python: 3.5
11+
env: TOXENV=py35
12+
- python: 3.6
13+
env: TOXENV=py36
14+
- python: 3.7
15+
dist: xenial
16+
sudo: true
17+
env: TOXENV=py37
18+
- python: pypy2.7-5.10.0
19+
env: TOXENV=pypy
20+
- python: pypy3.5-5.10.0
21+
env: TOXENV=pypy3
22+
- python: 3.6
23+
env: TOXENV=flake8
24+
# use cache for big builds like pandas (to minimise build time).
25+
# If issues, clear cache
26+
# https://docs.travis-ci.com/user/caching/#Clearing-Caches
727
cache:
828
pip: true
929
directories:
1030
- $HOME/.cache/pip
1131
before_cache:
1232
- rm -f $HOME/.cache/pip/log/debug.log
13-
1433
notifications:
1534
email: false
1635
# branches: # remove travis double-check on pull requests in main repo
1736
# only:
1837
# - master
1938
# - /^\d\.\d+$/
20-
21-
env:
22-
- TOXENV=py26
23-
- TOXENV=py27
24-
- TOXENV=py33
25-
- TOXENV=py34
26-
- TOXENV=py35
27-
- TOXENV=pypy
28-
- TOXENV=pypy3
29-
- TOXENV=flake8
30-
31-
before_install:
32-
# fix a crash with multiprocessing on Travis
33-
- sudo rm -rf /dev/shm
34-
- sudo ln -s /run/shm /dev/shm
35-
# install codecov
36-
- pip install codecov
37-
3839
install:
39-
# install big packages (they are cached to minimize build time)
40-
# if issues, clear cache
41-
# https://docs.travis-ci.com/user/caching/#Clearing-Caches
42-
# Coverage install
43-
- pip install tox 'coverage<4'
44-
# install this package (pymake) into the environment
45-
- python setup.py install
46-
40+
# Install tox first, before dependencies (to get per-env deps)
41+
- pip install tox
42+
# install this package (py-make) into the environment
43+
- pip install .
4744
# run tests
4845
script:
4946
- tox
50-
# submit coverage
51-
52-
after_success:
53-
- codecov

LICENCE

+7-26
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,19 @@
11
`pymake` is a product of collaborative work.
22
Unless otherwise stated, all authors (see commit logs) retain copyright
3-
for their respective work, and release the work under the MIT licence
4-
(text below).
3+
for their respective work, and release the work under the MPLv2.0 licence.
54

65
Exceptions or notable authors are listed below
76
in reverse chronological order:
87

9-
* MPLv2.0 (text below) 2016 (c) Casper da Costa-Luis
8+
* files *
9+
MPLv2.0 2016-2019 (c) Casper da Costa-Luis
1010
[casperdcl](https://github.com/casperdcl).
1111

1212

1313
Mozilla Public Licence (MPL) v. 2.0 - Exhibit A
1414
-----------------------------------------------
1515

16-
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
17-
If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
18-
19-
20-
MIT License (MIT)
21-
-----------------
22-
23-
Permission is hereby granted, free of charge, to any person obtaining a copy of
24-
this software and associated documentation files (the "Software"), to deal in
25-
the Software without restriction, including without limitation the rights to
26-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
27-
the Software, and to permit persons to whom the Software is furnished to do so,
28-
subject to the following conditions:
29-
30-
The above copyright notice and this permission notice shall be included in all
31-
copies or substantial portions of the Software.
32-
33-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
34-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
35-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
36-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
37-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
38-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16+
This Source Code Form is subject to the terms of the
17+
Mozilla Public License, v. 2.0.
18+
If a copy of the MPL was not distributed with this file,
19+
You can obtain one at https://mozilla.org/MPL/2.0/.

MANIFEST.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ include .coveragerc
33
include CONTRIBUTE
44
include LICENCE
55
include Makefile
6-
include README.rst
76
include tox.ini
87

98
# Test suite
109
recursive-include pymake/tests *.py
1110

1211
# Examples/Documentation
13-
recursive-include examples *
12+
recursive-include examples *.py Makefile*
13+
include README.rst

Makefile

+18-16
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
#test:
1111
# nosetest
1212
#install:
13-
# python setup.py install
13+
# python setup.py \
14+
# install
1415
#```
1516

1617
.PHONY:
@@ -26,15 +27,17 @@
2627
coverclean
2728
prebuildclean
2829
clean
30+
toxclean
2931
installdev
3032
install
3133
build
32-
pypimeta
34+
buildupload
3335
pypi
36+
help
3437
none
3538

3639
help:
37-
@python setup.py make
40+
@python setup.py make -p
3841

3942
alltests:
4043
@+make testcoverage
@@ -46,10 +49,7 @@ all:
4649
@+make build
4750

4851
flake8:
49-
@+flake8 --max-line-length=80 --count --statistics --exit-zero pymake/
50-
@+flake8 --max-line-length=80 --count --statistics --exit-zero examples/
51-
@+flake8 --max-line-length=80 --count --statistics --exit-zero .
52-
@+flake8 --max-line-length=80 --count --statistics --exit-zero pymake/tests/
52+
@+flake8 --max-line-length=80 --exclude .tox,build -j 8 --count --statistics --exit-zero .
5353

5454
test:
5555
tox --skip-missing-interpreters
@@ -78,10 +78,16 @@ prebuildclean:
7878
@+python -c "import shutil; shutil.rmtree('pymake.egg-info', True)"
7979
coverclean:
8080
@+python -c "import os; os.remove('.coverage') if os.path.exists('.coverage') else None"
81+
@+python -c "import shutil; shutil.rmtree('pymake/__pycache__', True)"
82+
@+python -c "import shutil; shutil.rmtree('pymake/tests/__pycache__', True)"
8183
clean:
82-
@+python -c "import os; import glob; [os.remove(i) for i in glob.glob('*.py[co]')]"
83-
@+python -c "import os; import glob; [os.remove(i) for i in glob.glob('pymake/*.py[co]')]"
84-
@+python -c "import os; import glob; [os.remove(i) for i in glob.glob('pymake/tests/*.py[co]')]"
84+
@+python -c "import os, glob; [os.remove(i) for i in glob.glob('*.py[co]')]"
85+
@+python -c "import os, glob; [os.remove(i) for i in glob.glob('pymake/*.py[co]')]"
86+
@+python -c "import os, glob; [os.remove(i) for i in glob.glob('pymake/tests/*.py[co]')]"
87+
@+python -c "import os, glob; [os.remove(i) for i in glob.glob('pymake/examples/*.py[co]')]"
88+
toxclean:
89+
@+python -c "import shutil; shutil.rmtree('.tox', True)"
90+
8591

8692
installdev:
8793
python setup.py develop --uninstall
@@ -92,19 +98,15 @@ install:
9298

9399
build:
94100
@make prebuildclean
95-
python setup.py sdist --formats=gztar,zip bdist_wheel
96-
python setup.py bdist_wininst
97-
98-
pypimeta:
99-
python setup.py register
101+
python setup.py sdist bdist_wheel
102+
# python setup.py bdist_wininst
100103

101104
pypi:
102105
twine upload dist/*
103106

104107
buildupload:
105108
@make testsetup
106109
@make build
107-
@make pypimeta
108110
@make pypi
109111

110112
none:

README.rst

+51-28
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
|Logo|
2-
31
py-make
42
=======
53

64
|PyPI-Status| |PyPI-Versions|
75

8-
|Build-Status| |Coverage-Status| |Branch-Coverage-Status| |Codacy-Grade|
6+
|Build-Status| |Coverage-Status| |Branch-Coverage-Status| |Codacy-Grade| |Libraries-Rank|
97

10-
|LICENCE|
8+
|DOI-URI| |LICENCE| |OpenHub-Status|
119

1210

1311
Bring basic ``Makefile`` support to any system with Python.
@@ -16,7 +14,7 @@ Inspired by work in `tqdm <https://github.com/tqdm/tqdm>`__.
1614

1715
Simply install then execute ``pymake`` in a directory containing a ``Makefile``.
1816

19-
``pyamke`` works on any platform (Linux, Windows, Mac, FreeBSD, Solaris/SunOS).
17+
``pymake`` works on any platform (Linux, Windows, Mac, FreeBSD, Solaris/SunOS).
2018

2119
``pymake`` does not require any library to run, just a vanilla Python
2220
interpreter will do.
@@ -34,16 +32,16 @@ Installation
3432
Latest PyPI stable release
3533
~~~~~~~~~~~~~~~~~~~~~~~~~~
3634

37-
|PyPI-Status|
35+
|PyPI-Status| |PyPI-Downloads| |Libraries-Dependents|
3836

3937
.. code:: sh
4038
4139
pip install py-make
4240
43-
Latest development release on github
41+
Latest development release on GitHub
4442
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4543

46-
|GitHub-Status| |GitHub-Stars| |GitHub-Forks|
44+
|GitHub-Status| |GitHub-Stars| |GitHub-Commits| |GitHub-Forks| |GitHub-Updated|
4745

4846
Pull and install in the current directory:
4947

@@ -93,7 +91,8 @@ Sample makefile compatible with ``pymake``:
9391
test:
9492
nosetest
9593
install:
96-
python setup.py install
94+
python setup.py\
95+
install
9796
compile:
9897
$(PY) test.py
9998
circle:
@@ -106,7 +105,7 @@ Sample makefile compatible with ``pymake``:
106105
Documentation
107106
-------------
108107

109-
|PyPI-Versions| |README-Hits| (Since 19 May 2016)
108+
|PyPI-Versions| |README-Hits| (Since 28 Oct 2016)
110109

111110
.. code:: sh
112111
@@ -116,6 +115,8 @@ Documentation
116115
Contributions
117116
-------------
118117

118+
|GitHub-Commits| |GitHub-Issues| |GitHub-PRs| |OpenHub-Status|
119+
119120
All source code is hosted on `GitHub <https://github.com/tqdm/py-make>`__.
120121
Contributions are welcome.
121122

@@ -135,35 +136,57 @@ Citation information: |DOI-URI|
135136
Authors
136137
-------
137138

138-
- Casper da Costa-Luis (casperdcl)
139-
- Stephen Larroque (lrq3000)
139+
The main developers, ranked by surviving lines of code
140+
(`git fame -wMC <https://github.com/casperdcl/git-fame>`__), are:
141+
142+
- Casper da Costa-Luis (`casperdcl <https://github.com/casperdcl>`__, ~99.5%, |Gift-Casper|)
143+
- Stephen Larroque (`lrq3000 <https://github.com/lrq3000>`__, ~0.5%)
144+
145+
We are grateful for all |GitHub-Contributions|.
140146

141147
|README-Hits| (Since 28 Oct 2016)
142148

143-
.. |Logo| image:: https://raw.githubusercontent.com/tqdm/py-make/master/logo.png
144-
.. |Screenshot| image:: https://raw.githubusercontent.com/tqdm/py-make/master/images/py-make.gif
145-
.. |Build-Status| image:: https://travis-ci.org/tqdm/py-make.svg?branch=master
149+
.. |Build-Status| image:: https://img.shields.io/travis/tqdm/py-make/master.svg?logo=travis
146150
:target: https://travis-ci.org/tqdm/py-make
147-
.. |Coverage-Status| image:: https://coveralls.io/repos/tqdm/py-make/badge.svg
148-
:target: https://coveralls.io/r/tqdm/py-make
149-
.. |Branch-Coverage-Status| image:: https://codecov.io/github/tqdm/py-make/coverage.svg?branch=master
150-
:target: https://codecov.io/github/tqdm/py-make?branch=master
151+
.. |Coverage-Status| image:: https://coveralls.io/repos/tqdm/py-make/badge.svg?branch=master
152+
:target: https://coveralls.io/github/tqdm/py-make
153+
.. |Branch-Coverage-Status| image:: https://codecov.io/gh/tqdm/py-make/branch/master/graph/badge.svg
154+
:target: https://codecov.io/gh/tqdm/py-make
151155
.. |Codacy-Grade| image:: https://api.codacy.com/project/badge/Grade/3f965571598f44549c7818f29cdcf177
152156
:target: https://www.codacy.com/app/tqdm/py-make?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=tqdm/py-make&amp;utm_campaign=Badge_Grade
153-
.. |GitHub-Status| image:: https://img.shields.io/github/tag/tqdm/py-make.svg?maxAge=2592000
157+
.. |GitHub-Status| image:: https://img.shields.io/github/tag/tqdm/py-make.svg?maxAge=86400&logo=github&logoColor=white
154158
:target: https://github.com/tqdm/py-make/releases
155-
.. |GitHub-Forks| image:: https://img.shields.io/github/forks/tqdm/py-make.svg
159+
.. |GitHub-Forks| image:: https://img.shields.io/github/forks/tqdm/py-make.svg?logo=github&logoColor=white
156160
:target: https://github.com/tqdm/py-make/network
157-
.. |GitHub-Stars| image:: https://img.shields.io/github/stars/tqdm/py-make.svg
161+
.. |GitHub-Stars| image:: https://img.shields.io/github/stars/tqdm/py-make.svg?logo=github&logoColor=white
158162
:target: https://github.com/tqdm/py-make/stargazers
163+
.. |GitHub-Commits| image:: https://img.shields.io/github/commit-activity/y/tqdm/py-make.svg?logo=git&logoColor=white
164+
:target: https://github.com/tqdm/py-make/graphs/commit-activity
165+
.. |GitHub-Issues| image:: https://img.shields.io/github/issues-closed/tqdm/py-make.svg?logo=github&logoColor=white
166+
:target: https://github.com/tqdm/py-make/issues
167+
.. |GitHub-PRs| image:: https://img.shields.io/github/issues-pr-closed/tqdm/py-make.svg?logo=github&logoColor=white
168+
:target: https://github.com/tqdm/py-make/pulls
169+
.. |GitHub-Contributions| image:: https://img.shields.io/github/contributors/tqdm/py-make.svg?logo=github&logoColor=white
170+
:target: https://github.com/tqdm/py-make/graphs/contributors
171+
.. |GitHub-Updated| image:: https://img.shields.io/github/last-commit/tqdm/py-make/master.svg?logo=github&logoColor=white&label=pushed
172+
:target: https://github.com/tqdm/py-make/pulse
173+
.. |Gift-Casper| image:: https://img.shields.io/badge/gift-donate-ff69b4.svg
174+
:target: https://caspersci.uk.to/donate.html
159175
.. |PyPI-Status| image:: https://img.shields.io/pypi/v/py-make.svg
160-
:target: https://pypi.python.org/pypi/py-make
161-
.. |PyPI-Downloads| image:: https://img.shields.io/pypi/dm/py-make.svg
162-
:target: https://pypi.python.org/pypi/py-make
163-
.. |PyPI-Versions| image:: https://img.shields.io/pypi/pyversions/py-make.svg
164-
:target: https://pypi.python.org/pypi/py-make
176+
:target: https://pypi.org/project/py-make
177+
.. |PyPI-Downloads| image:: https://img.shields.io/pypi/dm/py-make.svg?label=pypi%20downloads&logo=python&logoColor=white
178+
:target: https://pypi.org/project/py-make
179+
.. |PyPI-Versions| image:: https://img.shields.io/pypi/pyversions/py-make.svg?logo=python&logoColor=white
180+
:target: https://pypi.org/project/py-make
181+
.. |Libraries-Rank| image:: https://img.shields.io/librariesio/sourcerank/pypi/py-make.svg?logo=koding&logoColor=white
182+
:target: https://libraries.io/pypi/py-make
183+
.. |Libraries-Dependents| image:: https://img.shields.io/librariesio/dependent-repos/pypi/py-make.svg?logo=koding&logoColor=white
184+
:target: https://github.com/tqdm/py-make/network/dependents
185+
.. |OpenHub-Status| image:: https://www.openhub.net/p/py-make/widgets/project_thin_badge?format=gif
186+
:target: https://www.openhub.net/p/py-make?ref=Thin+badge
165187
.. |LICENCE| image:: https://img.shields.io/pypi/l/py-make.svg
166188
:target: https://raw.githubusercontent.com/tqdm/py-make/master/LICENCE
167189
.. |DOI-URI| image:: https://zenodo.org/badge/21637/tqdm/py-make.svg
168190
:target: https://zenodo.org/badge/latestdoi/21637/tqdm/py-make
169-
.. |README-Hits| image:: http://hitt.herokuapp.com/pymake/pymake.svg
191+
.. |README-Hits| image:: https://caspersci.uk.to/cgi-bin/hits.cgi?q=py-make&style=social&r=https://github.com/tqdm/py-make
192+
:target: https://caspersci.uk.to/cgi-bin/hits.cgi?q=py-make&a=plot&r=https://github.com/tqdm/tqdm&style=social

examples/Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ IPY=python -c
44
err
55

66
hello:
7-
# this is a comment
8-
$(IPY) "print('hello world')"
7+
# this is a comment followed by a multi-line command
8+
$(IPY) \
9+
"print('hello world')"
910

1011
err:
1112
keyboardmashitalltogetherthisshouldnotrunotherwiseunittestswillfail

0 commit comments

Comments
 (0)