Skip to content

Commit edb22a5

Browse files
committed
Restructured for pypi packaging
1 parent d30c0ac commit edb22a5

File tree

8 files changed

+86
-1
lines changed

8 files changed

+86
-1
lines changed

MANIFEST.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Include the readme and license files
2+
include README.md
3+
include LICENSE.txt
4+
5+
# Include the data files
6+
recursive-include misc *

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ plt.ylim(0,0.2);
106106
![](./misc/regret_plot.png)
107107

108108
### API documentation
109-
For documentation on the slots API, see [slots-docs.md](https://github.com/roycoding/slots/blob/master/slots-docs.md).
109+
For documentation on the slots API, see [slots-docs.md](https://github.com/roycoding/slots/blob/master/docs/slots-docs.md).
110110

111111

112112
### Todo list:
File renamed without changes.

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
numpy

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[bdist_wheel]
2+
# This flag says that the code is written to work on both Python 2 and Python
3+
# 3.
4+
universal=1

setup.py

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
"""slots: a multi-armed bandit library for Python
2+
See:
3+
https://github.com/roycoding/slots
4+
"""
5+
6+
from setuptools import setup, find_packages
7+
from codecs import open
8+
from os import path
9+
10+
here = path.abspath(path.dirname(__file__))
11+
12+
# Get the long description from the README file
13+
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
14+
long_description = f.read()
15+
16+
setup(
17+
name='slots',
18+
19+
version='0.1.0',
20+
21+
description='A multi-armed bandit library for Python',
22+
long_description=long_description,
23+
24+
# The project's main homepage.
25+
url='https://github.com/roycoding/slots',
26+
27+
# Author details
28+
author='Roy Keyes',
29+
author_email='roy.coding@gmail.com',
30+
31+
# Choose your license
32+
license='BSD',
33+
34+
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
35+
classifiers=[
36+
# How mature is this project? Common values are
37+
# 3 - Alpha
38+
# 4 - Beta
39+
# 5 - Production/Stable
40+
'Development Status :: 3 - Alpha',
41+
42+
# Indicate who your project is intended for
43+
'Intended Audience :: Developers',
44+
'Intended Audience :: Science/Research',
45+
'Topic :: Scientific/Engineering',
46+
47+
# Pick your license as you wish (should match "license" above)
48+
'License :: OSI Approved :: BSD License',
49+
50+
# Specify the Python versions you support here. In particular, ensure
51+
# that you indicate whether you support Python 2, Python 3 or both.
52+
'Programming Language :: Python :: 2.7',
53+
'Programming Language :: Python :: 3.4',
54+
'Programming Language :: Python :: 3.5',
55+
],
56+
57+
# What does your project relate to?
58+
keywords='multi-armed bandit hypothesis testing',
59+
60+
# You can just specify the packages manually here if your project is
61+
# simple. Or you can use find_packages().
62+
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
63+
64+
# Alternatively, if you want to distribute just a my_module.py, uncomment
65+
# this:
66+
# py_modules=["my_module"],
67+
68+
# List run-time dependencies here. These will be installed by pip when
69+
# your project is installed. For an analysis of "install_requires" vs pip's
70+
# requirements files see:
71+
# https://packaging.python.org/en/latest/requirements.html
72+
install_requires=['numpy'],
73+
)

slots/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .slots import MAB

slots.py renamed to slots/slots.py

File renamed without changes.

0 commit comments

Comments
 (0)