Skip to content

Commit 4840868

Browse files
committed
add makefile for automation, bump version, remove python2.7 support
1 parent 3d852b7 commit 4840868

4 files changed

Lines changed: 31 additions & 7 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ sdist/
1414

1515
\.pytest_cache/
1616
.tox/
17+
Pipfile*

.travis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
language: python
22
matrix:
33
include:
4-
- os: linux
5-
dist: trusty
6-
sudo: true
7-
python: 2.7
84
- os: linux
95
dist: trusty
106
sudo: true

Makefile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
MODULE_PATH=./bestnewmusic
2+
3+
clean-pyc:
4+
find . -name '*.pyc' -exec rm -f {} +
5+
find . -name '*.pyo' -exec rm -f {} +
6+
find . -name '*~' -exec rm -f {} +
7+
find . -name '__pycache__' -exec rm -rf {} +
8+
9+
clean-build:
10+
rm -rf build/
11+
rm -rf dist/
12+
rm -rf *.egg-info
13+
14+
isort:
15+
sh -c "isort --skip-glob=.tox --recursive --balanced --use-parentheses --line-width=79 . "
16+
17+
lint:
18+
flake8 --exclude=.tox $(MODULE_PATH)
19+
20+
test: clean-pyc
21+
tox
22+
23+
build: clean-build
24+
python3 setup.py sdist
25+
python3 setup.py bdist_wheel --universal
26+
27+
release: build
28+
twine upload dist/*

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
setup(
1313
name="bestnewmusic",
14-
description="View editor selections from music review sites in the terminal",
14+
description="View music reviews and weekly radio charts in the terminal",
1515
long_description=long_description,
1616
long_description_content_type="text/markdown",
1717
url="https://github.com/ddbourgin/bestnewmusic",
18-
version="0.4",
18+
version="0.4.1",
1919
author="David Bourgin",
2020
author_email="ddbourgin@gmail.com",
2121
license="MIT",
@@ -34,7 +34,6 @@
3434
"Development Status :: 3 - Alpha",
3535
"License :: OSI Approved :: MIT License",
3636
"Environment :: Console",
37-
"Programming Language :: Python :: 2.7",
3837
"Programming Language :: Python :: 3",
3938
"Programming Language :: Python :: 3.4",
4039
"Programming Language :: Python :: 3.5",

0 commit comments

Comments
 (0)