-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
81 lines (68 loc) · 2.43 KB
/
setup.py
File metadata and controls
81 lines (68 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
'''
setup.py from the github CookieCutter
project.
Notes: First attempt at making a good package.
This setup.py is an amalgmation of:
https://github.com/audreyr/cookiecutter-pypackage
https://the-hitchhikers-guide-to-packaging.readthedocs.org/en/latest/creation.html#setup-py-description
http://docs.python-guide.org/en/latest/
We are using Py.test which has some good docs and examples:
http://pytest.org/latest/contents.html
Useful examples of well setup projects are:
https://github.com/mitsuhiko/flask
https://github.com/scipy
Remember that you have to register the package internally
for it to import and for the tests to run:
pip3 install -e .
You also must make sure there is a blank __init__.py in
the test directory.
'''
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
'''
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read().replace('.. :changelog:', '')
'''
requirements = [
# TODO: put package requirements here
]
test_requirements = [
'pytest'
]
setup(
name='preflibtools',
version='1.5.1',
description="A a small of lightweight tools in Python3 for working with data from www.PrefLib.org and generating synthetic data for use in voting and preference experiments.",
#long_description=readme + '\n\n' + history,
author="Nicholas Mattei",
author_email='nsmattei@gmail.com',
url='https://github.com/nmattei/PrefLib-Tools',
packages=[
'preflibtools',
],
#package_dir={'{{ cookiecutter.repo_name }}':
# '{{ cookiecutter.repo_name }}'},
#include_package_data=True,
install_requires=requirements,
#license="BSD",
#zip_safe=False,
#keywords='{{ cookiecutter.repo_name }}',
#classifiers=[
# 'Development Status :: 2 - Pre-Alpha',
# 'Intended Audience :: Developers',
# 'License :: OSI Approved :: BSD License',
# 'Natural Language :: English',
# "Programming Language :: Python :: 2",
# 'Programming Language :: Python :: 2.6',
# 'Programming Language :: Python :: 2.7',
# 'Programming Language :: Python :: 3',
# 'Programming Language :: Python :: 3.3',
# 'Programming Language :: Python :: 3.4',
#],
test_suite='tests',
tests_require=test_requirements
)