Skip to content

Commit

Permalink
Prepare release to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasLM committed Sep 3, 2017
1 parent 7ca4974 commit 0eaf831
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
.pyc
__pycache__

spinach.egg-info
.cache
dist
build
doc/_build
.coverage

.coverage
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
publish:
pip install -U pip setuptools wheel twine
python setup.py sdist
python setup.py bdist_wheel
twine upload dist/*
rm -fr build dist spinach.egg-info

clean:
rm -fr build dist spinach.egg-info

1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,4 @@ License
-------

BSD 2-clause

3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()

with open(path.join(here, 'LICENSE'), encoding='utf-8') as f:
long_description += f.read()

with open(path.join(here, 'spinach', 'const.py'), encoding='utf-8') as fp:
version = dict()
exec(fp.read(), version)
Expand Down

0 comments on commit 0eaf831

Please sign in to comment.