This repository has been archived by the owner on Apr 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
58 lines (51 loc) · 1.43 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
# Release procedure
#
# Prepare the release:
#
# - run tests: tox
# - fill the changelog in README.rst
# - check that "python3 setup.py sdist" contains all files tracked by
# the SCM (Mercurial): update MANIFEST.in if needed
# - update version in setup.py
# - set release date in the changelog in README.rst
# - check README.rst: tox
# - git commit -a
# - git push
#
# Release the new version:
#
# - git tag VERSION
# - git push --tags
# - python3 setup.py sdist bdist_wheel
# - twine upload dist/*
#
# After the release:
#
# - increment version in setup.py
# - git commit -a -m "post-release"
# - git push
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open("README.rst") as fp:
long_description = fp.read()
install_options = {
"name": "sixer",
"version": "1.6.2",
"license": "Apache License 2.0",
"author": 'Victor Stinner',
"author_email": 'victor.stinner@gmail.com',
"description": "Add Python 3 support to Python 2 applications using the six module.",
"long_description": long_description,
"url": "https://github.com/vstinner/sixer",
"classifiers": [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
],
"py_modules": ["sixer"],
"entry_points": {'console_scripts': ['sixer=sixer:main']},
}
setup(**install_options)