Skip to content

Commit

Permalink
Prepare package versioning
Browse files Browse the repository at this point in the history
* Use setuptools_scm for package versioning.
* Add Makefile with devel chores
  • Loading branch information
fwkz committed Sep 16, 2018
1 parent 755ff1d commit d4c8dc1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
.idea/
.pytest_cache/
*.egg-info/
__pycache__/
__pycache__/
dist/
build/
.DS_Store
_version.py
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.PHONY: all
all: lint test

.PHONY: lint
lint:
isort -y
unify --quote \" --in-place --recursive .

.PHONY: test
test:
py.test tests/
12 changes: 11 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
from pathlib import Path

from setuptools import find_packages, setup

HERE = Path(__file__).parent.resolve()

setup(
name="riposte",
version="0.0.1",
use_scm_version={
"root": str(HERE),
"write_to": str(HERE / "riposte" / "_version.py"),
},
packages=find_packages(),
url="https://github.com/fwkz/riposte",
license="MIT",
author="Mariusz Kupidura",
author_email="f4wkes@gmail.com",
description="REPL for humans",
setup_requires=[
"setuptools_scm",
],
install_requires=[],
extras_require={
"dev": [
Expand Down

0 comments on commit d4c8dc1

Please sign in to comment.