From fccb71ef294a2f49bdff0a7a4c77656adf736378 Mon Sep 17 00:00:00 2001 From: Immanuel Bayer Date: Fri, 15 Jan 2016 20:11:44 +0100 Subject: [PATCH 1/3] add info to setup.py --- MANIFEST.in | 7 +++++++ setup.cfg | 5 +++++ setup.py | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 MANIFEST.in create mode 100644 setup.cfg diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..9248857 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,7 @@ +include README.rst +include fastFM/ffm.c +recursive-include fastFM-core/include * +include fastFM-core/bin/libfastfm.a +include fastFM-core/externals/CXSparse/Lib/libcxsparse.a +recursive-include fastFM-core/externals/CXSparse/Include * +recursive-include fastFM-core/externals/CXSparse/SuiteSparse_config * diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..79bc678 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,5 @@ +[bdist_wheel] +# This flag says that the code is written to work on both Python 2 and Python +# 3. If at all possible, it is good practice to do this. If you cannot, you +# will need to generate wheels for each Python version that you support. +universal=1 diff --git a/setup.py b/setup.py index ae4d60b..17cc7d7 100644 --- a/setup.py +++ b/setup.py @@ -17,8 +17,57 @@ name = 'fastFM', cmdclass = {'build_ext': build_ext}, ext_modules = ext_modules, + packages=['fastFM'], + version='0.1.1', + url='http://ibayer.github.io/fastFM', author='Immanuel Bayer', - author_email='immanuel.bayer@uni-konstanz.de' + author_email='immanuel.bayer@uni-konstanz.de', + + + ### boilerplate stuff + + # Choose your license + license='BSD', + + # See https://pypi.python.org/pypi?%3Aaction=list_classifiers + classifiers=[ + # How mature is this project? Common values are + # 3 - Alpha + # 4 - Beta + # 5 - Production/Stable + 'Development Status :: 3 - Alpha', + + # Indicate who your project is intended for + 'Intended Audience :: Developers', + 'Topic :: Software Development :: Build Tools', + + # Pick your license as you wish (should match "license" above) + 'License :: OSI Approved :: MIT License', + + # Specify the Python versions you support here. In particular, ensure + # that you indicate whether you support Python 2, Python 3 or both. + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.6', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.2', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + ], + + # What does your project relate to? + keywords='sample setuptools development', + + # Alternatively, if you want to distribute just a my_module.py, uncomment + # this: + # py_modules=["my_module"], + + # List run-time dependencies here. These will be installed by pip when + # your project is installed. For an analysis of "install_requires" vs pip's + # requirements files see: + # https://packaging.python.org/en/latest/requirements.html + install_requires=['numpy', 'scikit-learn', 'scipy'] ) From b1f0d2d0ab0d821ec39a1db1b0a9ae753e932104 Mon Sep 17 00:00:00 2001 From: Immanuel Bayer Date: Fri, 15 Jan 2016 20:11:44 +0100 Subject: [PATCH 2/3] add info to setup.py --- MANIFEST.in | 7 +++++++ setup.cfg | 5 +++++ setup.py | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 MANIFEST.in create mode 100644 setup.cfg diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..9248857 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,7 @@ +include README.rst +include fastFM/ffm.c +recursive-include fastFM-core/include * +include fastFM-core/bin/libfastfm.a +include fastFM-core/externals/CXSparse/Lib/libcxsparse.a +recursive-include fastFM-core/externals/CXSparse/Include * +recursive-include fastFM-core/externals/CXSparse/SuiteSparse_config * diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..79bc678 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,5 @@ +[bdist_wheel] +# This flag says that the code is written to work on both Python 2 and Python +# 3. If at all possible, it is good practice to do this. If you cannot, you +# will need to generate wheels for each Python version that you support. +universal=1 diff --git a/setup.py b/setup.py index ae4d60b..17cc7d7 100644 --- a/setup.py +++ b/setup.py @@ -17,8 +17,57 @@ name = 'fastFM', cmdclass = {'build_ext': build_ext}, ext_modules = ext_modules, + packages=['fastFM'], + version='0.1.1', + url='http://ibayer.github.io/fastFM', author='Immanuel Bayer', - author_email='immanuel.bayer@uni-konstanz.de' + author_email='immanuel.bayer@uni-konstanz.de', + + + ### boilerplate stuff + + # Choose your license + license='BSD', + + # See https://pypi.python.org/pypi?%3Aaction=list_classifiers + classifiers=[ + # How mature is this project? Common values are + # 3 - Alpha + # 4 - Beta + # 5 - Production/Stable + 'Development Status :: 3 - Alpha', + + # Indicate who your project is intended for + 'Intended Audience :: Developers', + 'Topic :: Software Development :: Build Tools', + + # Pick your license as you wish (should match "license" above) + 'License :: OSI Approved :: MIT License', + + # Specify the Python versions you support here. In particular, ensure + # that you indicate whether you support Python 2, Python 3 or both. + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.6', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.2', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + ], + + # What does your project relate to? + keywords='sample setuptools development', + + # Alternatively, if you want to distribute just a my_module.py, uncomment + # this: + # py_modules=["my_module"], + + # List run-time dependencies here. These will be installed by pip when + # your project is installed. For an analysis of "install_requires" vs pip's + # requirements files see: + # https://packaging.python.org/en/latest/requirements.html + install_requires=['numpy', 'scikit-learn', 'scipy'] ) From f518101d3c87356fb738901a57ad19fad6a162dc Mon Sep 17 00:00:00 2001 From: Immanuel Bayer Date: Sat, 16 Jan 2016 19:35:44 +0100 Subject: [PATCH 3/3] correct pypi metadata --- setup.py | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/setup.py b/setup.py index 17cc7d7..1724fb2 100644 --- a/setup.py +++ b/setup.py @@ -20,14 +20,11 @@ packages=['fastFM'], - version='0.1.1', + version='0.2.0', url='http://ibayer.github.io/fastFM', author='Immanuel Bayer', author_email='immanuel.bayer@uni-konstanz.de', - - ### boilerplate stuff - # Choose your license license='BSD', @@ -37,14 +34,15 @@ # 3 - Alpha # 4 - Beta # 5 - Production/Stable - 'Development Status :: 3 - Alpha', + 'Development Status :: 4 - Beta', # Indicate who your project is intended for 'Intended Audience :: Developers', - 'Topic :: Software Development :: Build Tools', + 'Intended Audience :: Science/Research', + 'Topic :: Scientific/Engineering', - # Pick your license as you wish (should match "license" above) - 'License :: OSI Approved :: MIT License', + 'License :: OSI Approved :: BSD License', + 'Operating System :: Unix', # Specify the Python versions you support here. In particular, ensure # that you indicate whether you support Python 2, Python 3 or both. @@ -58,13 +56,6 @@ 'Programming Language :: Python :: 3.5', ], - # What does your project relate to? - keywords='sample setuptools development', - - # Alternatively, if you want to distribute just a my_module.py, uncomment - # this: - # py_modules=["my_module"], - # List run-time dependencies here. These will be installed by pip when # your project is installed. For an analysis of "install_requires" vs pip's # requirements files see: