-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
66 lines (50 loc) · 1.82 KB
/
setup.py
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
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
The setup.py script needed to build a .egg for an easier distribution
and installation.
Requires 'Easy Install' to be installed :)
see there: http://peak.telecommunity.com/DevCenter/EasyInstall#installation-instructions
Then to create a package run:
$ python setup.py bdist_egg
To use the generated .egg file then:
easy_install baciphacs-{baciphacs version}-py{python version}.egg
Automagical stuff:
- test everything::
python setup.py test
- build the packages (sources an egg) and upload all the stuff to pypi::
python setup.py sdist bdist_egg upload
- build the documentation
python setup.py build_sphinx
"""
import os
from setuptools import setup
# just in case setup.py is launched from elsewhere than the containing directory
originalDir = os.getcwd()
os.chdir(os.path.dirname(os.path.abspath(__file__)))
try:
setup(
name = "baciphacs",
version = __import__("baciphacs").__version__,
py_modules = ['baciphacs'],
# the unit tests
test_suite = "test",
# metadata for upload to PyPI
author = "Thibauld Nion",
author_email = "[email protected]",
description = "Bar Charts In Pure HTML And CSS",
license = "BSD",
keywords = "bar charts HTML CSS",
url = "https://github.com/tibonihoo/baciphacs",
# more details
long_description = open("README.md").read(),
classifiers=['Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'],
platforms='All',
)
finally:
os.chdir(originalDir)