Skip to content

Commit

Permalink
include requirements.txt files; add manifest.in file (funkey#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiuliren authored Aug 15, 2019
1 parent 39c18d7 commit 3ceda64
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
5 changes: 5 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
include requirements.txt
include README.md

recursive-include waterz *.hpp
recursive-include waterz *.pyx
recursive-include waterz *.h
recursive-include waterz *.h

include waterz/frontend_agglomerate.cpp
include waterz/evaluate.cpp
19 changes: 5 additions & 14 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
#from Cython.Build import cythonize
import os

version = '0.8.2'
version = '0.8.6'

with open('requirements.txt') as f:
PACKAGE_DIR = os.path.dirname(os.path.abspath(__file__))

with open(os.path.join(PACKAGE_DIR, "requirements.txt")) as f:
requirements = f.read().splitlines()
requirements = [l for l in requirements if not l.startswith('#')]


with open("README.md", "r") as fh:
with open(os.path.join(PACKAGE_DIR, "README.md"), "r") as fh:
long_description = fh.read()

class build_ext(_build_ext):
Expand Down Expand Up @@ -57,17 +59,6 @@ def finalize_options(self):
install_requires=requirements,
tests_require=['pytest'],
packages=find_packages(),
package_data={
'': [
'waterz/*.h',
'waterz/*.hpp',
'waterz/*.cpp',
'waterz/*.cpp',
'waterz/*.pyx',
'waterz/backend/*.hpp',
]
},
include_package_data=True,
zip_safe=False,
ext_modules=extensions,
classifiers=[
Expand Down

0 comments on commit 3ceda64

Please sign in to comment.